Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-29-2005, 02:27 PM   #1
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 473

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)

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.

Old 09-29-2005, 02:34 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Those are alternative ways for doing it, hence the

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

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

Old 09-29-2005, 02:38 PM   #3
Senior Member
Registered: Jan 2003
Posts: 2,786

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

-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 02:39 PM.
Old 09-29-2005, 02:47 PM   #4
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 473

Original Poster
Rep: Reputation: 34
Thank you for your quick reply.
I see the light.
Old 09-29-2005, 07:33 PM   #5
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


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

All times are GMT -5. The time now is 01:14 PM.

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