linux:tar
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:tar [2022/06/06 05:37] – levor | linux:tar [2024/03/23 16:59] (current) – levor | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ^Example^Explanation / Remarks^ | ^Example^Explanation / Remarks^ | ||
| - | |tar -czvf / | + | |tar -czvf / |
| |tar -xzvf / | |tar -xzvf / | ||
| - | |find /var/log -iname ' | + | |**Using find:**|| |
| + | |find /var/log -iname ' | ||
| + | |find . -type f > list_of_files.txt && tar -czf bu_file.tar.gz -T list_of_files.txt|| | ||
| + | |find . -type f -exec tar -czf {}.tar.gz {} \;|!<- TODO! FIXME| | ||
| ^Flag^Same as^Explanation / Remarks^ | ^Flag^Same as^Explanation / Remarks^ | ||
| |c| |create a new archive file| | |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| | |f| |next parameter is the filename| | ||
| + | |r|%%--%%append|append file(s) to tar file| | ||
| + | |t|%%--%%list|list contents of file| | ||
| + | |T| |next param is filename containing list of files to be **tar**ed(!) <- TODO FIXME| | ||
| + | |v| |verbose output - show details while running| | ||
| |x| |extract compressed file| | |x| |extract compressed file| | ||
| - | |t|--list|list contents of file| | + | |z| |use gzip compress or uncompress| |
| - | |r|--append|append file(s) to tar file| | + | |-| |dash, as last symbol |
linux/tar.1654493864.txt.gz · Last modified: 2022/06/06 05:37 by levor
