You can try to use the "--forest" flag of the ps command.
For example: Here is an excerpt from the output of ps -ef --forest that I ran on my Ubuntu system.
As you can see, the output shows the hierarchy of the processes, which is what you were interested in.
Unfortunately, the format of the output has been lost on the post, so the inserted output does not demonstrates the hierarchy. The process name part of sons of processes is indented so that it appears more to the right than that of the father.
Unix (and Linux) uses a process tree that gives a natural security, by simple inheritance of attributes.
The following ptree script shows it. It runs on all Linux flavors.
Mostly useful for debugging.
#!/bin/sh
# Solaris style ptree
&& exec /usr/bin/ptree "$@"
... (6 Replies)
Hi Dears,
I believe you know authconfig on most of Linux Distributions. However, on Solaris OS, I don't know the similar tool. Could you please share me the tool, if any?
Note:
I am using SunOS 5.10. (0 Replies)
Hi ,
I just wondering if there is any command that works similar to the expect command. I'm trying to setup a korn shell script that goes to remote servers and executes a command likes :
su - username -c "script to execute "
but then it'll prompt for the password so if I can provide... (1 Reply)
at work, I'm a UNIX administrator, but at home I use openSUSE 11. One of the commands that I use to assist me in trouble shooting A LOT is called ptree process tree. does anyone know of a ptree for linux? yes, I can just use ps -ef and see who the parent pid is and then 'ps -ef | grep <parent... (4 Replies)
Hello all,
I need a help in unix. is there any command in unix similar to doskey in MS Dos. It taked pain to enter the big command again and again.. the up and down arrows do not bring the previous commands on the prompt. so pls let me know if there is any command to enable the doskey kind of... (4 Replies)