Linux Common directives:
LS display file or directory ls-l list file details ls-a lists all files or directories in the current directory, including hidden
Ls-al display detailed file information, including hidden files mkdir creating a directory
MKDIR-P Create directory, if no parent directory, create parent directory CD switch directory touch create empty file echo Create file with content
Cat View file contents CP Copy MV Move or rename rm Delete file Rm-r Recursive Delete, can delete subdirectories and files
Rm-f Force Delete
RM-RF Force recursive Delete Find in file system search for a file the number of lines in the WC statistic text, word count, number of characters grep finds a string in a text file
RM dir Delete empty directory (dir refers to a directory name) ln creates a linked file More/less page displays the contents of the text file head/tail display the file header, tail content
System administration Commands:
Stat display specifies file details, more detailed than LS. Who shows online login user WhoAmI display the current operation user hostname display host name
Uname Display System Information top view process information PS Display instantaneous entry status
Du view directory size du-h/home with units display directory information DF view disk size Df-h view with unit display disk information
Ifconfig viewing network conditions Ping Testing network connection kill-9 process number forcing the process to terminate
Summary of Linux Common command and System management commands