In most Unix-like operating systems, the "ps" program displays the currently-running processes.
Questions tagged [ps]
127 questions
0
votes
1 answer
How to get users running processes without it's username in it?
I'm trying to write all users and their running processes in file using: ps -r -U username -o pid,command,user > up.txt
But I don't need commands that contains users name in it.
How can I filter commands by their name?
Example
22312 ps -ls …

FeoJun
- 1
0
votes
1 answer
sar and top show high cpu usage, but vmstat and ps show low cpu usage. Why?
I'm diagnosing a high CPU usage event, and I found a weird difference between numbers from ps/vmstat, which show almost 0%, and sar/top, which show almost 100% (user + system):
sar 1 5
Linux 2.6.9-67.ELsmp (uxdfl712) 07/25/2020
01:48:31 PM …

Emerson Prado
- 25
- 5
-1
votes
1 answer
is there a way to pretty print the output of "ps" to include the "rss" memory value?
I have a python script which takes in processes in csv format and decides things based on what's running, it's name, and how much cpu time it's using. I would like to add processes that also use lots of memory to said script.
The problem, however,…

Rusty Weber
- 472
- 8
- 21
-1
votes
2 answers
How to connect to remote server using powershell from local . Enter-PSSession not working ( Not Related Exchange Service )
I am trying to connect to remote computer using local powershell session.
for that I am trying to use local powershell Enter-PSSession or New-PSSession comandlets as :
$session = New-PSSession -ConnectionUri…

Usman
- 117
- 6
-2
votes
1 answer
How to cut the result of ps command
Could you please explain this command?
and what does 48 means ?
ps -laef | cut -c 48- | sort | uniq -c | sort -n
Thanks in advance

Adam
- 1
- 2
-2
votes
3 answers
How to terminate a process(httpd) when its PID keeps on changing in CENTOS 7
When I tried to restart my httpd service using systemctl restart httpd
Checking the status, I found that process is dead and another process is running. so I removed it using yum erase httpd
As a precaution, I checked if the process is still running…

Anup Sharma
- 77
- 1
- 1
- 8
-2
votes
3 answers
How to solve memory issues in Linux
How to get details of a process that is taking RAM.
From top command i have found that Mysql is taking too much ram how can i know why Mysql is taking too much ram far from usual behavior?
Is there any commands to get more details of the process…

tough-network
- 1
- 1