Professional Documents
Culture Documents
Linux Commands and FIle System Description
Linux Commands and FIle System Description
Description
1. Commands
1.1 Synopsis
Command input -o [input] –options [input]
Section Meaning
[THING] Thing is optional
<THING> Thing is required
THING... Thing can be repeated limitless
THING1 | THING2 Use 1 or 2. not both
THING Replace thing with whatever
Note: Sections 1, 5, 8 are what you will likely use most often.
1.2.1 Usage
man section_number command
1.3 Data Streams
1.3.1 Standard Data Stream
Standard input (# 0)
Standard output (# 1)
Standard error (# 2)
These number are used when telling commands to do stuff with given input, output or error.
For example: cat 1> file.txt (efficient way: cat > file.txt)
input > output
input >> appended_output
output < input
something complex? (Output1 < input1)input2 > output2final
◦ eg: cat < input.txt > /dev/pts/n
where n is 0,12,3….. for multiple terminal instances at a time and /dev/pts/n is the terminal
(everything in Linux is file)