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... |
Correct. -c is to create, -x is to extract
|
thought so suicide...just checking i didnt miss something
thanks |
n/m.
|
Not only is it a typo in your book, it's a typo in anyone's book. ;)
|
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. |
A more conventional rendering might have been
Code:
tar -cvf [archivename] |
All times are GMT -5. The time now is 07:52 PM. |