Dev Environment Flashcards
What is the command line?
The command line is a text-based environment where you can do things like create, move, copy, and delete files and folders, using different commands that are like mini-programs.
When working with the command line, what do we call files an folders?
directories
what is the command, cd?
change directory.
what is change directory for?
used to move from one directory (a.k.a., folder) to another
what is the command, pwd?
print working directory
what does print working directory do?
used to print the name of the folder you’re currently in
what is the command, ls?
list
what does the command list do?
used to list the contents of a directory
what is the command, mkdir?
make directory
what does the command make directory do?
used to create a new directory
what is the command touch and what does it do?
used to create a new (empty) file with a given name
what is the command rm?
remove
what doe s the command rm do ?
used to remove a file or folder
what is the command rmdir?
remove directory
what does remove directory do ?
removes a directory
what is the command, mv?
move
what does the command mv do?
it moves a file or directory
what is the command cp?
copy.
what is the command copy used for?
to copy a file or directory
what is the command line on windows called ?
Git Bash
Anytime you’re working from the command line and need to double-check which folder you’re in, what command do you use?
pwd
if you’ve forgotten what a command does, how can you find out what it does inside the command line using windows?
help + command code
ex
help pwd
if you’ve forgotten what a command does, how can you find out what it does inside the command line using mac?
by using the man command. (manual)
ex
man pwd
what is the man command short for?
manual