Tarballs are archive files commonly used in Unix-like operating systems to group multiple files and directories into a single file for easy storage, transport, and distribution.
Usage for tar: tar [OPTION] [-f file] [files ...] -a append instead of overwrite; see also -c and -u -c create; it will overwrite the original file -d delete files from tarball -f string tar file ('-' for stdin/stdout) -l list contents of tarball -o extract to stdout; see also -x -s stats -u update tarball; see also -c and -a -x extract; see also -o
-
Create tarball (
-c
): Allows creating a new tarball from a list of files or directories passed as arguments. It also supports the use of wildcards to specify a set of files to include in the tarball. -
Extract tarball (
-x
): Allows extracting the contents of a tarball. If no file or directory is specified as an argument, it extracts the entire content of the tarball. Otherwise, it extracts only the files or directories corresponding to the specified arguments. -
Extract to stdout (
-o
): Allows extracting the content of the tarball directly to the standard output (stdout). Again, if no file or directory is specified as an argument, it extracts the entire content of the tarball to stdout. -
List tarball content (
-l
): Allows listing the content of the tarball without extracting the files. It displays the names of all files and directories present in the tarball. -
Remove files from tarball (
-d
): Allows removing specific files from the tarball. The names of the files to be removed are passed as arguments. -
Append to tarball (
-a
): Allows adding new files or directories to an existing tarball. -
Update tarball (
-u
): Allows updating existing files in the tarball with newer versions, if they already exist.
This project is licensed under the ISC License.