Next: Useful UNIX commands
Up: Introduction to UNIX
Previous: Permissions
Whenever you forget the syntax of a command, look around the manual pages of that command (if you forgot how "ls" works, write "man ls").
Manual pages are grouped into sections. Each section contains the manual pages of the commands related to that section. Some examples of sections are:
- Section 3 - contains c function call manuals.
- Section 2 - contains system call manuals.
- Section 1 - contains user commands manuals.
If no section is specified with man command, it searches from smallest to biggest section until it finds a match. There may be two manual pages for the same name in different sections (time system call and time user command). If you can't get the correct page, try it with the section number.
Notations that are frequently used in this manual and man pages are listed below.
- The words written bold (dark color) are to be written exactly. They are the actual commands.
- [ ] Means that the things between brackets are optional. The command will work even if you do not write the parts in brackets.
- The words that are underlined are the explanations of arguments. Do not write those words as they are.
- You should choose one of the words from the set in { } (curly braces).
- (X
Y) means that either X or Y can be written. The '
' character stands of OR'ing.
Example: hebe [-d] [-duck={wild,green_head,flying}] [file...]
hebe is the name of the command. there are three optional parameters. First parameter is d (should be written with single dash). Second parameter is duck and has it's local parameter too. You should write one of the three parameters after duck parameter. (ex: -duck=wild). Third parameter tells you that, you can write one or more file names at the tail of the command. (The three dots lets you write multiple of that parameter)
Next: Useful UNIX commands
Up: Introduction to UNIX
Previous: Permissions