tar

中級
1/6
user@linux:~/workspace$
tar -cvf backup.tar logs/

Explanation

Creates backup.tar containing the logs/ directory. -v shows files being added.

Options

-cCreate archive
-vVerbose (show files being processed)
-fSpecify archive filename
-zUse gzip compression
-xExtract archive
-CExtract to specific directory
-tList contents of archive
-jUse bzip2 compression