Easily find issues by searching: #<Issue ID>
Example: #1832
Easily find members by searching in: <username>, <first name> and <last name>.
Example: Search smith, will return results smith and adamsmith
Aqua Data Studio / nhilam |
Follow
827
|
\tar | |
Stores or extracts files from a TAR archive. | |
Syntax | |
\tar [--exclude 'pattern[, pattern...]'] [--include 'pattern[, pattern...]'] [-x] tarfile pathname [ pathname ... ] |
|
Description | |
\tar stores or extracts files and/or directories to/from an archive file known as a tarfile. By default, storing a directory to a tarfile always implies that the subdirectories below should be included in the archive. | |
Options | |
--exclude 'pattern[, pattern...]' Excludes files that match the specified pattern(s). This option takes no effect if -x option is specified. |
|
--include 'pattern[, pattern...]' Includes only those files that match the specified pattern(s). This option takes no effect if -x option is specified. |
|
-x Extracts files from a tarfile to the named directory, current directory is assumed if no directory specified. Includes only those files that match the specified pattern(s). This option takes no effect if -x option is specified. |
|
Notes |
Upon extraction, \tar silently overwrites the files in the destination directory if applicable. Execution of \tar command would fail if invalid patterns are specified by --exclude and --include options, or valid patterns are specified but cause conflict. When this happens, \tar terminates with a one line message without detailed information provided. |
Example | |
To archive a directory, including its subdirectories, into a tarfile: \tar data.tar data_dir |
|
To archive a directory, excluding the content of its subdirectories, into a tarfile: \tar --include '*' data.tar data_dir |
|
To archive a directory and its subdirectories into a tarfile without including all of files end with .txt and .html suffixes: \tar --exclude '**/*.txt, **/*.html' data.tar data_dir |
|
To archive a directory and its subdirectories into a tarfile, excluding those files end with .dat suffix in the sub_dir_1 directory: \tar --exclude '**/sub_dir_1/*.dat' data.tar data_dir |
|
To archive a set of files and directories into a tarfile: \tar data.tar data_1.txt ../data_2.txt data_1_dir ../data_2_dir |
|
See Also | |
\unzip |
About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017