Command Line Flashcards
What is a CLI?
Stands for command-line interfaces. CLI processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor.
What is a GUI?
Stands for graphical user interface. GUI is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.
Give at least one use case for man
Systems manual pager. Documentation/manual page for commands
Give at least one use case for cat
Concatenate files and print on the standard output
Give at least one use case for ls
.
List information about the FILEs (and the current directory by default)
Give at least one use case for pwd
.
Print the full filename of current working directory
Give at least one use case for echo
.
Echo the STRING(s) to standard output…. Display a line of text
Give at least one use case for touch
.
Change file timestamps/ update the access and modification times of each FILE to the current time.
Give at least one use case for mkdir
.
Make directories (if they do not already exist)
Give at least one use case for mv
.
Move (or rename) files
Give at least one use case for rm
.
Remove files or directories (by default, does not remove directories)
Give at least one use case for cp
.
Copy files and directories
What are the three virtues of a great programmer?
- Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
- Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.