Command Line Flashcards
What is CLI?
Command-line interface
A text-based user interface (UI) used to run programs, manage computer files and interact with the computer.
What is GUI?
Graphical User Interface
A visual way of interacting with a computer using items such as windows, icons, and menus, used by most modern operating systems.
Give at least one use case for ‘man’
use to find out more about a command.
Give at least one use case for ‘cat’
use when you want to find out what’s in a file
Give at least one use case for ‘ls’
use when you want to see the list of files in a directory. Also use to check if something has been successfully added or removed.
Give at least one use case for ‘pwd’
use when you want to see what directory you are working on.
Give at least one use case for ‘echo’
Give at least one use case for ‘touch’
make a timestamp for a file and can create a new file
Give at least one use case for ‘mkdir’
makes a directory, use when you want to make a directory/path
Give at least one use case for ‘mv’
renames a file, use when you want to rename a file.
Give at least one use case for ‘rm’
removes a file, use -r to remove a directory
Give at least one use case for ‘cp’
What are the three virtues of a great programmer?
Hard work, Patience and Modesty