Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [ps]

report a snapshot of the current processes. Useful when trying to determine the status of the running process in a specific moment.

0
votes
1answer
80 views

Cisco Packettracer fails to start

Trying to install and run Cisco packettracer 7. thufir@dur:~$ thufir@dur:~$ /opt/pt/bin/./PacketTracer7 /opt/pt/bin/./PacketTracer7: error while loading shared libraries: libQt5ScriptTools.so.5: ...
0
votes
0answers
24 views

Script which checks for a running process [duplicate]

I would like to implement a .sh script which checks whether a process is running or not. I place a cron job which runs the .sh script every ten minutes. If the process is not running, I would like to ...
2
votes
1answer
90 views

How do I kill a Firefox process thrashing my computer? 18.04

In short: a Firefox process takes control of Ubuntu 18.04 LTS in my Acer TravelMate P, and it seems there's nothing I can do but to shutdown the computer. This is similar to https://superuser.com/...
1
vote
1answer
48 views

killing the bash interpreter

Im trying to kill /bin/bash but when I do ps aux | grep "/bin/bash" and I kill the pid associated with it, it gaves me an error. Any help is greatly appreciated. Also can you tell me what's the ...
7
votes
3answers
400 views

How can I list running bash scripts by the name of the script?

ps returns bash as the name of the process... I would like the name of the shell script instead. For instance, if my script is TestEric.sh, I would like to list the number of instances of that script ...
12
votes
1answer
3k views

Difference between ps -aux and ps aux [duplicate]

What is the difference between ps -aux and ps aux? I wonder it's more than a mere matter of syntax and "portability". Which one is better to use in Ubuntu? Despite there are some similar question, I'...
2
votes
3answers
90 views

Monitor and time a process that is already running and saving the total running time into a file

I have a few different processes that have been running for quite a long time (200 h). I just realized that I have forgotten to use the time command to get the total running time at the end. These ...
1
vote
1answer
60 views

How do I tell what Java app a process is?

I run Eclipse in my Ubuntu 17.04. ps -A |grep java shows several processes. How can I tell which one is Eclipse?
0
votes
0answers
358 views

What is kthrotld?

I'm struggling to find any documentation online relating to process number 54. root 54 0.0 0.0 0 0 ? S< 11:24 0:00 [kthrotld] root 11385 0.0 0.0 12944 992 pts/...
4
votes
1answer
748 views

What is kdmflush?

I've entered ps -aux and found this kdmflush process. root 274 0.0 0.0 0 0 ? S< 06:50 0:00 [kdmflush] root 321 0.0 0.0 0 0 ? S< 06:50 0:...
4
votes
2answers
594 views

Using grep and whoami to list processes that aren't owned by the current user

ps aux --sort=-%cpu | grep -v 'whoami' command is supposed to output processes that are not started by the effective user. However, it prints out my user's processes as well as other users'. Please ...
0
votes
1answer
174 views

Why does ps -ax list itself?

How does ps -ax list itself as a running process? Testing methodology: ps -ax | grep "ps \-ax" also, the PID is different each time, so I know that it isn't just running in another TTY or ...
1
vote
1answer
111 views

How can I find out the command to run a program installed under wine?

I installed PDFXEditor under wine. I can start the program from desktop menu, but I like to find out which command is run, so while the program is running, $ ps aux | grep -i PDFXEdit t 23516 ...
1
vote
1answer
223 views

how to run the process status, ps, utility

How do I run the ps utility? thufir@arrakis:~$ thufir@arrakis:~$ ps -aux The program 'psql' is currently not installed. You can install it by typing: sudo apt install postgresql-client-common You ...
11
votes
2answers
3k views

Which to use of ps ef or ps -ef?

I see there is a difference in output between ps ef and ps -ef. What is that difference, are both commands correct or which is preferred?
0
votes
1answer
36 views

How to kill process with the same name but ran in different directory?

in directory a I ran a Python process named basic.py and then I ran another Python process in directory b named basic.py too. And I want to kill the process ran in directory b, however when I used ps -...
5
votes
2answers
1k views

List only processes that are in suspended mode

to list processes that are running in the background, one can type: ps -ef or ps -aux but how to list processes that are suspended, let's say I had some process in the foreground and just suspended (...
5
votes
2answers
162 views

Inconsistent output for init process name using 'ps'

I am on Ubuntu 16.04, and am following allong "Starting and Stopping" services chapter of the Linux Bible (9th edition). I am trying to find what type of init daemon I have (init or systemd) which ...
1
vote
0answers
45 views

Trouble Printing to PostScript Printer

Ubuntu 16.04 with CUPS 2.1.3 print system NEC Silentwriter 1097 with parallel port on SAMBA share (hosted by WinXP SP3) Basic connectivity verified working CUPS error log: EMPTY If I "Print to File" ...
4
votes
3answers
295 views

Help deciphering `ps` and `pstree` with `cron` and `sudo`

Sorry for this color screen shot but I think it helps highlight the problem better than copy & paste + code format: Here is the same screen in code format: ───────────────────────────────────────...
0
votes
1answer
188 views

PID in Ubuntu gnome terminal

By using ps aux | grep -i “name of your desired program” the list of PID's appeared, but I found more PIDs than in the System Monitor. How is this possible? I did not find PIDs with -color =auto in ...
2
votes
1answer
51 views

Why the field in header is tt insted of tty?

In the terminal ps PID TTY TIME CMD 12555 pts/1 00:00:00 bash 22205 pts/1 00:00:00 ps I want to display only four fields in the output info of ps command ps -eo pid,ppid,tty,...
0
votes
2answers
200 views

How to get the head field of ps command?

ps -el |grep systemd 4 S 0 1 0 0 80 0 - 7233 - ? 00:00:00 systemd How to get the following output format? ps -el |grep systemd F S UID PID PPID C PRI NI ADDR SZ ...
0
votes
2answers
90 views

How to get the precise commands that a bash process is triggering?

If a bash script running, it will appear in my ps output as # ps -e [...] 10043 pts/1 00:00:00 bash [...] How do I get to know the precise commands being excecuted? Thank you,
2
votes
1answer
26k views

What does “ps -ef|grep processname” mean?

I want to know exactly what this particular command ps -ef|grep processname means and how it works. I know that this should be associated with processname which we want to search for, but I don't ...
1
vote
2answers
628 views

What does this `ps` command mean?

ps -e | grep -c '^' Whatever it means I have 166 I got lost with the '^' and can't remember where I seen it
5
votes
2answers
2k views

Running a single executable with sudo adds two processes in process list

I wrote a program that captures the packets from the network interface. As it listens the network adapter, I need to run it with sudo. The question is, why when I run it, does it add two processes to ...
1
vote
0answers
225 views

Ensure hardware acceleration feature working

Firefox in my ubuntu distribution typically takes up high resources of CPU. Since hardware acceleration is an often suggested way to ensure performance, i have enabled it under the browser preference, ...
0
votes
1answer
89 views

What are these comments next to postgres processes in ps?

When you run a Postgres database and check all the processes with ps you can see comments which most likely are neither executing program name, nor its parameters. What are they? $ ps ax | grep [p]...
1
vote
1answer
2k views

Command “ps -a” does not show all processes?

I used the command ps -A to see all running processes. However, even though I have a LibreOffice Writer opened in the background, the command does not list LibreOffice as a running process. Even ...
4
votes
2answers
606 views

ps inside crontab is not seeing a running process

I have this robot worker.py, which I just run as: python worker.py --details There are many problems surrounding this robot, so it keeps going down each 30 minutes. When the robot is running, ps ...
4
votes
3answers
2k views

ps aux | grep with a dot

I'm trying to write a script which greps for a running process. I'm trying to avoid the actual grep from coming back from the ps aux output. However I'm getting varying results if I use a dot or not:...
0
votes
1answer
42 views

which system command should i use to get the desired output given below

I need to write a system program that imitates who and w.Print the time since login(in the form HH:MM:SS)and the host name. Allow for a command line option -p that also prints the interesting ...
0
votes
1answer
216 views

What command is the most effective for listing processes? [closed]

I've seen lots of developers use ps -ef to list processes and kill them (such as in ENCOM, devs of OS-12). However, there is also htop. A friend told me that it is only a wrapper around ps and ...
1
vote
2answers
5k views

How can I prevent the output of ps -ef to be cut off? [duplicate]

I have to check numbers of scripts currently executing in Linux based on which I have to decide whether to run the script again or not. The issue is that the classpath is too long so while executing ...
0
votes
2answers
1k views

How to show top ten memory consuming processes with ps?

As stated in the question I want to list the top ten process in my ubuntu which consumes more memory I am using ps aux --sort -rss which sorts based on memory consumption. As the number of processes ...
4
votes
3answers
4k views

What is /usr/lib/tracker?

I ran ps -aux and I see like 4 of these name 1696 0.0 0.3 337052 11892 tty2 SNl+ 06:46 0:00 /usr/lib/tracker name 1698 0.3 0.4 502776 19272 tty2 SNl+ 06:46 0:24 /usr/lib/...
1
vote
2answers
3k views

How to prevent ps from truncating the process name

Following command outputs only first 25 characters of the process name (cmd) on the screen. How do I get it to display the full process name? ps -eo pid,cmd,etime
0
votes
1answer
843 views

ps does not work after upgrading to 14.04 (/usr/bin/dpkgd/ps: error while loading shared libraries)

I recently upgraded from Ubuntu 12.04 to 14.04, now on starting my terminal and running ps throws the following error : /usr/bin/dpkgd/ps: error while loading shared libraries: libproc-3.2.8.so: ...
8
votes
3answers
14k views

Output only the column under COMMAND of `ps` command in terminal

I know that we can easily find the following: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND of all the running processes by using the command: sudo ps aux My, question ...
5
votes
1answer
12k views

Values of WCHAN in ps

What does the WCHAN (waiting channel) mean exactly? what can be its value and what those values represents? I tried to find them but got nothing.
4
votes
5answers
1k views

Combine two commands into one command

How can i combine these two commands ps aux | head -n1 ; ps aux | grep vlc into one command? I tried to use tee command (ps aux | tee >(head -n1) >(grep vlc)) but it didn't work!
1
vote
2answers
1k views

How are the various ulimit values for a process set?

How are the various ulimit values for a process set? I am especially interested in the number of open file descriptors. How is that set for a given process? If it is based on the user who started the ...
0
votes
2answers
475 views

shortening the output from the command ps efo cmd | grep

I want to condition on whether or not a certain process is running. The process has a very long description, more or less like /usr/bin/xpdf -remote myXpdfServer -title Bayes2_notes -papercolor ...
1
vote
1answer
98 views

How can I set up an automatic check for supervision (monitoring of services) on Ubuntu 12.04 with ps?

I'm setting up a supervision on an Ubuntu 12.04 server. One of the checks is supposed to make sure some processes are properly running. Basically it runs a ps -aux and checks if a given process is ...
0
votes
1answer
199 views

What causes the changes in output of ps for GNOME Terminal in 15.04?

Working on this answer, I found out that the output of ps commands has quite changed in 15.04. A few examples in 14.04, the output of ps -e shows on gnome-terminal: $ ps -e 19006 ? 00:00:00 ...
14
votes
4answers
1k views

Why the PID values are not continuous?

If we type ps -ef then we get a list of processes. Why are the PID numbers not continuous?
2
votes
0answers
467 views

Different results of 'ps aux | grep x' if entered manually and done via script

It was probably a bad method, but I was running ps aux | grep x | wc -l as part of the if statement in a script. When I ran this from the command line as a regular user, the result would be 1 if the ...
3
votes
1answer
437 views

Xorg does not show up in ps aux?

Doing ps aux on tty1 does not list Xorg as a process, but commands like killall Xorg work fine. Why does ps not list Xorg?
4
votes
2answers
1k views

Get specific PID and save to file

I'm running two minecraft servers on my machine. I want to know what the pid is of a single mc server that is running and put it to file so that I can kill it later. So for this example I only want to ...