Sunday 20 May 2012

On 04:42 by Unknown   No comments
Create tar file $ tar -cvf filename.tar filename Extract tar file $ tar -xvf filename.tar To extract tar file with gz extension use $ tar -xvf filename.tar Meanings to commond tar command flags are given below c - Create a new archive. t – List the contents of an archive. x - Extract the contents of an archive. f – The archive file name is given on the command line (required whenever the tar output is going to a file) M – The archive can span multiple floppies. v - Print verbose output (list file names as they are processed). u – Add files to the archive if they are newer than the copy in the tar file. z – Compress or decompress files automatically.

0 comments:

Post a Comment