1.2.1 Flashcards

1
Q

cp

A

copies directories, coping leaves the source data intact

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

cp -r or -R

A

Recursively copy subdirectories and files within the directories

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

mv

A

moves and renames directories

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

mv -f

A

overwrites a directory that already exists in the destination directory w/o prompting

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

mv -i

A

prompt overwriting a directory i the destination directory

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

mv -n

A

never overwrites files i the destination directory

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

rmdir

A

delete empty directory

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

rm

rm -i

A

removes the directory

prompts before removing

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

rm -r

rm -f

A

removes directories, subdirectories and files

eliminates prompt from read-only files and avoids exit code error if a file doesn’t exist

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

touch

A

creates a blank version of a file

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

cp

A

copies files

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

cp -f

cp -i

A

Overwrites files that already exist in the destination directory
prompts before overwriting

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

mv

mv -f

A

moves or renames files

overwrites files that already exist

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

mv -i

mv -n

A

prompts before overwriting

never overwrites files

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

rm

A

removes files from the directory

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