1. Folder operations
My Computer user name is student
Right-click New terminal to enter the following content
The CD will jump directly into the Student directory layer
Cd.. Jumps into the previous layer
Cd.. /.. Lian-Hop
Cd/home no matter where you are in the directory will jump under the home, only this one no other command to play at the beginning
CD ~student in any directory to jump to the personal directory, that is, our user name, replaced by other folders is not possible
CD-Return to the last directory
PWD is the abbreviated print work path for print working directory
ls to view the files in the directory
Ls-f view the files in the directory and the previous different places, add a/
Ls-a Show all files, including hidden files
Ls-d represents the properties of the directory itself, not the contents of the directory (this is still not particularly clear, there will always be a
Ls-l show file details including permission date size and more
http://cbcman.blog.163.com/blog/static/6481643120127162355325/
LS *[0-9]* prints all the directories and files that contain numbers in your current directory, and the same way LS *[a-z]* is to print the folders and directories that contain the letters in your folder. You can also narrow the LS *[b-z]* so that you don't print a file with the letter A.
Tree prints all files and directories under the directory in the form of trees
mkdir A can create a folder under the current directory called a
mkdir a b C can create multiple folders
RmDir A If there is something in folder A is deleted, delete the directory named A and create the corresponding can delete multiple folders at once
Rm-rf a so that you can delete the directory and its contents
Rm-f a Delete the file named a, note that it is a file
MV a B to the folder named a or a file moved to B below
CP A B copies file A to directory B below
CP dir /* . Copy all the files under the directory to the current directory, only the dir that layer of files, and then to the inner file does not count
CP - a / tmp / Dir1 . Copy a directory to the current
CP - a dir1 dir2 copy a directory to another directory
Ln-s directory or file alias create a soft link in the current directory the name of the alias can point to the target file or directory like a pointer
The ln directory file alias establishes a hard link in the current directory hard link can not be linked to the directory but can be directly connected to the file