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! |
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
|
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.
|
Quote:
|
Anyway, if there exists a doc explaining all that stuff thoroughly, please post me a link to it.
Thank you! |
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] Code:
somecommand file HTH, Evo2. |
Hi,
Welcome to LQ! Quote:
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! |
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! |
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. |