Command Line Flashcards
What is a CLI?
Command Line Interface
Processes commands to a computer program in the form of lines of texts
What is a GUI?
Graphical User Interface
This is for the end user and not the developer. User friendly
Command ‘man’
Manual
Shows you what you can do with each command
Lists directory contents
Useful to understand what you can do with each command
Command ‘cat’
Concatenate files and print on the standard output
Useful to merge and view file content
Command ‘ls’
Useful to navigate through files and folders
Command ‘pwd’
Useful to print contents of current directory
Command ‘echo’
Displays a line of text, useful to add strings to files
Command ‘touch’
Allows you to create files in directories
Command ‘mkdir’
Creates directories
Useful for when you need to create a folder to contain new files or folders
Command ‘mv’
Move (rename) files
Useful when moving and/or renaming files or folders
Command ‘rm’
Remove files or directories
Useful for when you need to remove a file or directory you no longer need to use
Command ‘cp’
Copy files or directories
Useful for when you need to duplicate a file or folder
What are the three virtues of a great programmer?
Laziness, Impatience, and Hubris