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
1answer
15 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 ...
0
votes
0answers
37 views

Using “ps” “kill” and “top” to find and resolve problems with executables? [closed]

OK so for my controlled assessment I need to do some primary research via emails or forum posts. I thought that since I've used this site a lot I would ask here. So say I have an executable file ...
4
votes
1answer
22 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
566 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
0answers
14 views

WCHAN = 0 for a sleeping task?

I am a little confused about the status of a process I have. It looks like this: $ ps -eal | head -n 1 ; ps -eal | grep perf F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S ...
0
votes
1answer
26 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
50 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
1k 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
0answers
10 views

How to play games on ps2 modship from external hard disk?

First of all, what I have is PS2 slim already moded, an external samsung disk 1 TB , cd or dvd alvaible and pc for program and burn... Reason not to forget : -play on ps2 for longest time without ...
0
votes
1answer
54 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 ...
1
vote
2answers
282 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/...
0
votes
1answer
35 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
162 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
3k 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 ...
2
votes
1answer
2k 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
372 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
103 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
37 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
124 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
201 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
229 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
542 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
188 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
82 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+ 04:...
2
votes
1answer
57 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
86 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
2k 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
175 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. ...
2
votes
1answer
441 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 ...
4
votes
2answers
3k 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
364 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
4k 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
316 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
3k 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
102 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
2k 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 ...
18
votes
2answers
5k 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
672 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 /home/ubuntu/project/2014-03-...
2
votes
1answer
57 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
102 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
203 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
4k 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 ...
3
votes
3answers
17k 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
920 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 ...
59
votes
1answer
77k 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 ...