Flashcards in Command Line Deck (19):
What is a shell?
a program that lets you issue commands directly to your computer
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
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
What does “pwd” stand for?
Print Working Directory
What does “printing” mean to my computer?
Spitting something out on the screen display
What does “pwd” or Print Working Directory do?
Spitting out the directory I am currently working in
What does the “mkdir” command do?
Creates a new folder on my desktop operating system
What does “mkdir experiments” command do?
Creates a folder called “experiments” in my home directory (only If I am currently in it)
What does “cd” stand for?
What does the command “cd experiments” do?
Switches (changes) me into the Experiments folder directory
What is a few other names for a directory?
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
What is the “move” command?
What does the “mv” or move command do?
Instructs computer to replace an old file with a new file
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”
What happens to the old file that the command has moved?
It is completely overwritten and gone forever
What can I use to place something within the newly created blank text file?
Use nano like this “nano newfile.txt”
What command would I use to exit?
CTRL + X