1. View all processes in the system
ps -e
ps -ef
ps -A
ps -eF
The content displayed by these commands is somewhat different, you can try it yourself.
2. View PID by process name
pgrep name
pgrep -l name
pgrep -o name
pgrep -n name
name is the name of the process you are looking for. This situation is suitable for automatically obtaining the PID and performing some operations.
3. View the detailed information of the process
cat /proc/pid/status
4. View the priority of the process
chrt -p pid
5. View the status of threads in the process
top Hp pid
5. Modify the priority of the process
chrt -p -r level pid