Command Lines Flashcards

1
Q

What is a CLI?

A

Command Line Interface. Examples are windows powershell, terminal for mac, git bash.

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. Example is VS Code. For the end users to use, but have limited functionality compared to a CLI.

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

man

A

The command line for pulling up the manuals for commands

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

cat

A

cat is used to concatentate files and print them out on the standard output. head and tail commands preview a file from head or tail

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

ls

A

ls is used to list the directory contents

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

pwd

A

pwd is used to print name of the current/working directory

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

echo

A

echo is used to display a line of text on the CLI and can be used to save text to a new file

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

touch

A

touch is used to change file timestamps and to create new files

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

mkdir

A

mkdir is used to make directories. also used to make multiple directories within each other (parent,child)

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

mv

A

mv is used to move files but can also rename the files

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

rm

A

rm is used to remove files or directories

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

cp

A

cp is used to copy files and directories

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

What are the three virtues of a great programmer?

A

Laziness, Impatience, Hubris.

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