Command-line 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 is a visual way of interacting with a computer using items like windows, icons, menus and targets consumers of technology

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

What are the use case for “man” command?

A

an interface to the online reference manuals - man formats and displays the online manual pages

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

What are the use case for “cat” command?

A

print the contents of txt files and concatenate - combine the contents of files

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

What are the use case for “ls” command?

A

list directory contents - displays names of files contained within that file

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

What are the use case for “pwd” command?

A

return working directory name - To verify that you’re in the correct directory

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

What are the use case for “echo” command?

A

write arguments to the standard output like a console.log

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

What are the use case for “touch” command?

A

change file access and modification times - sets the modification and access times of files

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

What are the use case for “mkdir” command?

A

make directories - creates directories named as operands

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

What are the use case for “mv” command?

A

lets you move files / rename file

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

What are the use case for “rm” command?

A

remove directory entries

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

What are the use case for “cp” command?

A

lets you copy files

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
14
Q

What are the use case for “cd” command?

A

to change directories

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