ExtractToDirectory(Stream, String, Boolean) 來源: TarFile.cs 將代表 tar 封存的數據流內容擷取到指定的目錄中。 C# 複製 public static void ExtractToDirectory (System.IO.Stream source, string destinationDirectoryName, bool overwriteFiles); 參數 source Stream 包含tar 封存的數據流。 destination...
tar -xvf 压缩文件 -C /指定目录 例:#tar -xvf openstack_test.tar -C /tmp 说明:把根目录下的openstack_test.tar解压到/tmp下。
$tar--extract--file=[file_name].tar--directory[/path_of/directory] The“-x”flag tells the Tar utility to extract the file mentioned in the argument after“-f.”Whereas,“-C”flag is used to set a specific directory to extract the file. Alternatively, you can explicitly mention the tot...
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 ...
SecurityException The caller does not have the required permission to access existing directory. NotSupportedException If directory does not exist, path contains a colon character (:) that is not part of a drive label (“C:"). ArgumentException path is a zero-length string, contains only white...
Tar can redirect extracted files to a different folder. This can be handy if you want to unpack a tar archive stored on a cd or other read-only media and want to eliminate the step of first copying the archive, extracting it, then deleting the extra tar. All you have to do is add ...
2 压缩-z, --gzip ilter the archive through gzip:使用gzip压缩可以调用gzip,bzip等压缩工具,对包进行压缩。gzip最常用,使用gzip即可,.gz为后缀。3 解包-x, --extract, --get extract files from an archive:解压(自动识别各种格式的压缩)-C, --directory=DIR change to directory DIR:加压到指定...
-C,–directory Dir:将工作目录转为Dir. –backup:移除前先备份。 –no-auto-compress:不根据归档文件的后缀自动使用compress命令压缩。 –atime-preserve:在转存文件时保留访问时间。 –anchored:从文件名开始匹配。 –no-anchored:从’/’后匹配。
-A, --catenate,--concatenate追加tar文件至归档-c,--create创建一个新归档-d, --diff,--compare找出归档和文件系统的差异--delete从归档(非磁带!)中删除-r,--append追加文件至归档结尾-t,--list列出归档内容--test-label 测试归档卷标并退出-u,--update仅追加比归档中副本更新的文件-x, --extract,--get...