LS Directory command English original: List parameter-a view hidden files -l View long format files -D View Directory properties -H humanized display -I list directory index number mkdir create directory command English original: make directories parameter-p Recursive create directory &N Bsp can create multiple directory cds concurrently enter directory parameters: Go back to the top level of the catalogue . Return current directory rmdir delete empty directory RM-RFCP copy file parameter-r copy directory -P Preserve file properties /can be used during replication Name MV Cut file parameter-r copy directory -P reserved file properties /can rename rm Delete file parameters during clipping-RF Delete directory -F Force Delete files Linux using su+ username Switch User ctrl+l clear screen Ctrl + C terminate current operation Touch Create file Cat display file contents -n Display line number TAC reverse display file contents More paging file use space or F key page return line Q exit less paging display file Unlike more Is can use PageUp and up arrow page UP can search/+ keyword can highlight keyword head-n number of rows specify the number of rows to display head default display 10 rows tail-n rows View the last few lines -f dynamic display & Nbsp;ln Generate link File English intent linkln-s Generate link name point to Objects soft links For example: Windows desktop shortcut file name starts with L, 3 permissions are rwxln generate link name point to object Hard link cannot point to directory, copy, synchronous update live backup, cannot be executed across partitions , another file exists when a file is deleted. I-node like chmod change file permissions u: User g: Group O: Others A: All people use "+ - =" To modify file permissions with R=4,w=2,x=1. To change the file permissions chmod -R recursive modification, the subdirectory under the directory also changed. A normal user can delete a file created by root because a normal user has W permissions on the directory where the file resides. RWX permissions on the directory are: List contents of directory &NB Sp Delete a file is a directory of this file with write access to enter the catalogue. chown change the owner of a file or directory only Root can operate CHGRP change the owning group of a file or directory You can use Groupadd to add a group when changing an owner or owning group must be an existing owner is the creator of the file, the owning group is the default group of the owner Umask-s the default permissions for the new file are created by default files cannot have executable permissions umask display 0022 0 is a special permission 022 is a mask value of 777 755umask + Mask value can modify the default permissions and is not recommended for modification. chmod changing the permissions of a file everything windowS System Utility Search tool Find File Search command find/-name file name exact search Find/-name * filename * fuzzy search? Match a single character, * match any character find/-size +/-Data block search by file size, data block is the smallest unit of Linux default 512 bytes. 100M=204800 Data Block + represents more than-indicates within what find/-user/-group owner/owning group find/ -cmin-5 find within 5 minutes file attributes changed file -amin Access time -cmain file properties -mmain file contents find/-type f/d/l Find by file type, f file D directory l soft connect-inum Search by i node for file Unclear file-a/-o:a: is two conditions at the same time satisfy o: meet any of the conditions Find/etc-name file name-exec ls-l {} \; find the file under etc and display its details-exec/ok difference is that OK will ask for User Opinion locate command search from the Lacate library to search, the speed is relatively fast. UpdateDB Update Lacate Library tmp is a temporary file vault, not as a locate data source Locate-i case-insensitive which find the directory where a command is located see if the command has an alias Whereis Locate the path where the command is located and the location of the Help document grep finds a specific row-I case-insensitive Linux "#" at the beginning of the line indicates that this is a comment row grep-v ^#/etc/inittsb excludes the comment lines in the beginning of the/ETC/INITTSB that are # # nbsp;^ represents the beginning of the man help command Get help information man LS get help information for LS command help Browse is call Moreman date display set system time man profile name (no absolute path required) man passwd 1 Command Help 5 configuration file help Whatis command name----Retrieve command brief information Apropos profile----Retrieve configuration brief information touch--help put the touch commandOptions list help view the shell's built-in commands with which I can't find info and man function. User Management Commands Useradd username Add user passwd user name Set user password, not too simple. Root set simple password can pass, ordinary user pass. Who view login user information including username Terminal logon time Login Host Iptty indicates local login pts indicates remote terminal login W View detailed login user Information net Network Command write + username Send message to user wrong with Ctrl backspace or DELECTE clear ctrl+d save end W See if online wall broadcast message PING+IP address ping-c 3+ip & nbsp; Just ping returns three statements ifconfig View and configure network card information mail user name (optional) view send e-mail receive mail Open mailing list reply serial number View message Contents h return to mailing list d+ serial number Delete message Q exit Last view all logged-in Users lastlog view final Login info list all users including Lastlog-u 502 Last user Login details & nbsp; shutdown Restart Command shutdown-h now Immediate shutdown also enables timed shutdown to change now to a specific point in time Shutdown-r now Immediate restart You can also implement a timed restart to change now to a specific point in time shutdown-c Cancel previous shutdown command system RunLevel 0----Shutdown 1----Single User 2----incomplete multiuser, No NFS service 3----full multiuser 4----Unassigned 5----Graphical Interface 6----Restart shutdown halt poweroff & nbsp inIt 0 restart reboot init 6cat/etc/inittab Modify system default Run level runlevel query current RunLevel Important hotkey "tab" The key has the function of completing the command and filling the file. You can prevent us from hitting the wrong command or file name. "Ctrl" +c exit the current operation "CTRL" +d exit text terminal
Common Linux Commands