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, 03:01 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 485

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, 03:07 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

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

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

thanks
 
Old 07-25-2016, 04:29 PM   #4
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,576
Blog Entries: 15

Rep: Reputation: Disabled
n/m.

Last edited by Habitual; 07-25-2016 at 04:31 PM.
 
Old 07-25-2016, 05:38 PM   #5
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

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

Rep: Reputation: 227Reputation: 227Reputation: 227
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 09:48 PM. Reason: edit
 
Old 07-25-2016, 10: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,788
Blog Entries: 17

Rep: Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316Reputation: 3316
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 01:28 PM
typo in a/maketag ? guanx Slackware 1 09-16-2013 07:32 AM
Small typo jostber Slackware 12 07-09-2013 11:26 PM
Typo in the LQ rules Nylex LQ Suggestions & Feedback 1 07-18-2006 08:33 AM
is it an error or typo? blackcat Linux From Scratch 1 09-02-2002 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 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