Linux/UNIX Commands

[top] apropos apropos print Searches through man pages for relavent topics regarding the word print.


[top] cat cat > file.txt Creates the file named "file.txt" and accepts the following lines as file contents.  Press CTRL+d to exit data entry.


[top] cut cut -d: -f5 file.txt Cuts data from the fifth field a colon delimited file.


[top] man man -k list Searches man pages for references to 'list'.  Also see the 'apropos' command.

man -S 5 passwd Displays the fifth man page section for the passwd command.

man sections 1 - Creates a new file containing standard output. If the file exists then its overwritten 2 - Appends standard output to the file. If the file does not exist it is created 3 - Creates a new file containing standard error. If the file exists then its overwritten 4 - Appends standard error to the file. If the file does not exist it is created 5 - Creates a new file containing both standard output and standard error. If the file exists then its overwritten 6 - Uses the contents of the specified file as standard input to the receiving program 7 - Uses the contents of the following lines as standard input to the receiving program. 8 - Uses the contents of the specified file as standard input and standard output 9 - Uses the contents of the specified file as standard input and standard output


[top] redirection operators > - Creates a new file containing standard output. If the file exists then its overwritten. >> - Appends standard output to the file. If the file does not exist it is created. 2> - Creates a new file containing standard error. If the file exists then its overwritten. 2>> - Appends standard error to the file. If the file does not exist it is created. &> - Creates a new file containing both standard output and standard error. If the file exists then its overwritten. < - Uses the contents of the specified file as standard input to the receiving program. << - Uses the contents of the following lines as standard input to the receiving program. <> - Uses the contents of the specified file as standard input and standard output.