LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   is this a typo in my book? (https://www.linuxquestions.org/questions/linux-newbie-8/is-this-a-typo-in-my-book-4175585486/)

sigint-ninja 07-25-2016 02:01 PM

is this a typo in my book?
 
To extract the contents of an archive, use tar -cvf /archivename . This extracts the archive in the current directory. That means that if you are in /root when typing
tar -xvf /root/homes.tar , and the file contains a directory /home, after extracting you’ll have a new directory /root/home that contains the entire contents of the file.

is this the typo???:
To extract the contents of an archive, use tar -cvf /archivename

to extract is tar -xvf /root/homes.tar

right? just checking...

suicidaleggroll 07-25-2016 02:07 PM

Correct. -c is to create, -x is to extract

sigint-ninja 07-25-2016 02:22 PM

thought so suicide...just checking i didnt miss something

thanks

Habitual 07-25-2016 03:29 PM

n/m.

hydrurga 07-25-2016 04:38 PM

Not only is it a typo in your book, it's a typo in anyone's book. ;)

JJJCR 07-25-2016 08:47 PM

There should be an errata of your book, check it out whether those typo's has been corrected.

Or it could be that it was purposely done, for the reader to figure out things.

frankbell 07-25-2016 09:09 PM

A more conventional rendering might have been

Code:

tar -cvf [archivename]


All times are GMT -5. The time now is 07:52 PM.