1 创建-f, --file=ARCHIVE use archive file or device ARCHIVE :使用存档文件或设备档案(后面跟所要打包或解包的包名)-v, --verbose verbosely list files processed:详细显示-c, --create create a new archive : 建立新的归档文件tar cvf applepen.tar apple pen把apple pen这两个文件打包成一个文...
-r, --append append files to the end of an archive -t, --list list the contents of an archive --test-label test the archive volume label and exit -u, --update only append files newer than copy in archive -x, --extract, --get extract files from an archive Operation modifiers: --...
tar -c create 创建一个新的归档文件create a new archive tar -t list 查看当前归档文件里面有哪些原始文件 list the contents of an archive tar -x extract 解压当前归档文件--get extract files from an archive tar -f 指定归档文件--use archive file or tar -j bzip2 使用bzip去压缩归档文件 filter ...
-c, --create create a new archive -c或--create 建立新的备份文件 -z, --gzip, --gunzip, --ungzip filter the archive through gzip -z或--gzip或--ungzip 通过gzip指令处理备份文件 -j或--bzip2 支持bzip2解压文件 -J或--xz 支持xz解压文件 -v, --verbose verbosely list files processed -v或...
-t, --list list the contents of an archive 例1: 将/home/xinetd.d目录中的所有文件打包成一个文件后再由gzip压缩: tar -zcvf xinet.tar.gz /home/xinetd.d/ 例2 仅将/home/xinetd.d目录中的所有文件仅打包,不经过gzip压缩 tar -cvf xinet2.tar /home/xinetd.d/ ...
modification times in UTC -v, --verbose verbosely list files processed --warning=KEYWORD warning control -w, --interactive, --confirmation ask for confirmation for every action Compatibility options: -o when creating, same as --old-archive; when extracting, same as --no-same-owner Other ...
# tar --help | grep list-t,--list list the contents of an archive # tar -cf CentOS.tar CentOS/ # tar -tvf CentOS.tar drwxr-xr-x root/root 0 2023-07-04 14:38 CentOS/ -rw-r--r-- root/root 703 2022-08-05 01:56 CentOS/sha256sum.txt -rw-r--r-- root/root 1563 2022-08...
具体的可以在linux环境下 用tar--help查看详细说明格式:tar[option] file -c create create a new archive -x extract extract files from an archive -t list list the contents linux hive 绝对路径 linux环境 文件属性 转载 mob60475701b76f 2017-04-20 13:04:00 ...
To uncompress the highly compressedtar.bz2file, simply use the following command, which will untar all the files from the archive file. tar -xvf Phpfiles-org.tar.bz2 7. Listing Contents of tar Archive To list or view the contents of the tar archive file, simply run the following command ...
PharData::extractTo—Extract the contents of a tar/zip archive to a directory 说明 publicPharData::extractTo(string$directory,array|string|null$files=null,bool$overwrite=false):bool Extract all files within a tar/zip archive to disk. Extracted files and directories preserve permissions as stored ...