Monday 4 March 2013

Extract tar tar.gz tar.bz2 files linux command

get asked this all the time, so here are the most common extract commands.

Extract the contents of "filename.tar" 
Command: tar -xvf filename.tar 

Extract the contents of "filename.tar.gz" 
Command: tar -zxvf filename.tar.gz 

Extract the contents of "filename.tar.bz2" 
Command: tar -jxvf filename.tar.bz2

No comments:

Post a Comment