One Day One Cmd

Place for playing with commands…

Day 71: $ Extracting the files from a tar file

ODOC: In the below example command, the system would uncompress (untar) the myfile.tar file in the current directory.

tar -xvwf myfile.tar

In the below example command the system would uncompress (untar) the myfile.tar.gz file in the current directory.

tar -xvwzf myfile.tar.gz

Note: There is no “untar” linux / unix command.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: