command-line-basics Flashcards

1
Q

What is a CLI?

A

command-line interfaces.

processes commands to a computer program in the form of lines of text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a GUI?

A

graphical user interface aka GUI. is a type of user interface through which users interact with electronic devices via visual indicator representations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give at least one use case for each of the commands listed in this exercise.

A

man - on-line reference manuals. check program’s utility or function.
cat - concatenate files and print on the standard output. Print contents of file
ls - list directory contents.List information about the FILEs (the current directory by default).
pwd - print name of current/working directory. Print the full filename of the current working directory.
echo - display a line of text
touch - create a file. access time stamp on file.
mkdir - - make directories. Create the DIRECTORY(ies), if they do not already exist.
mv - move (rename) files. Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
rm - remove files or directories. rm removes each specified file. By default, it does not remove directories.
-r remove directories and their contents recursively
cp - copy files and directories. Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three virtues of a great programmer?

A

Understands that feeling uncomfortable is part of the learning process.
Is curious.
Is not lazy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly