Command Line Basics Flashcards
What is a CLI?
Command-line interface. It processes commands to a computer program in the form of lines to text.
What is a GUI?
A form of user interface that allows users to interact with electronic devices through graphical icons and audio indicators.
man
Manuals - to find out how to use commands.
cat
Concatenate - to print content into the terminal or to combine content of multiple files
ls
List - to display the list of contents (of a directory)
pwd
Print name of current/working directory - to tell you which directory you are currently in
echo
Display a line of text - can create a new file with the string typed
touch
To change file timestamps - can create new file by itself or within a directory
mkdir
Make Directory - to create new directories (can also create nested directories)
mv
Move/Rename - to rename files (when you’re renaming something, you’re also moving it)
rm
Remove - to remove files/directories along with their contents
cp
Copy files/directories - to create a copy of a file/directory
What are the three virtues of a great programmer?
Laziness, impatience, hubris