Command Line Flashcards

1
Q

man

A

use man with an argument to see name of program, utility or function

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

cat

A

Concatenate files or if 1 file, print the standard output

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

ls

A
  • View the list directory contents

- ls -a to see hidden files

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

pwd

A

Print the working directory

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

echo

A

Display a line of text, or add a line to text

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

touch

A
  • Update access and modification times of each file to current time
  • Makes a new file if it doesn’t not exist
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

mkdir

A
  • Creates directories that doesnt exist

- Make parent directories with -p , parent/child/grandchild

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

mv

A

Rename a file or directory

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

rm

A

Remove a file or directory

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

cp

A

Copy a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

Difference between a folder and a directory

A

Folders have icons

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