Command Lines Flashcards
What is a CLI?
Command Line Interface. Examples are windows powershell, terminal for mac, git bash.
What is a GUI?
Graphical User Interface. Example is VS Code. For the end users to use, but have limited functionality compared to a CLI.
man
The command line for pulling up the manuals for commands
cat
cat is used to concatentate files and print them out on the standard output. head and tail commands preview a file from head or tail
ls
ls is used to list the directory contents
pwd
pwd is used to print name of the current/working directory
echo
echo is used to display a line of text on the CLI and can be used to save text to a new file
touch
touch is used to change file timestamps and to create new files
mkdir
mkdir is used to make directories. also used to make multiple directories within each other (parent,child)
mv
mv is used to move files but can also rename the files
rm
rm is used to remove files or directories
cp
cp is used to copy files and directories
What are the three virtues of a great programmer?
Laziness, Impatience, Hubris.