LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help understanding Linux command synopsis notation. (https://www.linuxquestions.org/questions/linux-newbie-8/help-understanding-linux-command-synopsis-notation-859938/)

AlexTee 02-01-2011 03:28 AM

Help understanding Linux command synopsis notation.
 
Hi,

I've recently started learning linux OS, and the most confusing for me is the notation in man pages or command synopsis. I was looking for some kind of guide describing it, but couldn't find any. Thing get even worse when there is no standard notation and it looks different from one command to another.

In other words, I just want to understand what all these brackets '[ ]', dots like '...' pipelines '|', italic or UPPERCASE words, etc mean at all.

I can't tell the difference between [DIRECTORY...] and [FILE]... What does it mean when there are three dots inside the brackets or outside of them?

And so on...

To conclude, all I need is a comprehensive description for the notation syntax adopted in linux world.

Any help appreciated!
Thanks ahead!

jeethu 02-01-2011 03:58 AM

You don't need to understand those things. Just practice with simple commands for now. Then go for options.So at that time you will be knowing the advanced stuffs

acid_kewpie 02-01-2011 03:59 AM

The dots are just ellipsis, just like you'd use them in language in general. There is no significance where they are in relation to brackets, things aren't that strict. people put things in brackets to show that that's something you need to replace / fill in, and not literal text. A directory means a folder, and a file is a file... not sure what's not to undersatnd about that to be honest.

AlexTee 02-01-2011 07:01 AM

Quote:

Originally Posted by acid_kewpie (Post 4244413)
A directory means a folder, and a file is a file... not sure what's not to undersatnd about that to be honest.

I've just copied those options from different commands as they appeared in help. My concern was those dots, but not the folder or file, whose meaning is quite straightforward.

AlexTee 02-01-2011 07:02 AM

Anyway, if there exists a doc explaining all that stuff thoroughly, please post me a link to it.

Thank you!

evo2 02-01-2011 07:43 AM

I remember having trouble reading man pages when I first started using unix. One thing that took me a while to realise was the following:

Square brackes like
Code:

somecommand [file]
indicates that the argument is optional, a
Code:

somecommand file
indicates that the argument must be supplied.

HTH,

Evo2.

onebuck 02-01-2011 08:05 AM

Hi,

Welcome to LQ!

Quote:

Originally Posted by AlexTee (Post 4244536)
Anyway, if there exists a doc explaining all that stuff thoroughly, please post me a link to it.

Thank you!

You can look at this example: #5
LQ member took some time to respond for a similar query. Good example! LQ Search would have gotten the link. :)

Just a few links to aid you to gaining some understanding;



1 Linux Documentation Project
2 Rute Tutorial & Exposition
3 Linux Command Guide
4 Bash Beginners Guide
5 Bash Reference Manual
6 Advanced Bash-Scripting Guide
7 Linux Newbie Admin Guide
8 LinuxSelfHelp
9 Utimate Linux Newbie Guide
10 Linux Home Networking
11 Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

AlexTee 02-01-2011 11:32 AM

Hi, onebuck! Thanks for welcoming:)

The post you mentioned is quite helpful! In fact I've searched thru this forum a lot before opening the thread, but I couldn't find it. Up to now I've read LDP beginners' guide as well as Slackbook 2.0, but wasn't really satisfied with the short info these books contain regarding the topic. Ok, looks like I have to practice more and things will get clearer by time!
Thank again!

onebuck 02-01-2011 11:43 AM

Hi,

Your welcome!

You need to remember that the man pages are not authored by one person. Many contributors, there are some standards but each composer has their style.

Look at http://linux.die.net/man/1/man for online man pages. But the final word should be your systems man pages.
:hattip:


All times are GMT -5. The time now is 08:31 AM.