The best compression method in lunux.

 

 The best way to compress the files and folders to use the command bzip2.

            format: bzip2 [options] filename

            bunzip2 [options] filename
   
            Eg1: bzip2 backup.tar

            Here it compresses the file backup.tar and store it as backup.tar.bz2

            Eg2: bunzip2 backup.tar.bz2

            Here it expands the file backup.tar.bz2 backto backup.tar

 

  • 21 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...