I. Introduction
This article will introduce on Linux in the process, network, process-related instruction in the use of learning these commands are the best practical operation of yourself again, to facilitate a better understanding of command.
Second, the command Detailed
[A] lsblk: view the partition of the current system.
lsblk -f: View the current partition and mount point of the system.
[B] du instruction: View disk usage of a directory, defaults to the current directory.
du -lh / test: Check / test directory disk usage
du -ach --max-depth = 1 / opt: query disk usage / opt directory, subdirectory depth of 1.
[C] disk statistics command
"^ -" grep | | ls -l / home wc -l: Number of statistical / home directory files.
ls -l / home | grep "^ d" | wc -l: Number of statistical / home directory directory.
ls -lR / home | grep "^ -" | wc -l: Number of statistical / home directory files (including subdirectories).
ls -lR / home | grep "^ d" | wc -l: number of directories under Statistics / home directory (including subdirectories).
[D] df command: View the entire system disk usage
[E] ping Host Name: Test the current server and the target server is connected.
ping www.baidu.com: Testing whether the current server and server connectivity Baidu
[F] ifconfig: View IP address
[G] ps command: Displays detailed information about processes performed by the system.
ps -aux: View all the current process details.
ps -ef: shows all the processes that are currently in full format.
-e: show all processes
-f: Full format
[H] to terminate the process kill and killall
kill 1130: Kill Process process number 1130.
kill -9 2964: Forced to kill the process ID for the process of 2964.
killall Process name: kill a process by process name.
[I] pstree instruction: View the process tree
pstree -p: in the form of a tree display pid process.
pstree -u: user id of the process in the form of a tree.
[J] top command: dynamic monitoring process
top wsh: monitoring wsh users.
top: Enter the top, press the Enter key to see the implementation process.
u: and enter the "u" Enter, and then enter the user name wsh
+ k + top + Enter process number PID + Enter: According to terminate the process number specified process.
[K] netstat command: View the system's current network
netstat -anp: View system all network services.
netstat -anp | grep sshd: see information service called sshd service.
[M] tree: show a directory tree structure manner
If Linux is not installed tree command, then, first by yum -y install tree command to install it.
tree / test: Display / tree directory tree structure.
Third, the summary
This article describes the process on Linux, management, disk usage, monitoring and other related commands These are just some of the summary when I learn, welcome to add more useful usage.