zhrc:~/linux_tutorials$
[host] [current dir] [prompt]
pwd [locate current path]
cd [change to specific directory]
ls [list files in current directory]
-l [long list]
-t [sort by modification time]
-S [sort by size]
-h [list file sizes in human readable format]
-r [reverse the order]
* [wildcard in unix/linux]
mkdir[make directory]
rmdir[remove directory]
cat [dumps entire file to standard output]
less [displays file allowing forward/backward]
head [displays the top part of a file]
tail [displays last part of a file]
cp [copying a file[
mv [move or rename a file]
rm [remove a file]
File permissions
r [read only permission]
w [write permission]
x [execute permission]
-rw-rw-r-- 1 071yoon 169 Dec 20 23:12 hello.c
chmod 755 hello.c
Process
ps [view processes running]
kill [terminate process]
program_a | program_b [program_a's output becomes program_b's output]
program_a > file.txt [program_a's output is written to file.txt]
program_a < input.txt [program-a gets its input from input.txt]
grep [search files in a directory for spectific string]
Vi Editor when things go wrong
Vi Modes
Edit Mode
Splitting and Joining LInes