0
votes
1answer
42 views

What does ps axuwfw return?

I am getting strange output including my old makefile output and process tree when running below command on linux ps axuwfw Also, what is the usefulness of the following command and how does it ...
1
vote
1answer
108 views

What is the AIX's `ps -T PID` equivalent for Linux?

I really like the way ps -T PID works on AIX. It shows you a nice tree of processes in the right side, and their PID, PPID and other info in the left side. In AIX docs, the -T flag reads Displays ...
0
votes
1answer
33 views

can I `dtach` or `renice` graphical programs like `evince`?

I sometimes open PDF's and then want them "sort of" open "to read later", but I'm not looking at them at the moment. While I'm not looking at them I'd like the OS to spend less effort keeping them up. ...
0
votes
1answer
86 views

Red Hat seeing all processes and detail information about them

im on a red hat server and i did ps -a and see all running processes. CMD> ps -a PID TTY TIME CMD 1857 pts/5 00:00:00 ps 9011 pts/1 00:00:00 su 9097 pts/1 00:00:00 csh 20515 ...
0
votes
0answers
88 views

How to access different tty session

I wanted to know if there is any possibility of login to other tty sessions. Someone has mistakenly changed the root su password. One of the session is already logged in as root. So any possibility ...
1
vote
1answer
42 views

Why can ps know about the process that runs after it?

[root@myvm1 ~]# ps aux | grep ls root 13594 0.0 0.1 3912 672 pts/1 R+ 09:46 0:00 grep ls In the above, the ps aux runs first and its output is then redirected to the grep ls ...
0
votes
1answer
29 views

Is there a version of kill with feedback?

Is there a fork or easy mod of the linux kill command to provide feedback? I'd like to avoid the cycle of: ps acx | grep rogue_agents killall rogue_agents # alternately, kill 007 ps acx | grep ...
1
vote
0answers
20 views

ps aux and processes between [ ] [duplicate]

Just wondering if there is a difference between processes listed between [ ] and others when running ps aux. What does it mean? Is the process still running or is it a recent process that has been ...
1
vote
0answers
46 views

Using systemd-cgls and cgroups as a user configured pstree

When using pstree I was annoyed that processes forget their grandparent process when they get orphaned since they get adopted by init, so I thought maybe I could use systemd-cgls and cgroups, since an ...
4
votes
1answer
405 views

Is it possible to format ps RSS (memory) output to be more human friendly?

Executing ps ux returns a nice list of process information, easy to grep through or watch. However, there doesn't seem to be much flexibility in the memory usage output; the RSS (resident set size) is ...
0
votes
0answers
100 views

Why I can kill a process with Sl STAT but not process with R+ STAT?

I am trying to figure out why I can stop a firefox (for example) process with STAT Sl, but not one with R+? I've got the following: # ps aux | grep firefox root 14671 0.0 0.1 63824 1196 ? ...
0
votes
1answer
79 views

New process being created while checking with 'if' in bash

ps -ef | while read line; do for i in $line; do if [ $i = 'bash' ]; then echo $line; fi; done; done; unset i; The command runs properly displaying the Bash ...
2
votes
1answer
344 views

ps and top give different CPU usage

I've seen a few posts similar to this, most notably here, but wasn't quite satisfied with the answers. I'm comparing top and ps results on a specific process and see huge discrepancies in CPU usage. ...
-1
votes
1answer
2k views

“ps -ef | grep java” using java program [closed]

I'm attempting to execute ps -ef | grep java through java program. Here is my code- // String sudoScript = "sh -c \"ps -ef | grep java\""; String sudoScript = "ps -ef | grep java"; try { ...
1
vote
1answer
391 views

What memory statistics does Linux' ps command really display?

Consider the following pmap output of a simple tail process on Linux: $ pmap -x 3974 3974: tail -F /var/log/syslog Address Kbytes RSS Dirty Mode Mapping 0000000000400000 60 ...
0
votes
2answers
211 views

Please explain the ps -aef on rhel

What does pts/2 indicate in the output below? Why there is no such for other dd processes? $ ps -aef |grep dd root 6553672 15073352 3 02:32:19 - 0:01 dd of=/dev/lv01 bs=1024k padmin ...
0
votes
2answers
81 views

remove the zombie process from the output of ps

I m not looking to kill a zombie process. I m looking to avoid the display of zombie process in the ps command. Are there an option to add to ps command inorder to avoid displaying the zombie ...
1
vote
1answer
60 views

How to determine full command with args given a pid (or port in use)

I've got this nice bash function for telling me the pid using a port: using_port() { lsof -i:${1} } Output looks like this: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ...
0
votes
1answer
58 views

Linux Command to display only mingetty's info

I am looking for a command that will give only mingetty's information. How can you construct the command to find only mingetty data and find the PPID in Linux?
1
vote
1answer
482 views

What determines the process name in ps aux?

I'm trying to track down this script called ./launch.sh, that on my machine is currently in an infinite loop in which it calls a Java program, immediately crashes, then sleeps for 3 seconds. ps aux ...
0
votes
0answers
101 views

Which processes were running yesterday?

We have a production machine that keeps crashing on regular basis. Our staging environments run fine, but when the application is deployed to production, the production machine crashes after two or ...
1
vote
1answer
405 views

awk - max value of a rolling average

I have a bash command which gives me the highest value in the 9th column of a file: cat "log.txt" | grep 1923 | awk '{print $9}' | sort -n | tail -1 log.txt is a log of CPU usage for process 1923 ...
1
vote
3answers
2k views

How to get only the user, the pid and the command run for a specific process? (Ubuntu 11.10)

When I do ps -ef|grep python I get the following: myusername 4492 2994 0 10:32 pts/0 00:00:01 /home/myusername/.virtualenvs/myproject/bin/ipython manage.py runserver root 6665 1 0 ...
2
votes
2answers
2k views

kill - no process found

when I list my processes I have: root@adam-ThinkPad-T410:~# ps -e | grep signals 11641 pts/0 00:00:00 signals 11642 pts/0 00:00:00 signals 11643 pts/0 00:00:00 signals but when I ...
3
votes
2answers
258 views

find any script which is running for more than say 30 minutes in Linux System

Please share command to find any script which is running for more than say 30 minutes. in Linux System
5
votes
2answers
169 views

why ps -ef show the time like this

When I run the ps -ef command I receive something like this: root 26728 26725 99 Sep25 ? 1184018564-02:43:14 java -jar /root/TaskManager.jar I need to understand why the time is shown ...
1
vote
1answer
64 views

Running ps with clauses as AND instead of OR

I am looking to see if a specific process is running as a specific user. For which I can do this ps --no-headers -C command -o user | grep user Which is pretty neat, it however gets slightly ugly ...
0
votes
3answers
487 views

Linux Memory Displays Half Used But No Processes Seem to Be Using It

I am running a Java script on a Fedora Core Release 6 server (Linux 2.6.19-1.2911.6.5.fc6xen x86_64) and am concerned about a lack of memory. The box has 2 GB of memory in total. Running "free -tm" ...
0
votes
2answers
2k views

ps warns me about bad syntax with “aux” options

When I attempt to run the command ps with the flags/switches/options aux I get the following message. If I run the command without grep, no message is displayed. What am I doing wrong? ps -aux | grep ...
7
votes
5answers
4k views

Why does ps aux displays a number instead of a username?

Running ps aux just gave me the following output: ... www-data 26254 0.0 0.7 27304 3544 ? S 15:07 0:00 /usr/sbin/apache2 -k start 1001 25807 0.8 0.8 48444 4332 ? Sl ...
10
votes
3answers
12k views

ps: How can i recursively get all child process for a given pid

How can I get the entire process tree spawned by a given process displayed as a tree and only that tree i.e. no other processes? The output could e.g. look like 4378 ? Ss 0:10 SCREEN ...
0
votes
1answer
48 views

Listing processes for a certain timeframe

ps -fu username lists all processes currently running. Is there a way to list all processes that were running in a time period ? like, the ones that ran yesterday (and are no longer running)
7
votes
5answers
5k views

How to find out from which folder a process is running?

In *nix you can use ps to see which process are running. But if an executable has multiple homonimous files in a device, we can't figure where it was invoked from. This is slightly different from my ...
1
vote
1answer
2k views

Unix ps -l priority

Why does unix ps -l whows one number in column "PRI" but in same time ps -o pri shows another number? P.S. cpu and nice are zero for those processes
4
votes
1answer
5k views

Unix : List children processes for a given pid

What I need is, given a process id, list all his children without any clutter (table header, other columns than the pid) What I have is : ps h --ppid $PID Which gives me: 26277 pts/13 S+ ...
7
votes
3answers
5k views

Why does my system hang when I run ps, w and possibly other commands?

I don't know why, but I cannot run the ps or w commands on my Ubuntu 10.04LTS machine. I did a trace for both, and both stopped when reading part of the same file. Here's the result of running ps ...
2
votes
2answers
639 views

CMD in ps command in linux

Under CMD, I was wondering what the /1 or /2 ... are? What do they indicate? I couldnt find it in the man page. In general, does anyone have a good understanding of the CMD column that they could ...
3
votes
2answers
4k views

Is it possible to 'hide' a process from the listing of `ps` or `top` on Linux

First, I presume that if this is possible it would need to be done as root (or as a user who shares root's UID of 0). How can a process be launched so that it does not show up in a ps aux or ps ef or ...
1
vote
1answer
3k views

In ps -ef, what information does the fourth column show?

For example, ps -ef Display full information about each of the processes currently running. UID PID PPID C STIME TTY TIME CMD hope 29197 18961 0 Sep27 ? 00:00:06 sshd: hope@pts/87 hope 32097 29197 ...
60
votes
3answers
88k views

ps aux output meaning

When typing ps aux, what does each column of the output mean? For example $ ps aux timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine root 29505 0.0 0.0 38196 2728 ? ...
20
votes
5answers
29k views

How can I know the absolute path of a running process?

If I have multiple copies of the same app on the disk, and only one is running, as I can see with ps, how can I know the absolute path to distinguish from the others?