Learning environment: CentOS under Virtual machine
command to shut down Linux system init 0
How to switch between virtual terminals: Ctrl + ALT +[F1~F6]
Clear screen Clear or ctrl+l
Stop Ctrl + C
Man [command] View the command's reference manual
[command]--help get help (same man)
Common Commands and Demos:
Summary and supplement:
LS displays all files and folders in the current directory
CD /root/Desktop switch to the desktop if you do not know the full name of the folder to open or long, you can press the TAB keyboard Auto-completion, such as: CD/ R + TAB, the system automatically help us into the/ROOTCD. (Next space plus two points) return to the previous level of the directory PWD display the current directory path mkdir Test Create folder Touch new.txt Create file cp nwe.txt new2.txt Copy the New.txt file under the current folder new2.txtcp new.txt /root/Desktop will new.txt copy to/root/Desktop directory rm New.txt Delete new.txt file rm- r Test Delete Test directory (including all files under directory) RM -RF Test Delete Test directory (do not delete every file reminder in directory) MV New.txt. Move the New.txt file to the top-level directory (note the two points at the end) MV New.txt /root/Desktop/ move new.txt files to the desktop
MV New.txt new2.txt renamed New.txt to New2.txt
2016.11.09
Linux Learning notes and assignments 1