command-line-basics-Q&A Flashcards

1
Q

What is a CLI?

A

command-line interfaces

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

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.

  • 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.
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly