Command Line Flashcards

1
Q

What is a CLI?

A

Command Line Interface

Processes commands to a computer program in the form of lines of texts

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

This is for the end user and not the developer. User friendly

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

Command ‘man’

A

Manual

Shows you what you can do with each command

Lists directory contents

Useful to understand what you can do with each command

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

Command ‘cat’

A

Concatenate files and print on the standard output

Useful to merge and view file content

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

Command ‘ls’

A

Useful to navigate through files and folders

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

Command ‘pwd’

A

Useful to print contents of current directory

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

Command ‘echo’

A

Displays a line of text, useful to add strings to files

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

Command ‘touch’

A

Allows you to create files in directories

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

Command ‘mkdir’

A

Creates directories

Useful for when you need to create a folder to contain new files or folders

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

Command ‘mv’

A

Move (rename) files

Useful when moving and/or renaming files or folders

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

Command ‘rm’

A

Remove files or directories

Useful for when you need to remove a file or directory you no longer need to use

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

Command ‘cp’

A

Copy files or directories

Useful for when you need to duplicate a file or folder

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, and Hubris

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