LS Lists the sub-files in the current directory
Ls-l the sub-file details in the current directory, of course, with "LL" can also
Ls-a list all files, including hidden files
——————————————————————
Create an empty directory mkdir the subordinate directory name
Directories such as mkdir test to create test
Mkdir-p Multilevel Directory
such as mkdir test/test1 create the test directory and create a test1 directory under that directory
————————————————————————————————————
Cd
CD ~ Home directory of home directory root account is the home directory of the root normal user is home
Cd. To the current directory
Cd.. Top level Directory
CD Back home directory
CD-Back to the directory before the jump
——————————————————————————————————————————
RmDir Directory name Delete empty directory only empty directory
————————————————————————————————————
RM-RF files or directories to be deleted This command is often deleted and cannot be retrieved.
Note: Do not "RM-RF/" Linux will commit suicide really
————————————————————————————————————————
CP source file destination file copy file
Cp-r Source Directory Destination Directory
——————————————————————————————————————————————
MV source file destination file cut or rename no tube is file or directory
————————————————————————————————————————————
ln source file shortcut creates a hard link and the source file has the same effect
Ln-s source file shortcut creation Soft connection source file is deleted and will expire
Preparing your MacBook---linux commands (top)