Basic syntax:
top [options]
Case 1. Monitor a specific user
top: Enter this command, press Enter to view the progress of the execution.
u: Then enter "u" to enter, and then enter the user name, you can
Case 2: Terminate the specified process
top: Enter this command, press the Enter key to view the executed process.
k: Then enter "k" to enter, and then enter the process ID number to be ended
Case 3: Specify the time to update the system status (updated automatically every 10 seconds, the default is 3 seconds):
bash> top -d 10
View system network status netstat (important)
• Basic syntax
netstat [选项]
netstat -anp
• Option description
-an arranges the output in a certain order
-p shows which process is calling
View all internet services
netstat -anp | more
Please check the information of the service named sshd
netstat -anp | grep sshd