Help understanding Linux command synopsis notation.
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.