LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-25-2016, 02:01 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Rep: Reputation: 29
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...
 
Old 07-25-2016, 02:07 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,453

Rep: Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052Reputation: 2052
Correct. -c is to create, -x is to extract
 
Old 07-25-2016, 02:22 PM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Original Poster
Rep: Reputation: 29
thought so suicide...just checking i didnt miss something

thanks
 
Old 07-25-2016, 03:29 PM   #4
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,241
Blog Entries: 11

Rep: Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287Reputation: 2287
n/m.

Last edited by Habitual; 07-25-2016 at 03:31 PM.
 
Old 07-25-2016, 04:38 PM   #5
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.1 MATE
Posts: 3,071

Rep: Reputation: 1064Reputation: 1064Reputation: 1064Reputation: 1064Reputation: 1064Reputation: 1064Reputation: 1064Reputation: 1064
Not only is it a typo in your book, it's a typo in anyone's book.
 
Old 07-25-2016, 08:47 PM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,205

Rep: Reputation: 197Reputation: 197
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.

Last edited by JJJCR; 07-25-2016 at 08:48 PM. Reason: edit
 
Old 07-25-2016, 09:09 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,128
Blog Entries: 14

Rep: Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066Reputation: 3066
A more conventional rendering might have been

Code:
tar -cvf [archivename]
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is this a typo in my LInux+ book? sigint-ninja Linux - Newbie 6 01-27-2014 12:28 PM
typo in a/maketag ? guanx Slackware 1 09-16-2013 06:32 AM
Small typo jostber Slackware 12 07-09-2013 10:26 PM
Typo in the LQ rules Nylex LQ Suggestions & Feedback 1 07-18-2006 07:33 AM
is it an error or typo? blackcat Linux From Scratch 1 09-02-2002 06:41 PM


All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration