ps is a command for printing information about running processes

learn more… | top users | synonyms

0
votes
2answers
19 views

Which tool can be used to configure the CPU priority of a process?

I know that you can use nice to re assign priorities of processes but which tool can be used to configure the CPU priority of a process ?
0
votes
2answers
40 views

defunct process - is it always a child process?

reading on what is a defunct process says that it is a child process which when it terminates/end is not properly handled/killed by its parent. but viewing on the below output servera> ps -ef | ...
1
vote
1answer
42 views

Why are arguments of a command altered when viewed by ps?

When I run my favorite app, why the arguments look different when viewed by ps? $ redshift -l 12.94:43.75 2>/dev/null 1>&2 & [1] 8637 $ ps -o cmd= -C redshift redshift -l 12.94 43.75 ...
1
vote
1answer
45 views

Killing PGIDs but proceses are respawning, how do I make it persistent?

I ran ps aux --forest -j to see parent and child processes. Here is an example: root 3744 3744 3744 0.0 0.2 77084 4160 ? Ss 09:34 0:00 /usr/sbin/cupsd -f lp 3747 3747 ...
1
vote
1answer
31 views

Is it better/preferred to kill all child processes by using PPID or PGID?

I need the ability to kill all child processes running under a particular parent. What would be the better option to do this? Using PPID or PGID? Something like this: pkill -TERM -P Would kill ...
1
vote
2answers
700 views

Why I can not use all the 100% potential of CPU?

I am using my computer clusters to run a MD C program but I can not use full potential of those clusters. But the this node have 16 CPUs and I also only give 15 jobs for those CPUs. But I can not ...
2
votes
0answers
30 views

Restrict a user from viewing other user's processes [duplicate]

Suppose there are two users : user1 & user2. Now we know that if I give top -u user1, I can see only the process respective to user1. But if I do top -u user2, I can see all the process running ...
0
votes
2answers
18 views

How to get PPID with PS using BSD options

I'm looking for a ps string that will give me all the output headers of "ps aux" but with the PPID. So far, I can only get the PPID column using ps -ef. I have tried numerous combinations but have ...
3
votes
3answers
48 views

How to start two processes piggie-backed? So the first finishes when the second finishes?

I'm running a script with ssh commands to a server behind a jump-host. Each time I want to run a command on my server in the secure network, I need to ssh into the jump-host (bastion) server and run ...
0
votes
1answer
81 views

Linux ps -elf command output, what is Process Flag meaning?

In output of ps -elf command in linux, we can recognize that process flag of 4 and 1, and process flag of 5, (sum of 1 and 4), but what is meaning of process flag 0 ? unfortunately, man does not help ...
1
vote
2answers
151 views

Get a refreshing list of running specific processes

I want to monitor running python processes with VSZ, RSS %MEM, %CPU etc. One of my priorities is a list refreshing every X seconds. I managed to come to the point of obtaining a refreshing list of ...
0
votes
2answers
36 views

Can I use ps aux, along with -o etime?

I want to list all the processes what are running, which I'm doing using either ps aux, or ps auxf, but I also want to get the elapsed time for all of them. I've seen the command ps -o etime,cmd, ...
2
votes
1answer
50 views

How can I know threads names that run on specific core

I am working in java code,my code attend in making specific java thread run on specific core and in this code i give names for java threads.I need linux command that enable me to know threads names ...
2
votes
3answers
31 views

How can you print arguments of command in ps?

sudo ps o gpid,comm reports something like 3029 bash but the command has parameters --arbitrary -other -searchword is there a way to display these arguments?
5
votes
3answers
46 views

Is there any risk of a race condition when runing ps?

I'm starting a long-running process (in Java, on the off-chance that's relevant) and would like to then capture its PID via ps. I'm essentially doing this: Process longRunningProcess = new ...
0
votes
0answers
36 views

Is High Virtual Memory usage a problem or may cause problems?

In our server, we have a python based code that listen ports. The amount of Virtual Memory it uses is increased greatly with time Like: USER PID %CPU %MEM VSZ RSS TTY STAT ...
1
vote
0answers
37 views

ps command not working with -p option on solaris10 [closed]

I am executing following command on solaris 10: ps -o pid,sid -p "procid" It is not listing the output for pid provided, instead it lists all process ids running with their corresponding session ...
0
votes
1answer
43 views

Substantial portion of memory used is not accounted for by user processes

I recently installed a copy of Ubuntu Server 14.04.2 LTS on a cluster. All appears to be working fine, but a large portion (around half) of our total available RAM is being used. I.e., when I run ...
1
vote
0answers
117 views

Fedora 21: Getting “libprocps.so.1: cannot open shared object file: No such file or directory” on ps

I have Fedora 21, which is a fedup from Fedora 20. My problem is that whenever I am using ps commaand, I am getting /usr/bin/dpkgd/ps: error while loading shared libraries: libprocps.so.1: cannot ...
1
vote
0answers
52 views

Create tree of processes

I'm implementing pstree as an assignment, and I would like to create test tree of processes, but I'm struggling to do so. I tried to do something like this to create tree of background processes ...
0
votes
1answer
58 views

sorting ps output by CPU time on linux

I want to sort ps output by process CPU time ("TIME" column). I've tried: ps -aux --sort cputime | tail but it doesn't sort by cpu time. I'm running with: ps --version procps version 3.2.7 ...
1
vote
1answer
86 views

How to start (or find) a process with RUID different from EUID?

Inspired by one of the previously answered questions, I tried executing a program by a user who was not its owner -- and the process's RUID and EUID remained the same. (Unless I read the answer wrong ...
1
vote
1answer
43 views

process id and command

I want to write the process id and command of all processes with some name and from some user (for example root and init). What should I do? ps -f -u root -C init or ps -f -U root -C init ...
1
vote
2answers
40 views

Asymmetric ESTABLISHED session in netstat

On the first host, root@xxx:~# netstat -natup | grep xxx tcp 0 0 10.2.5.3:40740 xxx:10051 ESTABLISHED 1482/zabbix_proxy: we can see that a connection has been established with ...
1
vote
1answer
82 views

Disowned “Stopped” job process still appears in process table

I want to know why after disowning the stopped process, it is still appearing the process table PING www.google.com (74.125.130.106) 56(84) bytes of data. 64 bytes from 74.125.130.106: icmp_seq=1 ...
2
votes
1answer
173 views

Using ps and watch to observe parent and child process

I got a parent and a child process running, I know their IDs. How do I utilize 'ps' and 'watch' to filter them out, so that I can see their used CPU times? I tried 'watch ps -u USERNAME', but as you ...
0
votes
1answer
80 views

Cron start script twice

I have a backup script which sends my snapshots to a off-site location. 0 0 * * * /root/backup/backup_incremental >> /root/backup/test.log For some reason my PID file which should stop the ...
5
votes
4answers
469 views

list graphical processes from terminal

Do no confuse the question here with how to list processes graphically, that is not what I am asking. In the Terminal, how can i see which processes have a GUI? as in things like firefox, vlc, ...
2
votes
1answer
150 views

monitor multiple pids with top

I want to monitor memory usage for several processes and came up with a command like this: ps aux |grep -e postgres -e unicorn -e nginx|cut -d' ' -f2|for i in $(xargs); do echo $i; done 16112 16113 ...
0
votes
3answers
97 views

grep randomly appearing and disappearing in ps aux (ps aux | grep python) [duplicate]

This isn't an actual problem - but more of a curious question, when I run while true; do ps aux | grep abc; echo done; done I get the following: user 29733 0.0 0.0 11748 924 pts/1 R+ ...
0
votes
2answers
216 views

Meaning of the pstree output

-bash-3.2$ pstree 27108 Script.sh---java---15*[{java}] What does this 15* mean here, also any meanings defined for [] & {} in the context of command?
1
vote
3answers
173 views

Inetd and Xinetd: which is running?

I'm studying for the first LPIC exam. In a quiz, I've found this question: How can you tell whether your system is using inetd or xinetd as a super server? And the right answer should be: ...
0
votes
2answers
144 views

ps output / pipeline execution order

I run ps aux | grep somethinghere. The output shows the grep somethinghere as a running process. My question is, shouldn't ps aux finish first, then grep somethinghere run on its output? Maybe there ...
1
vote
0answers
48 views

ps shows my mkdir command with a space where I had a slash

I have a script that I ran which seemed to hang during a mkdir command. The command is of the form: mkdir -p /a/b/c/d However, in the ps results, I see: mkdir -p /a/b c/d What could cause this ...
0
votes
1answer
49 views

Is there a way to see which user is logged into the system and has switched with “su”?

There are many person that may have access to the system and use a common user with more grants. How can I see which user is running a command? is there a way to use "ps" for that?
1
vote
1answer
119 views

Count the total number of sub-processes (recursively) spawned by a command

How do find the total number of child processes (recursively) spawned by a script? For profiling purposes, it is sometimes important to count the generated sub-processes of command, script, etc. ...
3
votes
2answers
208 views

Select lines starting with specific numbers

I have to show the PID, PPID and STATUS of the procceses on the system, but only the ones which PID starts with numbers in the range 5-8. So i tried something like this... ps xao pid,ppid,s | grep ' ...
0
votes
2answers
481 views

how to print ps header when using pipe in linux [duplicate]

how to print ps header when using pipe in linux this normal ps output $ ps -ef UID PID PPID C STIME TTY TIME CMD root 1 0 0 17:00 ? 00:00:02 ...
4
votes
1answer
199 views

How does ps get the executable of processes of other users?

When running as non-root, if I try to use readlink(2) on a /proc/<pid>/exe for a process not owned by me I get a permission error. So how then does ps with the -f option, which isn't setuid ...
3
votes
2answers
1k views

Sorting the output of `ps`

I am trying to understand why ps does not behave the way I expect it to. From the man pages, the following command should display ppid and lstart, with items sorted by lstart order. However when I run ...
1
vote
1answer
57 views

In which directory is node running?

In trying to figure out how some application that listens on port 8088 is running, I see that it has PID 15020: $ netstat -ntulp Proto Recv-Q Send-Q Local Address Foreign Address ...
1
vote
1answer
139 views

Why is my second tmux session not shown in ps aux or htop but in tmux list-sessions it is?

I start two new tmux sessions, the session name is variably build from a timestamp. (the commands create a new, detached tmux session, which first changes the directory, lists the content and then ...
1
vote
1answer
238 views

List connected via SSH users [duplicate]

I checked this answer and this option - it is good, but it requires sudo rights. I need that this command may be performed by any user, for this reason I am using next command ps -ef | grep sshd: | ...
0
votes
1answer
2k views

grep for specific process in ps but not the grep command itself [duplicate]

If I want to check if something is running, I do ps aux | grep flamethrower, expecting just to show the processes containing flamethrower in the name. This will always find at least one process, as ...
0
votes
1answer
53 views

Average CPU utilization of a process

I am trying to conduct some experiments for determining what the CPU utilization of my process is. I am familiar with the top and ps commands. Which would be a better solution for getting the average ...
1
vote
3answers
101 views

ps to show only processes that match more than one condition (AND)

According to the ps man page: Except as described below, process selection options are additive. The default selection is discarded, and then the selected processes are added to the set of ...
2
votes
2answers
33 views

Getting transient PID from log into a PS search before it dies

I have a transient prelink process populating our audit log, but we're not sure what the process is. The error log gives us the PID, but it disappears pretty much instantly, as the process finishes ...
1
vote
1answer
31 views

Missing space in `ps` output near EOL

Note the missing space before foo: $ ps wafux | grep foo [....] 21742 0.0 0.0 10688 2296 pts/2 S+ 23:30 0:00 \_ grep --color=autofoo $ echo $COLUMNS 99 Compare with this: ...
1
vote
1answer
87 views

Using “ps -C java -o pid,user,cmd” Can I reduce the output of cmd?

I am trying to get this command down to just the essential information that I need. In the command cmd comes back with this output... /usr/local/jre1.7.0_51/bin/java -Dwd.tag=boxect ...
1
vote
2answers
1k views

awk - Group by and sum column values

I have command to list system process by memory usage: ps -A --sort -rss -o comm,pmem Which list a table like COMMAND %MEM firefox 28.2 chrome 5.4 compiz 4.8 ...