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

learn more… | top users | synonyms

1
vote
2answers
30 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 ...
0
votes
1answer
14 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
52 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: ...
5
votes
3answers
542 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 ...
1
vote
1answer
710 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
956 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
229 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
71 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
31 views

Supervision on ubuntu

I'm setting up a supervision o,n a Ubuntu 14 server. One of the check is supposed to make sure some process are properly running. Basically it runs a "ps -aux" and checks if a given process is there. ...
1
vote
1answer
106 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
144 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
176 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
461 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 ...
0
votes
2answers
125 views

Why does ps output show a process even if it is not running?

Why does the ps shows a process even if it is not running. While Firefox is running: $ echo $(ps aux | awk '/firefox/{print $2}') 5964 6041 But when Firefox is not running, I tried to run the same ...
1
vote
0answers
66 views

Why ps produce different output when it is started from a cron job?

When I run ps -f -u $USER ($USER is ubuntu) this is the output I get. USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND ubuntu 23517 0.0 0.1 22244 4856 pts/5 Ss+ ...
2
votes
1answer
55 views

find a process' time in the current state

I'm Looking for a way to show the time a certain process is in it's current state. At the moment, I'm using the command: ps -A -o uname,pid,state,etime,cmd | grep -e pbs | egrep -v "grep" Which ...
0
votes
1answer
77 views

how to list all processes as sorted names

As far as I know, ps -ewill list all processes in ubuntu. But the results are sorted based on pid. I want the results are based on sorted names. What command should I use ?
1
vote
1answer
777 views

How to find the running network services and the port and user

I want to find a list of all network services running on my system, including details of the port and services and the users. I know that I need to use netstat, ps and fuser. but I don't know how to ...
2
votes
0answers
136 views

Ubuntu 14.04: Converting a `pdf` file to `ps` format

I want to convert pdf file to ps file and used the following command in Ubuntu 14.04 pdf2ps input.pdf output.ps But this command throws the following error: sfopen: gs_parse_file_name failed. ...
0
votes
0answers
197 views

Terminal crashes when I'm trying to use “ps aux” or “ps -U root”

I have a problem with terminal. Recently, I accidentally deleted all my files in /home directory, but I restored it with Testdisk program. I think that probably this could cause problems. The problem ...
2
votes
1answer
364 views

What C is PS using to Determine Process Info Programmatically

In both linux and macos we can get PID info, start time by using bash: ps -p PID_HERE -o lstart=. I was going to use lstat and plan on it. But just out of curiosity: Programatically ps has to be ...
3
votes
2answers
2k views

ps aux for long charactered usernames shows a plus sign

I'm trying to get an output from ps aux so that it looks like: giovanni 28331 4381 0 15:43 ? 00:00:00 sshd: giovanni@pts/1 giovanni 28346 28331 0 15:43 pts/1 00:00:00 -bash ...
2
votes
1answer
255 views

Why 'nobody' always starts a new `find` program that always consume my memory?

$ ps -elf | grep ... 0 D nobody 27320 27319 2 90 10 - 353471 sleep_ 07:54 ? 00:02:19 /usr/bin/find / -ignore_readdir_race ( -fstype NFS -o -fstype nfs -o -fstype nfs4 -o -fstype afs -o ...
10
votes
4answers
3k views

Find children of the process

is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?
1
vote
4answers
251 views

Which is the shortest way to list a running process?

I often need to check if a process is running, so I use one of these: ps aux | grep myprocess ps -Fe | grep myprocess top pgrep myprocess (only shows the PID) pkill myprocess (if I want to kill it) ...
3
votes
1answer
2k views

what is the meaning of ax in ps ax

I know when you type sudo ps ax, that list all of the running process on the system. But want to know what is ax? what ax stand for? Is that abbreviation ?
1
vote
1answer
97 views

How do I find out if a configuration setting is running?

I use a High-DPI monitor on my Lenovo Yoga2 Laptop (like a retina display) so I have to change the overall font-scaling. There are many ways to set the text-scale-factor, for example dconf-editor, I ...
2
votes
1answer
1k views

What does “pts/6” or “?” mean in the output of ps

I am running bitcoin, litecoin, dogecoin, auroracoin and anon coin servers in different ports. When I grep each coin has different configurations as shown below. I can't understand what the question ...
16
votes
2answers
3k views

How to check my niceness?

Is there any way to check my nice lvl? I did try with ps, but for some reason the output does not show the column NI which is meant to show the lvl priority if I'm not wrong. ps -fl -c F S UID ...
0
votes
1answer
478 views

Width of ps output

I have used foreman to export an upstart config. There are a lot of long environment variables so the processes started include some with a long command like: -su -c cd ...
2
votes
1answer
51 views

How to list all the PIDs and names of all the runing processes

I know that there is this command : ps aux to get all info about the running processes .. but I need only the names and ids for these processes , is there any command can list the processes ids or ...
0
votes
1answer
61 views

Why can't pgrep find a process?

Consider: $ ps -ef | grep myprocess root 7204 1 99 23:37 ? 00:02:36 ./myprocess drew 7439 7266 0 23:38 pts/0 00:00:00 grep myprocess $ pgrep myprocess The process in question ...
-1
votes
3answers
174 views

What's mean “identical to -e” when I use this command: ps -A?

I want to know what this mean. ps -A → Select all processes. Identical to -e. What's mean "Identical to -e."?
3
votes
1answer
3k views

How many Nginx processes should there be?

Just installing Nginx on a fresh ubuntu server 12.04. ps -e | grep nginx at first returned nothing so i ran nginxwhich appeared to get things started. Running ps -e | grep nginx now returns a ...
2
votes
3answers
14k views

What is the meaning of “ps -aef | grep $(pwd)” command?

What is the meaning of this command, what does it do? ps -aef | grep `pwd`
0
votes
2answers
708 views

How can I tell state of program seemingly running

I had Firefox running, then (possibly) as a result of a key combination I don't recall, it quickly vanished from screen and Task Bar/Window List. ps ax | grep firefox returns the below+the unneeded ...
47
votes
1answer
61k views

What do the STAT column values in ps mean?

In the STAT column of ps there are a load of letters that don't really make much sense. What do they mean? Here's an example of ps aux | head: USER PID %CPU %MEM VSZ RSS TTY STAT ...