linux:tar
This is an old revision of the document!
tar -flags dest_file_name source_file_or_dir
| example | Explanation / Remarks |
|---|---|
| tar -czvf /home/user/backup.tgz /var/www/html_files | compress all files in source directory into the specified file |
| Flag | Explanation / Remarks |
|---|---|
| c | create a new archive file |
| z | use gzip compress or uncompress |
| v | verbose output - show details while running |
| f | next parameter is the filename |
| x | extract compressed file |
linux/tar.1654333302.txt.gz · Last modified: 2022/06/04 09:01 by levor
