PS: simple and commonly-used bash commands. you do not need to search for details, but you only need to use them. This article will be constantly edited and added. mongopwd will display the current directory cd change.
PS: simple and commonly-used bash commands. This article will be constantly edited and added ..
Bytes -------------------------------------------------------------------------------------------------------
Pwd displays the current directory
Cd changes directory and can process absolute and relative paths
Ls is used to list files in the current directory. common parameters include-a and-l.
Cp
Mv cut/rename
Rm deletes files, common parameters,-rf (recursively deletes a file/directory, even if the directory is not empty)
Clear screen
History displays historical Command Records. it is a very useful command. historical commands are stored in the. bash_history hidden file in the home directory.
Find searches for files in a directory. common parameters include-name. for example, find-name aaa. recursively searches for files named aaa from the current directory.
Chmod changes file protection permissions
Chown changes the owner and group of files
Grep searches for matched rows in the file and outputs
Ps lists running processes. by default, processes running in the current shell are listed. common parameters-ef | grep xxx are used to list all processes and filter processes with the xxx field.
Kill stop a process
Last shows how many users or terminals have logged on to the machine
Ln establishes a connection between files
Man displays online manuals in certain formats
Passwd: Set the user password
Reboot restarts the system.
Create and edit Unix archive files in tar
Touch changes the time parameter of the file
Wc counts the number of bytes, the number of words, and the number of rows in a file.
Who to view other login users
Which displays the full path of the command
Ping command-determine whether the machine on the network can reach or reach the speed
Top: displays the CPU and memory usage of the current system.
Date: displays the current system time.
Source reads a file and executes the commands in it. for example: source ~ /. Bashrc --> after the. bashrc file is changed, use this command to refresh bash.
The tail command writes the file to the standard output from the specified point. you can use the-f option of the tail command to conveniently check the changing log file. the tail content of the filename is displayed on the screen and refreshed, so that you can see the latest file content.