command used to compress files in linux.

 

 

    gzip,gunzip – compress or expand files.

    Format: gzip [options] filename

    gunzip [options] filename

    Eg1: gzip backup.tar

    Here it compresses the file backup.tar and stored it as backup.tar.gz

    Eg2: gunzip backup.tar.gz

    Here it expands the file backup.tar.gz back into backup.tar

  • 31 Users Found This Useful
Was this answer helpful?

Related Articles

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...