1. First Steps Flashcards
What is a shell?
A shell is a program that you use to run other programs through a text-only interface called the command line.
What does a shell allow us to do?
Simple things like starting your browser or complicated things like executing a set of transformations on data from multiple files.
What does UNIX bring to the table in terms of utilities and what’s the shell’s responsibility in this?
A huge ecosystem of command line tools. Shell is the glue that makes these tools work together.
What can be said about the shell in terms of automation?
Shell is a very powerful tool for automating tasks that you repeat often.
What six areas do the shell help the most?
- File Management
- System Administration
- Software Development
- Data Filtering and Transformations
- Remote Access
- Scripting
What scripting language has been dominating the UNIX world since the mid-nineties?
Bourne Again SHell (Bash)
What shell did MacOS switch to on the Catalina release?
Z Shell (Zsh)
What can we think of Zsh as in relation to Bash?
We can think of Z Shell as a more configurable version of Bash with some extra features.
How can you undelete or undo in the shell?
YOU CANNOT! The shell is a power tool. You must be careful. There is no undelete or undo.
What is the shell limited to?
Mostly to text. We enter and edit text and a text output gets returned. Shell doesn’t know about the font colors, graphical display, mouse colors, etc.
What is a shell ran inside?
Terminal emulator.
What is a terminal emulator?
It’s a layer between the shell and your hardware — it takes keystrokes from your keyboard and translates them to the so-called control coach that the shell understands. It takes a text output from the shell and displays it in nice graphical fonts to the user.
What is the prompt?
It’s the text that you see when you start your shell. It’s shown when the shell is waiting for your command.
How do you list the contents of your current directory in shell?
By executing the ls
command.
eg. ls
How do you move into another directory in shell?
By executing the cd
command alongside the path to navigate to.
eg. cd ~/Documents