Overview
Teaching: 5 min
Exercises: 0 minQuestions
What is a command shell and why would I use one?
Objectives
Explain how the shell relates to the keyboard, the screen, the operating system, and users’ programs.
Explain when and why command-line interfaces should be used instead of graphical interfaces.
A computer program does three main things:
Today, we’re going to learn about the unix shell. To many, it’s the classic image of older computers. There are no images or icons, just text on a black screen.
The unix shell is just another program. It is used to run other programs. The input it takes is what program to run, and the output it gives is the results of the program. One of the advantages of the shell is that typing the commands is much faster than clicking through various menus (that is once you know the commands).
You are all digital forensics specialists and have been given a new high profile case. The acclaimed scientist, Richard Gill, has gone missing. You have been tasked with investigating his laptop contents and research files to find any clues that may explain his disappearance.
Dr Gill was last seen leaving for work on the morning of April 2nd. His wife reported him missing after he didn’t come home that night. No activity has been found on his bank accounts since his disappearance.
Dr Gill is director of research at Sandford Biotechnologies. After a distinguished research career in academia, he moved into industry and has been leading the drug development team at Sandford. He was known to be working on a project codenamed Gibson. He often works late into the night.
Sandford Biotechnologies is a research company that focuses on developing therapeutics for a variety of human diseases.
We have his emails, his bank statements and his research files.
Key Points
A shell is a program whose primary purpose is to read commands and run other programs.
The shell’s main advantages are its high action-to-keystroke ratio, its support for automating repetitive tasks, and its capacity to access networked machines.
The shell’s main disadvantages are its primarily textual nature and how cryptic its commands and operation can be.