linux view all processes of a specified user

Briefly

1. If the top command is not restricted, the default is to view the process status of all users

2. top -u [username] can view all processes of the username

The experiment is as follows

1. In the ubuntu user state, we can run the command top -u ubuntu to view all processes of the user ubuntu

2. In the ubuntu user state, we can run the command top -u root to view all processes of user root

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324144774&siteId=291194637