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 06:01] – 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 / | ||
| |**Using find:**|| | |**Using find:**|| | ||
| |find /var/log -iname ' | |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 > list_of_files.txt && tar -czf bu_file.tar.gz -T list_of_files.txt|| | ||
| - | |find . -type f -exec tar -czf {}.tar.gz {} \;|!<- TODO!| | + | |find . -type f -exec tar -czf {}.tar.gz {} \;|!<- TODO! FIXME| |
| ^Flag^Same as^Explanation / Remarks^ | ^Flag^Same as^Explanation / Remarks^ | ||
| Line 15: | Line 15: | ||
| |r|%%--%%append|append file(s) to tar file| | |r|%%--%%append|append file(s) to tar file| | ||
| |t|%%--%%list|list contents of file| | |t|%%--%%list|list contents of file| | ||
| - | |T|next param is filename containing list of files to be **tar**ed(!) <- TODO| | + | |T| |next param is filename containing list of files to be **tar**ed(!) <- TODO FIXME| |
| |v| |verbose output - show details while running| | |v| |verbose output - show details while running| | ||
| |x| |extract compressed file| | |x| |extract compressed file| | ||
linux/tar.1654495290.txt.gz · Last modified: 2022/06/06 06:01 by levor
