check number of threads in a process linux 1

check number of threads in a process linux

ps huH p  | wc -l

Here is what the above code is Doing:
1. ps huH p
– ps is the process status command
– huH is the format of the output
– p is the process id
is the process id of the u process
2. wc -l
– wc is the word count command
– -l is the number of lines

Similar Posts