We will use the typical Unix syntax for documenting commands and their
options. The command and arguments presented in bold type are
entered verbatim. File name(s) and user-supplied options are
represented by terms such as name or file, with three dots
signifying that more than one name may be given. The letter n
refers to an integer option. Arguments enclosed in brackets [ ]
are optional. A | separating arguments means ``or'':
Unfortunately, Unix commands do not have a universal syntax (this
probably reflects its heritage from and the organization of university
research). In general, Unix commands are entered as:
The command is always the first word. The options modifying
what the command does are usually one letter each and can be
juxtaposed (grouped) into any order (as a test of the user's
creativity in forming nonsense words). If the command operates on a
file or several files, the filename(s) are given last.
This option syntax for commands is almost universal within Unix, but not quite. A few commands take options without the preceding dash while some commands accept dashes but do not require them. Some commands require a dash for each option separately, instead of permitting you to juxtapose several options after one dash. To check a command's syntax, refer to your local manual pages (possibly with the man command); or you can be experimental and try the command out on some temporary file you don't mind messing up a bit.
The following rules apply to all Unix commands and systems: