0% found this document useful (0 votes)
57 views1 page

CSCD 240 Lab 4 Capture Means Copy and Paste Into A Text Editor

This document provides instructions for Lab 4, which focuses on processes, jobs, signals, and other Linux commands. Students are asked to [1] explain processes, jobs, killall and kill, [2] use ls, jobs, and background processes, [3] start programs in the background and use jobs, foreground, background, and kill, [4] use ps, kill signals, and grep, [5] explain top, head and tail, [6] use find with -exec. Students are to capture terminal outputs, answer questions, and submit a single PDF file.

Uploaded by

theomega76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views1 page

CSCD 240 Lab 4 Capture Means Copy and Paste Into A Text Editor

This document provides instructions for Lab 4, which focuses on processes, jobs, signals, and other Linux commands. Students are asked to [1] explain processes, jobs, killall and kill, [2] use ls, jobs, and background processes, [3] start programs in the background and use jobs, foreground, background, and kill, [4] use ps, kill signals, and grep, [5] explain top, head and tail, [6] use find with -exec. Students are to capture terminal outputs, answer questions, and submit a single PDF file.

Uploaded by

theomega76
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CSCD 240

Lab 4

Capture means copy and paste into a text editor.

Al answers are to be produced by using a terminal window on your local machine or a lab machine.
You CANT complete this lab via ssh into cslinux!

1) Clearly explain in your own words processes, jobs, killall and kill. Why is it important that you
learn about jobs and processes?

2) Issue the ls command. Is the ls command a serial job or a parallel job? Now issue and capture the ls
command and send it to the background.

3) In your terminal window start and capture your web browser, and two other programs (total of 3
programs) as background jobs.
a) Capture the jobs command to show the programs are running.
b) Pick one of them and capture bringing it to the foreground.
c) Capture sending the job back to the background.
d) Capture the kill command to kill one of the jobs.
e) Can ctrl c be used to always kill a job? Why or why not?

4) In your terminal window start your web browser, and three other programs (total of 4 running
programs) as background jobs.
a) Capture the ps aux command for your running processes? What is the PID for each?
b) Capture the kill -3 for your browser, capture the kill -6 for your second program, and capture
the kill -9 for your third program. The capture must include the process window.
c) Capture the ps aux command for the last running program. The output must include all
instances of that program/process. Note: you will use grep for this question.

5) We didnt cover these some of these commands in class; however, explain the purpose of the top,
head and tail commands.
a) Are the commands parallel or serial jobs?
b) Capture the top command
c) Capture the tail command
d) Capture the head command

6) In class we talked about the find command and I briefly mentioned the -exec option.
a) Clearly explain the -exec option. Where might this option useful?
b) Explain this command: find . -name "*.txt" -exec wc -l {} ;
c) Execute the command from b and capture the output
d) Explain another use of the exec option and show the command.
NOTE you may not use exec wc or exec rm in your another use

TO TURN IN:
A single PDF with your answers. Ensure you copy and paste the question, before you answer.

Name your PDF your last name first letter of your first name lab4.pdf (Example: steinerslab4.pdf)

You might also like