Command-Line Flashcards
1
Q
What is a CLI?
A
command-line interface, it is to receive commands from a user in the form of lines of text it sets parameters for the environment, invoking executables and providing information to them as to what actions they are to perform.
2
Q
What is a GUI?
A
graphical user interface. form of user interface that allows users to interact with electronic devices through graphical icons and audio, typed command labels, or text navigation.
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 = get the manual, manual pager utils. an interface to the system ref. manual cat = concatenate files and print on the standard output. can combine txt files ls = list directory contents. can see if file/directory for the file pwd = print name of current/working directory. know where you are in the directories. answers where am I? echo = display a line of text. can add a line of text quickly. its essentially a console.log for terminal touch = change file timestamps. mkdir = make directories. can create nested directories with -p mv = move (rename) files. can easily move / rename files rm = remove files/directories. cp = copy files/directories
4
Q
What are the three virtues of a great programmer?
A
laziness, impatience, hubris