0% found this document useful (0 votes)
23 views

Week 3 Lab Assignment

The document lists BASH shell commands and their functions. It discusses commands for viewing files like cat, head, and tail as well as commands for processes like jobs, kill, and sleep. It also covers monitoring processes with commands like ps, top, free, and uptime.

Uploaded by

jmutongu90
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Week 3 Lab Assignment

The document lists BASH shell commands and their functions. It discusses commands for viewing files like cat, head, and tail as well as commands for processes like jobs, kill, and sleep. It also covers monitoring processes with commands like ps, top, free, and uptime.

Uploaded by

jmutongu90
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Ryan O’Neil

CYB 204

Week 3 Lab Assignment

BASH Shell - 4

What command displays the contents of a file? – cat command

What command displays the top of a file? – head command

What command displays the bottom of the file? – tail command

What is the command that translates a set of characters to another set of characters? – tr command

What command converts tabs into spaces? – expand command

What command sorts a list? – sort command

This study source was downloaded by 100000858372841 from CourseHero.com on 09-14-2023 18:27:39 GMT -05:00

https://www.coursehero.com/file/165604457/Week-3-Lab-Assignmentdocx/
This study source was downloaded by 100000858372841 from CourseHero.com on 09-14-2023 18:27:39 GMT -05:00

https://www.coursehero.com/file/165604457/Week-3-Lab-Assignmentdocx/
Monitoring Processes

What is commonly known as the bit bucket? - /dev/null file

What is the indication in the shell that a process is running in the foreground? - cat /dev/zero >>
/dev/null

How do you terminate a current foreground process? – ctrl-c

How do you run a process in the background? - cat /dev/zero > /dev/null &

What command shows the running processes in the current shell? – jobs

What interactive program displays the processes running on the system? – top command

What command is used to stop a process? – kill command

What is the nice command? - nice -10

top What is pkill command? – pkill -15

sleep What is kill command? – kill PID

What is sleep command? - sleep 88888 &

What is the ps command? - The ps command can be used to view processes.

What is the nohup command? - The nohup command can be used to start processes that will not “hang
up” or terminate because the user has logged out.

What command do you use to switch to the root account? – su command

What is the free command? - The free command reports statistics on memory usage.

What is the uptime command? - The uptime command reports how long the system has been running;
how many users are logged into the system; and system load statistics over the last 1-, 5-, and 15-
minute periods.

This study source was downloaded by 100000858372841 from CourseHero.com on 09-14-2023 18:27:39 GMT -05:00

https://www.coursehero.com/file/165604457/Week-3-Lab-Assignmentdocx/
This study source was downloaded by 100000858372841 from CourseHero.com on 09-14-2023 18:27:39 GMT -05:00

https://www.coursehero.com/file/165604457/Week-3-Lab-Assignmentdocx/

You might also like