Command-line-basics Flashcards

1
Q

What is a CLI?

A

For developers

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

What is a GUI?

A

Interface with graphics

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

man

A

look up commands

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

cat

A

prints contents in the terminal

main use: joining / concatenating files

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

ls

A

list the contents of your current working directory

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

pwd

A

print your current working directory /
write your current working directory to a new file

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

echo

A

print the string /
write the string to a file

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

touch

A

create a new file

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

mkdir

A

create a new directory

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

mv

A

moving files from one directly to another

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

rm

A

remove/delete file & directories forever

*dangerous command
use -i (gives you warning)

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

cp

A

make a copy

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