Command Line Flashcards
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?
- Teach me a lot about how my computer works and organizes information
- Find some tasks faster to execute
- 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?
Change Directory
What does the command “cd experiments” do?
Switches (changes) me into the Experiments folder directory
What is a few other names for a directory?
- Repository
2. Folder
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?
“mv”
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”