Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |
| linux:tar [2024/03/22 23:22] – levor | linux:tar [2024/03/23 16:59] (current) – levor |
|---|
| |
| ^Example^Explanation / Remarks^ | ^Example^Explanation / Remarks^ |
| |tar -czvf /home/user/dest_backup.tgz /var/www/source_dir/*.html| c=create z=use gzip v=verbose f=next param is target file **compress** all files in source directory into the specified dest file| | |tar -czvf /home/user/dest_backup.tgz /var/www/source_dir/*.html| **c**=create **z**=use gzip **v**=verbose **f**=next param is target file. **Compress** all files in source directory into the specified dest file| |
| |tar -xzvf /home/user/backup_file.tgz /var/www/dest_dir/*.html| **extract** files in source file into the specified dest directory(??)| | |tar -xzvf /home/user/backup_file.tgz /var/www/dest_dir/*.html| **extract** files in source file into the specified dest directory(??)| |
| |**Using find:**|| | |**Using find:**|| |