Command Line Basics Flashcards
What is a CLI?
Stands for <b>command-line interfaces</b>. CLI processescommandsto a computer program in the form of lines of text. The program which handles the interface is called acommand-line interpreterorcommand-line processor.
What is a GUI?
Stands for<b>graphical user interface</b>. GUI is a form ofuser interfacethat allowsuserstointeract with electronic devicesthrough graphicaliconsand audio indicator such as primary notation, instead oftext-based user interfaces, typed command labels or text navigation.
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.
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