Unix Command Line Flashcards

1
Q

What analogy can we use to understand your operating system?

A

The operating systems is like a pistachio nut. the kernel refers to the actual program that interfaces with the hardware. It’s the core of your operating system.

The shell in computing refers to the user interface that allows us to interact with kernel.

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

What are the two variations of the program that interfaces with the hardware (shell)?

A

Graphical user interface (G.U.I.) and the command line interface (C.L.I.)

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

What does BASH stand for and what is it?

A

BASH stands for Bourne Again Shell and is a CLI or a command line interpreter for the Unix system.

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

Why should we use Command Line?

A

Two major reasons to use the command line are:
1. Makes things easier and faster. Example: Creating a new file in one short line of code compared to looking through files in the user interface.
2. You have more control and flexibility. Example: Creating secret files.

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

What is LS when using the command line?

A

LS stands for list and it is a command that lists all the items inside a particular directory.

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

What is the root or the highest level in your directory? (mac)

A

Your macintosh hard drive.

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

What does the tilde show in the command line?

A

The tilde shows you where you are in the directory.

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

What is the CD command?

A

CD stands for change directory and it allows us to navigate to a specific folder . We simply have to type cd and then the folder name. We can do this going through folders one by one or we can specify the entire path to get there.

Example:
cd Documents/Learn/Languages

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

How do we get back to our root in command line?

A

We type cd (change directory) and the tilde symbol.

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

How can we use the last command that we typed?

A

We hit the up button.

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