ps -ef will show the processes on the system
ps -ef | grep the thing I am interested in
ps -ef | grep bash
ps -efH
pid_t getpid(void);
pid_t getppid(void);
\$\$ contains the current pid.
${PPID} contains the parent process id.
while (1)
get command
fork
if child process
exec command
else
wait
kill
kill -signal pid
kill -9 pid
kill -SIGKILL pid
kill -l (that is a l as in list) will show signals and their numbers.