Linux Common Command Learning
The role of PWD: To see what directory Users are currently in II, CD role: Into a directory 1, into the root directory: CD/2, return to the parent directory: CD. LS function: View the current directory of files 1, listing the current directory detail file information: LS-L2, if the file read and write permissions the first character is ' d ' as a directory, not ' d ' for file 3, humanized display file list: Ls-lh4, show hidden files:ls-a Iv. Vim Function: Edit file 1, edit file: Vim filename 2, edit hidden file: Vim. File name Five, more role: Under the terminal slowly read the contents of the file 1, slowly view the contents of the file: more filename six, MV Action: Move a file or directory to another directory 1, move to a file or directory: MV file or directory directory vii. mkdir role: Create directory 1, create directory: mkdir folder or filename 2, recursively create directory: Mkdir-p path cat role: Simple viewing of file contents at Terminal 1, simple viewing of file contents: Cat file name nine, tree role: Display the directory's structure 1, the data structure of the display directory: Tree directory 10, man role: View the help of the command 1, see the LS related help description: Man ls 11. Help: See some of the built-in command 1 of the Linux command line and view the CD's built-in commands: Helping cd 12, CP role: Copy files 1, copy files to the directory: CP file name Directory 13, find function: Locate file 1, find files under a directory: Find path-name "file name" 14 , Touch: Create file 1, create a file: Touch path/file name 15, RM function: Delete file 1, delete a file: RM path/file name 16, grep function: You can specify a file to search for specific content , and the rows containing these content are standard output to search for specific content in the specified file, and the rows containing those content are standard output 1, when querying multiple files only output filenames containing matching characters:grep-l 17, tar Effect: Package Command 1, package: Tar ZCVF demo (custom file name). tar.gz (Package format) ./* (all files in the face directory,Example) 18, DF Effect: View the current disk usage 1, view the current system disk usage:df-h 19, du role: View the directory size 1, view the current directory size:du-sh 20, Free effect: View current server memory 1, view server memory: free-m (view in megabytes) 21, Top role: Dynamically view the current server's application utilization rate of 1, to see if the application occupies server resources:top 22, IP role: View server address 1, view the current server IP address: IP a 23, chmod role: to the file authorization 1, to file authorization 777 permissions: chmod 777 file name 24, Shutdown function: Turn off the computer, use permissions is Superuser 1, power off after shutdown: SHUTDOWN-H2, set the time before shutdown:shutdown-time 25, reboot effect: Restart the computer, The use of rights is the System Manager 1, before the restart of all network-related devices to stop:reboot-i 26, install the role: Installing or upgrading software or backup data, the use of rights is all users 1, install [options] ... Source Destination 27, Chsh role: Change the user shell settings, its use rights are all users 1, display system all shell type:cash-l 28, Last role: show the recent user or terminal logon situation, its use rights are all users 1, display system shutdown, user login and exit history:last-x 29, diff Role: Command for the comparison between two files, and point out the difference between the two, Its use rights are all users 1, ignoring the space caused by different:diff-b source files Target files 30, quota role: Used to display disk usage and restrictions, use Rights Superuser 1, Displays the user's disk usage limit:quota-u user name Group name 31, at function: Used to execute the specified command sequence 1 at a specified time, to let the system in two days after the execution of the files specified in the file data: at -f data 15:30 +2 days 32, kill action: Used to abort a process 1, forcibly abort (often used to kill) a process identification number 324 process:kill -9 324 33. Ifconfig function: View and change the address and parameters of the network interface, including the IP address, netmask, broadcast address, the use rights are super User 1, ifconfig -interface [options] address 34, Ping function: Detection of Host network interface status, the use of rights are all users 35, netstat role: Check the entire Linux network like 1, Displays all ports in the listening state:netstat -a 36, Logout effect: Logoff 37, locate function: Used to search for files or directories containing the specified condition string 1, listing all contained " ZH_CN "string of files and directories:locate zh_cn 38, date effect: Show current datetime 39, Echo Effect: Create file with content 40 , hostname function: Display hostname 41, uname function: Display System Information 42, who role: Show online login user 43, WhoAmI function: Show current operation user 44, Clear function: Clear Screen 45, ctrl+alt+f1 effect: command line full screen mode 46,GroupaddRole: Create a new user group 47, Groupdel role: Delete a user group 48, Useradd role: Create a new user 49, Userdel-r role: Delete a user 50, passwd role: Change Password
Linux learning Experience--basic knowledge (I.)