How can i know details about the processes running in Unix and what is the use of fork command in Unix.
How can i know details about the processes running in Unix and what is the use of fork command in Unix.
use the command 'ps' or 'ps -A' to view all processes. fork is the system call to start new process in unix.
Regards,
Anoop :)
If its useful, dont forget to [COLOR="Red"]THANK[/COLOR] me :cool:
you also can do a top to see what process is taking up the most CPU usage.
also ps -aef |grep (PID)
to find the process..
PS always required before you kill the process,
so it is a very important command in Unix.
Ex- kill ' process ID'
Is there any command to make recovery boot tape to restore to another machine
1) ps -aef |grep (PID)
2) fork command are mainly use for the creating the process and
syntax for creating the fork is p_fork(int id)........
and there is a P_join command is for killing the child process
how to know the parent process ?
while parent process id always 0.....
we can use more than fork in our program.....ok
i hv written one script for kill many process in one shot..
#!/usr/bin/ksh -x
while (( $# >=1 ))
do
kill -9 $1
print "Process has been killed; "$1
shift
done
Last edited by Mritunjay Singh; 01-21-2009 at 07:42 AM. Reason: Speed up the kill process
how to know all the commands in unix
plz go to /user/bin dir
To know about all the commands in unix..
Refer this site Part*II*Section 1: Commands
One more way..
Just hold the Tab key for a while it will asks for possibilities:Say Y
You will get the list of commands.
. What is shell? What its purpose. Explain the different shells of UNIX