command-line-basics-Q&A Flashcards
1
Q
What is a CLI?
A
command-line interfaces
2
Q
What is a GUI?
A
graphical user interface
3
Q
Give at least one use case for each of the commands listed in this exercise.
- man
- cat
- ls
- pwd
- echo
- touch
- mkdir
- mv
- rm
- cp
A
- Man: is an interface to the on-line reference manuals.
- Cat: Concatenate FILE(s) to standard output. (gives output in terminal)
- LS: List information about the FILEs (the current directory by default).
- PWD: Print the full filename of the current working directory.
- Echo: Echo the STRING(s) to standard output. (takes a string and outputs it to the terminal)
- Touch: Update the access and modification times of each FILE to the current time.
- MKdir: Create the DIRECTORY(ies), if they do not already exist.
- MV: Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
- RM: removes each specified file.
- CP: Copy SOURCE to DEST, or multiple
SOURCE(s) to DIRECTORY.
4
Q
What are the three virtues of a great programmer?
A