Command Line Basics Flashcards

1
Q

What is a CLI?

A

Command-line interface. It processes commands to a computer program in the form of lines to text.

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

What is a GUI?

A

A form of user interface that allows users to interact with electronic devices through graphical icons and audio indicators.

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

man

A

Manuals - to find out how to use commands.

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

cat

A

Concatenate - to print content into the terminal or to combine content of multiple files

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

ls

A

List - to display the list of contents (of a directory)

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

pwd

A

Print name of current/working directory - to tell you which directory you are currently in

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

echo

A

Display a line of text - can create a new file with the string typed

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

touch

A

To change file timestamps - can create new file by itself or within a directory

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

mkdir

A

Make Directory - to create new directories (can also create nested directories)

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

mv

A

Move/Rename - to rename files (when you’re renaming something, you’re also moving it)

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

rm

A

Remove - to remove files/directories along with their contents

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

cp

A

Copy files/directories - to create a copy of a file/directory

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