p7zip使用实例

以下是CentOS7中7za的使用实例,CentOS下安装p7zip可以参考此文 [root@localhost ~]# 7za 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64) Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] <Commands> a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths <Switches> -- : Stop switches parsing -ai[r[-|0]]{@listfile|!wildcard} : Include archives -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives -ao{a|s|t|u} : set Overwrite mode -an : disable archive_name field -bb[0-3] : set output log level -bd : disable progress indicator -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line -bt : show execution time statistics -i[r[-|0]]{@listfile|!wildcard} : Include filenames -m{Parameters} : set compression Method -mmt[N] : set number of CPU threads -o{Directory} : set Output directory -p{Password} : set Password -r[-|0] : Recurse subdirectories -sa{a|e|s} : set Archive name mode -scc{UTF-8|WIN|DOS} : set charset for for console input/output -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands -sdel : delete files after compression -seml[.] : send archive by email -sfx[{name}] : Create SFX archive -si[{name}] : read data from stdin -slp : set Large Pages mode -slt : show technical information for l (List) command -snh : store hard links as links -snl : store symbolic links as links -sni : store NT security information -sns[-] : store NTFS alternate streams -so : write data to stdout -spd : disable wildcard matching for file names -spe : eliminate duplication of root folder for extract command -spf : use fully qualified file paths -ssc[-] : set sensitive case mode -ssw : compress shared files -stl : set archive timestamp from the most recently modified file -stm{HexMask} : set CPU thread affinity mask (hexadecimal number) -stx{Type} : exclude archive type -t{Type} : Set type of archive -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options -v{Size}[b|k|m|g] : Create volumes -w[{path}] : assign Work directory. Empty path means a temporary directory -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames -y : assume Yes on all queries 压缩文档 [root@localhost oneinstack]# du -sh ##当前目录大小 1.8M . [root@localhost oneinstack]# 7za a oi.7z * ##将当前目录所有文件压缩保存为oi.7z 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64) Scanning the drive: 7 folders, 128 files, 1541017 bytes (1505 KiB) Creating archive: oi.7z Items to compress: 135 Files read from disk: 128 Archive size: 131726 bytes (129 KiB) Everything is Ok [root@localhost oneinstack]# ls -lh oi.7z ###压缩后大小 -rw-r--r-- 1 root root 129K Jun 16 15:59 oi.7z p7zip默认使用7z格式,当然它还支持一些通用的压缩格式,如7z, lzma, cab, zip, gzip, bzip2, Z 和tar等等…… ...

2017年6月16日 · jqx

一加3/3T工具包

工具菜单如下: Title OnePlus 3/3T Unified ToolKit v5.0U by @ahmed_radaideh ====================== = Menu = ====================== Enter a Number to select a Task. 1) Install USB Drivers On PC 2) Unlock - ReLock Bootloader 3) Check Device Status 4) Check Bootloader Status 5) Flash - Boot TWRP Recovery 6) Flash - Boot Stock Recovery 7) Push Systemless Root 8) Push Debloater Script 9) Wipe Cache Your Device 10) Force Decryption Device [WIPE] 11) Get Logs your Device 12) Restart Menu 13) Check for new Version 14) XDA Thread 15) Donate! 00) Exit 下载地址在此OnePlus3T-ToolKit-v4.7.7z,XDA贴地址在这里。 ...

2017年6月15日 · jqx

修复东芝U盘写保护

一直以来都是使用U盘安装Linux,光盘镜像通过dd写入U盘。最近需要安装elementary,下载镜像后发现系统推荐使用Rufus来写入U盘,这个工具以前没试过所以试了下,确实挺快的。 不过在安装完elementary后,想将U盘重新恢复格式化出问题了,使用DiskGenius无法进行操作,使用系统自带的磁盘管理也没法操作,包括Linux下的GParted也不行,都提示U盘被写保护了,-__-! 万般无奈只能想到量产工具,下面分享使用到的两款软件: ChipGenius Restore ChipGenius是一款U盘信息检测软件,通过它可以来查看U盘主控信息,我的这款U盘芯片信息如下: 设备描述: [G:]USB 大容量存储设备(TOSHIBA TransMemory-Mx) 设备类型: 大容量存储设备 协议版本: USB 3.00 当前速度: 极速(SuperSpeed) 电力消耗: 504mA USB设备ID: VID = 0930 PID = 6545 设备序列号: FFFFFFFFFFFFEE20F000BC99 设备供应商: TOSHIBA 设备名称: TransMemory-Mx 设备修订版: 0110 产品制造商: TOSHIBA 产品型号: TransMemory-Mx 产品修订版: PMAP 主控厂商: Phison(群联) 主控型号: PS2251-03(PS2303) - F/W 02.08.53 [2014-01-02] 闪存识别码: 983AA892 - Toshiba(东芝) TC58NVG7T2JTA00 [TLC-8K] Restore是群联官方提供的一款恢复工具,可以进行低级格式化和修复。

2017年6月10日 · jqx

在Linux中运行Android软件

想要在PC上运行Android软件就需要模拟器,Windows版的Android模拟器软件很多,但是Linux平台的就不多了,今天推荐一款Linux下的Android模拟器软件Anbox Anbox官方介绍为Android in a Box,Run Android applications on any GNU/Linux operating system. Anbox现在还处于测试阶段,很多功能还不完善和稳定,请谨慎使用。 安装Anbox 首先得安装Snaps,官方地址为https://snapcraft.io/ LinuxMint中安装Snaps和必须包 sudo apt install snapd sudo apt install pulseaudio 接下来按照官方指南安装Anbox snap install --classic anbox-installer && anbox-installer 我试着通过snap来安装一直存在权限问题,一般权限不能运行snap install --classic anbox-installer,root运行完snap install --classic anbox-installer后,但运行anbox-installer又提示不能使用root权限,一般权限根本无法运行anbox-installer,搞了半天都没有成功,于是就有了下文。 通过常规方法安装Anbox wget https://raw.githubusercontent.com/anbox/anbox-installer/master/installer.sh -O anbox-installer chmod +x ./anbox-installer ./anbox-installer 安装完成后会有重启系统的提示 To ensure all changes made to your system you should now reboot your system. If you don’t do this no Android applications will show up in the system application launcher. ...

2017年6月9日 · jqx

CentOS7安装使用p7zip

在此只推荐从源码安装p7zip,下载地址 http://www.7-zip.org/download.html 源码在这里下载 https://sourceforge.net/projects/p7zip/files/p7zip/ wget https://sourceforge.net/projects/p7zip/files/p7zip/16.02/p7zip_16.02_src_all.tar.bz2 tar jxf p7zip_16.02_src_all.tar.bz2 cd p7zip_16.02 make make install 使用p7zip [root@localhost ~]# 7za 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU x64) Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] <Commands> a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths 压缩文件 ...

2017年6月6日 · jqx