Command Line Flashcards

1
Q

ls

A
  • list all the files in your current directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cd [directory]

A
  • change directory
  • current directory is always .
  • parent directory is ..
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ctrl-l

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

pwd

A
  • present working directory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

mkdir [directory]

A
  • make a new folder
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

cp [source] [destination]

A
  • copy file

- is name of file [source] is what to [directory] call the copied file

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

cp -r [source] [destination]

A
  • copy a whole folder
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

rm [file]

A
  • remove file

- asks y/n

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

rm -f [file]

A
  • remove file without asking y/n
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

rm -rf [directory]

A

delete the whole folder without y/n

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

mv [source] [destination]

A

rename a file from [source] to [destination]

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

clang [file]

A

compile file

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

make [file]

A

compile file without extra sauce

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