Command Line Flashcards

1
Q

What is a shell?

A

a program that lets you issue commands directly to your computer

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

What is the command line?

A

text-based interface that predates the far more familiar windows, icons and tiles of today’s major computer operating systems

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

What will learning the command line do for me?

A
  1. Teach me a lot about how my computer works and organizes information
  2. Find some tasks faster to execute
  3. Be better prepared to learn languages like Python and programs like Git
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does “pwd” stand for?

A

Print Working Directory

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

What does “printing” mean to my computer?

A

Spitting something out on the screen display

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

What does “pwd” or Print Working Directory do?

A

Spitting out the directory I am currently working in

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

What does the “mkdir” command do?

A

Creates a new folder on my desktop operating system

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

What does “mkdir experiments” command do?

A

Creates a folder called “experiments” in my home directory (only If I am currently in it)

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

What does “cd” stand for?

A

Change Directory

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

What does the command “cd experiments” do?

A

Switches (changes) me into the Experiments folder directory

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

What is a few other names for a directory?

A
  1. Repository

2. Folder

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

What echo command would I use in Terminal to create a new file that contains only the words “Hello World?”

A

echo “Hello World”>newfile.txt

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

What is the “move” command?

A

“mv”

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

What does the “mv” or move command do?

A

Instructs computer to replace an old file with a new file

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

How, specifically, would I ask my computer to replace the old “echo ‘Hello World’>newfil.txt with the new “echo “Hello World”>newfile.txt”?

A

“mv newfil.txt newfile.txt”

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

What happens to the old file that the command has moved?

A

It is completely overwritten and gone forever

17
Q

What can I use to place something within the newly created blank text file?

A

Use nano like this “nano newfile.txt”

18
Q

What command would I use to exit?

A

CTRL + X

19
Q

What is the command to delete a file?

A

“rm filename.txt”