If you want to keep your files in tar and compress your tar file as well, for reducing disk space and bandwidth to transfer file.
If you want to keep your files in tar and compress your tar file as well, for reducing disk space and bandwidth to transfer file.
Linux Command is best for this the directory is linux–
[[email protected] ~]$ tar cf – linux | gzip/bzip > tarcompress.tar.gz
Used gzip like below-
[[email protected] ~]$ tar cf – linux | gzip > tarcompress.tar.gz
To verify your tar+gzip file data inside-
[[email protected] ~]$ tar -tzvf tarcompress.tar.gz
To search specific file data from tar+gzip file-
[[email protected] ~]$ tar -ztvf tarcompress.tar.gz ‘linux/c’
For uncompressing your tar+gzip file-
[[email protected] ~]$ tar -tzvf tarcompress.tar.gz
If you wanted to capture the output so you had an index file of what the tar file contains:
For sh, ksh shell prompt use:
[[email protected] ~]$ tar cvf – linux 2>foo.idx | gzip/bzip2 > tarcompress.tar.gz
For csh shell prompt use:
[[email protected] ~]$ (tar cvf – linux | gzip/bzip2 > /tarcompress.tar.gz)>&tarcompress.idx
Keep your tar file in compress state
Related posts
- Multi IP Ping Host Table March 27, 2018
Leave a Reply Cancel Reply
Latest Posts
- Modifies files date and times May 4, 2018
- Track Your Linux Login & Logout April 12, 2018
- Linux Tasks Alert April 12, 2018
Comments
2014Marietta
I see your website doesn't rank in google's top 10, but your articles can get into top 10. You should find the right longtail keywords before you […] Read MoreI see your website doesn't rank in google's top 10, but your articles can get into top 10. You should find the right longtail keywords before you write a post. How to find super easy longtail keywords? Search in google for; Fasrixo's tools Read Less