Command Line Flashcards
What is a CLI?
Command Line Interface
What is a GUI?
Graphical User Interface
What are the three virtues of a great programmer?
Laziness, Impatience, and Hubris
In a CLI, what is one use of man
?
man
is the manual command and can be used to access on-board documentation
In a CLI, what is one use of cat
?
cat
is the concatenate command and can be used to print the contents of a file or concatenate the contents of multiple files together
In a CLI, what is one use of ls
?
ls
is the list command and can be used to list out the files in the current directory
In a CLI, what is one use of pwd
?
pwd
is the print working directory command and returns the full path for the directory we are working in.
In a CLI, what is one use of echo
?
echo
is similar to print
and console.log
but not the same and can be used to echo an input string (ex: into a text file)
In a CLI, what is one use of touch
?
touch
is a command that can be used to create new files inside directories.
In a CLI, what is one use of mkdir
?
mkdir
is the ‘make directory’ command and can be used to make new directories
In a CLI, what is one use of mv
?
mv
is the move command and can be used to move (rename) files
In a CLI, what is one use of rm
?
rm
is the remove command and can be used to delete files
In a CLI, what is one use of cp
?
cp
is the copy command and can be used to copy files
In a CLI, what is one use of history
?
history
is the history command and can be used to print command history.