Command Line Flashcards Preview

Coding > Command Line > Flashcards

Flashcards in Command Line Deck (19):
1

What is a shell?

a program that lets you issue commands directly to your computer

2

What is the command line?

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

3

What will learning the command line do for me?

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

4

What does “pwd” stand for?

Print Working Directory

5

What does “printing” mean to my computer?

Spitting something out on the screen display

6

What does “pwd” or Print Working Directory do?

Spitting out the directory I am currently working in

7

What does the “mkdir” command do?

Creates a new folder on my desktop operating system

8

What does “mkdir experiments” command do?

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

9

What does “cd” stand for?

Change Directory

10

What does the command “cd experiments” do?

Switches (changes) me into the Experiments folder directory

11

What is a few other names for a directory?

1. Repository
2. Folder

12

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

echo “Hello World”>newfile.txt

13

What is the “move” command?

“mv”

14

What does the “mv” or move command do?

Instructs computer to replace an old file with a new file

15

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

“mv newfil.txt newfile.txt”

16

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

It is completely overwritten and gone forever

17

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

Use nano like this “nano newfile.txt”

18

What command would I use to exit?

CTRL + X

19

What is the command to delete a file?

“rm filename.txt”