IT Questions and Answers :)

Monday, December 30, 2019

What will the following command do? # tar -xvf public_html.tar

What will the following command do? # tar -xvf public_html.tar

  • Create a new public_html.tar archive using the files in the current directory
  • Untar or extract public_html.tar to the current directory
  • Untar or extract public_html.tar to /home/public_html
  • Untar or extract public_html.tar to /root 

EXPLANATION

Extracting an Archive using the Linux tar command
tar -xzvf archiveToExtract.tar.gz
This will extract all files in the archive in the current directory, the only flag that is changed is the -c (for creating) with the
x – extract the archive

 

Share:

0 comments:

Post a Comment

Popular Posts