It is necessary to display the processes of a specific user.
ps -aux | grep ^ 'User'
Writes not found
Generally speaking, bad practice is to use grep where you can do without it:
ps -u username Also, depending on the definition of what exactly “specific user processes” are, you can use -U instead of -u . (See man 1 ps and man 7 credentials for the difference between real and effective UID)
Checked works:
ps aux | grep ^username ps output it will look like the first 7 characters and the + sign. For example, the user elasticsearch turns into elastic+ . So the search pattern is reduced to the first 7 characters. A pattern of 9 characters does not make sense at all. - de_fragSource: https://ru.stackoverflow.com/questions/813569/
All Articles