Suppose you have a tar archive cxdctar in the current direct

Suppose you have a tar archive cxdc.tar in the current directory containing thousands of files. You wish to extract this tar archive into the current directory. What command would you use?

Solution

# mkdir /tmp/current
# tar -xvf cxdc.tar -C /tmp/current/

Tar command is used with following options :

-f is used to specify filename of archieve

-v is used to show the status / progress in terminal

-x is used to extract an archieve

Suppose you have a tar archive cxdc.tar in the current directory containing thousands of files. You wish to extract this tar archive into the current directory.

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site