List all processes running that have PSAESRV and FSDMO but not FSDMO2: (including cpu and memory usage and the command that started the process):
ps -e -o pid,%cpu,%mem,cmd | grep "PSAESRV.*FSDMO[^2]"
Update:
Use pidstat (or top) to get proper CPU usage and other details:
pidstat -p 12514 -T ALL -u -d -w -t -I
https://linux.die.net/man/1/pidstat
https://linux.die.net/man/1/ps
https://linux.die.net/man/1/top
Processes using specific ports:
Update:
Use pidstat (or top) to get proper CPU usage and other details:
pidstat -p 12514 -T ALL -u -d -w -t -I
https://linux.die.net/man/1/pidstat
https://linux.die.net/man/1/ps
https://linux.die.net/man/1/top
Processes using specific ports:
You have a couple of options:
lsof -i tcp:80
will give you the list of processes using tcp port 80.
Alternatively,
sudo netstat -nlp
will give you all open network connections.
No comments:
Post a Comment