Command Line Flashcards

1
Q

What is a CLI?

A

command-line interface (CLI) to receive commands from a user in the form of lines of text and perform actions

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, is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based UIs, typed command labels or text navigation

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

man

A

manual command an interface to the on-line reference manuals - man cat

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

cat

A

concatenate command print contents of files or join files together. cat file.txt for example

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

ls

A

list command - list contents of current working directory. ls

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

pwd

A

print working directory that is being used. pwd > i-was-here.txt to create

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

echo

A

to print a string. echo ‘Hello, World!’. echo ‘Hello, World!’ > hello.txt

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

touch

A

modify a timestamp. Commonly, the utility is used for file creation. touch tag-youre-it.txt. touch .gitkeep parent/child/grandchild/ touch snoot/boop.txt

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

mkdir

A

make a new directory. Mkdir parentfolde. mkdir -p parent/child/grandchild

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

mv

A

rename/move directory. mv pokiemans pokemon

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

rm

A

remove directory. rm lol.txt. rm -r kill-me/

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

cp

A

copy directory. cp and-then.txt no-and-then.txt

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