Saturday, April 26, 2014

gzip

  •   gzip command examples
 
To create a *.gz compressed file:
$ gzip test.txt

To uncompress a *.gz file:
$ gzip -d test.txt.gz

Display compression ratio of the compressed file using gzip -l
$ gzip -l *.gz
         compressed        uncompressed  ratio uncompressed_name
              23709               97975  75.8% asp-patch-rpms.txt

Related Posts:

  • RHEL 6 Installation step by step (Linux) For installation of RHEL 6 (Redhat Enterprise Linux), first you need to insert bootable DVD or CD of rhel 6 32bit or 62bit (depending upon system configuration) and then reboot your system. After reboot, your sy… Read More
  • crontab crontab command example View crontab entry for a specific user  # crontab -u linuxcare -l Schedule a cron job every 10 minutes. */10 * * * * /home/linuxcare/check-disk-space More crontab ex… Read More
  • bzip2 bzip2 command examples To create a *.bz2 compressed file:   $ bzip2 test.txt To uncompress a *.bz2 file: bzip2 -d test.txt.bz2 Normal 0 false false false … Read More
  • cd cd command examples Use “cd -” to toggle between the last two directories Use “shopt -s cdspell” to automatically correct mistyped directory names on cd Normal 0 false false false EN-IN… Read More
  • awk v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} awk command examples  Remove duplicate lines using awk… Read More

0 comments:

Post a Comment