10 practical applications of PS commands in common Linux systems

888u

Last update at :2024-06-19,Edit by888u

PS stands for the English abbreviation of Process Status. It is mainly used to list detailed system processes. Commonly used by ordinary Linux server users is the TOP command to list and view the current server snapshot process parameters. However, if we need to conduct actual detection status of the server environment and detailed usage of process commands, we need to use more PS commands.

In this article, Snail sorted it out when he saw the PS commands. Although most of them are untouched and blurred, they may be exposed in the future, so they are sorted out first so that they may be needed for reference in the future.

First, do not use any parameters

No parameters are used here. You can see that there are 4 sets of data. PID represents the process ID, TTY represents the process position, TIME represents the time it takes to execute the process, and CMD represents the current command.

Second, display all processes

ps -ax | less

Third, filter based on users

Here processes are filtered based on actual user occupancy.

Fourth, filter based on CPU and memory usage

Fifth, filter based on process ID

Here, filter based on the process keyword after -C.

Sixth, filter based on specified process ID

Seventh, display the process in the hierarchy

Eighth, display security information

Ninth, display the process in ROOT user format

Tenth, real-time process viewing

The above 10 commonly used PS commands are compiled. General users including myself will be confused when they look at them. It is better to be familiar with them when they are actually needed or when they are used in specific environments. Let’s record it first, and look at the detailed application later when we need to use it.

Recommended site searches: private server rental, Guangzhou website registration, Taiwan proxy server, Ministry of Industry and Information Technology ICP registration, local IP, Taiwan server rental, server rental US high defense, what is the server, shopex virtual host, vps server rental,

p>

10 practical applications of PS commands in common Linux systems

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码