1.) What series of commands starts a child csh shell, determines the current port, and then examines the processes currently running on that port?
sh
tty
ps -t 'port'
2a.) What signal quits a process? 3
b.) What signal interrupts a process? 2
c.) What are the differences between the two? Signal 2 tells the process to exit using its ending process, signal 3 forces the process to end.
d.) When should you use kill -9? You should use this when all else fails. Processes need to go through the ending tasks so you should only use this if nothing else is working.
3.) What command would you use to bring the vi editor to the foreground?
fg
4.) What is the command that you would use to kill the more process?
kill -2 more 'port'
5.) What is the command you would use to get this listing?
ps
6.) Consider the following scenario: You log on to your sysetm on tty223. The system starts a csh for you that has a PID of 1056. Then you start a shell script(the script is executed by a sh with a PID of 1080) that in turn executes who(a PID of 2020).
a.) What is the PPID of the who process? 1080
b.) What is the PPID of the process executing the script? 1056
c.) With the information provided, can you determine with what tty the who process is associated? No
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment