1. First Steps Flashcards

1
Q

What is a shell?

A

A shell is a program that you use to run other programs through a text-only interface called the command line.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a shell allow us to do?

A

Simple things like starting your browser or complicated things like executing a set of transformations on data from multiple files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does UNIX bring to the table in terms of utilities and what’s the shell’s responsibility in this?

A

A huge ecosystem of command line tools. Shell is the glue that makes these tools work together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What can be said about the shell in terms of automation?

A

Shell is a very powerful tool for automating tasks that you repeat often.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What six areas do the shell help the most?

A
  1. File Management
  2. System Administration
  3. Software Development
  4. Data Filtering and Transformations
  5. Remote Access
  6. Scripting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What scripting language has been dominating the UNIX world since the mid-nineties?

A

Bourne Again SHell (Bash)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What shell did MacOS switch to on the Catalina release?

A

Z Shell (Zsh)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What can we think of Zsh as in relation to Bash?

A

We can think of Z Shell as a more configurable version of Bash with some extra features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you undelete or undo in the shell?

A

YOU CANNOT! The shell is a power tool. You must be careful. There is no undelete or undo.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the shell limited to?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a shell ran inside?

A

Terminal emulator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a terminal emulator?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the prompt?

A

It’s the text that you see when you start your shell. It’s shown when the shell is waiting for your command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you list the contents of your current directory in shell?

A

By executing the ls command.

eg. ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How do you move into another directory in shell?

A

By executing the cd command alongside the path to navigate to.

eg. cd ~/Documents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you move one directory up from the directory you’re currently at in shell?

A

By executing the cd command on its own.

eg. cd

17
Q

How do you log into another shell using secure shell in shell?

A

By executing the ssh command alongside the system path.

eg. ssh reindert@codesensei.nl

18
Q

How do you exit the secure shell that you used to log into another shell in shell?

A

By executing the exit command.

eg. exit

19
Q

How do you exit the shell and end your session?

A

By executing the exit command.

eg. exit