1. What series of commands starts a child csh shell, determines the current port, then examines the processes currently running on that port?
A. csh ; tty ; ps –t /dev/pts/1 >> job. (yup, tested!! Works!!)
2. A. What signal quits a process? A. CTRL-\
2. B. What signal interrupts a process? A. CTRL-C
2. C. What are the differences between the two? A. The quit signal stops the process, whereas the interrupt signal puts the process “on hold” until you get back to it.
2. D. When should you use kill -9? A. When no other kill command will work, it is a last resort because it cannot be ignored and you may lose work when the process stops.
Refer to this list for questions 3-5:
[2] stopped sort /etc/passwd
[3] - stopped vi .cshrc
[4] + stopped more .login
[5] running find / -name foo
3. What command would you use to bring the vi editor to the foreground?
A. fg %- OR fg %vi
4. What is the command you would use to kill the more process?
A. kill %4 OR kill -9 %4
5. What is the command you would use to get this listing?
A. jobs
6. Consider this: You log on to your system on tty23. The system starts a csh for you that has a PID of 1056. Then you start a shell script (which is executed by a sh with a PID of 1080) that in turn executes who with a PID of 2020.
Csh PID 1056
Sh PID 1080 PPID 1056
Who PID 2020 PPID 1080
6. A. what is the PPID of the who process? A. PPID 1080
6. B. What is the PPID of the process executing the script? A. PPID 1056
6. C. With information provided, can you determine with what tty the who process is associated? A. The tty is probably still tty 23.
Instructions: Enter or paste your written work and/or
click "Attachments" to upload your files.