LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-29-2005, 01:27 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
MAN Help File Help!


Hello again.

I'm making an attempt to understand the syntax in the MAN help pages.

I'm looking at the TAR function and the syntax doesn't make scene to me.

Here is an example of what I don't understand.

-d, --diff, --compare
find difference between archive and file system.

The question is does it work like this: -d --compare ...(rest of command).

-c, --directory=DIR
change to directory DIR (are the -- entries modifiers to the - command)

--checkpoint
print directory names while reading the archive (is the --checkpoint included in the command string as is) how is it written?

I'm using Suse 9.2. Getting to understand how the syntax works in the MAN help file will go along way to help me run this by myself.

Thanks.
 
Old 09-29-2005, 01:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Those are alternative ways for doing it, hence the
commas.

You wouldn't be using all three but just one of the
options.

To get a better feel for how tar works, read info tar
and tar --help



Cheers,
Tink
 
Old 09-29-2005, 01:38 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
-d, --diff, --compare
find difference between archive and file system.
Each option listed is an alternate way of saying the same thing. "-d" is equivalent to "--diff" and it's equivalent to "--compare". All of them mean the same thing, and you only need one of them on the command line.

Quote:
-c, --directory=DIR
Again, both formats say the same thing, but it's slightly different from above. This option requires more information from the user (as evidenced by the "=DIR" portion). You can use either form "-c" or "--directory" but both must have a directory option. For "-c" the command line would look something like "tar -c directory_name". For "--directory" it would look something like "tar --directory=directory_name". Slightly different formatting, but again, the same meaning. Only one needs to be present on the command line.

EDIT: Beaten to the punch.... again... by Tink

Last edited by Dark_Helmet; 09-29-2005 at 01:39 PM.
 
Old 09-29-2005, 01:47 PM   #4
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
Thank you for your quick reply.
I see the light.
 
Old 09-29-2005, 06:33 PM   #5
hlpboplz
Member
 
Registered: May 2005
Location: West Central Alabama
Distribution: Fedora Core 4
Posts: 34

Rep: Reputation: 15
This will also work

diff /path to file/file name /path to second file/filename
You can also send the output to a file by;
>out put file name to write to

hence: diff /path to first file/file name /path to second file/file name >output file
 
  


Reply



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
man rename help file swamprat Linux - Newbie 1 10-26-2005 05:02 PM
man pages in text file serji Linux - Newbie 6 10-20-2003 03:59 PM
man pages in text file serji Linux - Software 6 10-20-2003 03:35 PM
how to produce a text file from man w/o formatting? spyghost Linux - Newbie 2 07-30-2003 06:05 PM
How to Read a Troff Man File steve65 Linux - Software 7 10-20-2002 07:35 PM

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

All times are GMT -5. The time now is 01:53 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
Open Source Consulting | Domain Registration