Code Flashcards

1
Q

Command that locates all files in a given directory and copies them to folder in home directory

A

find /usr/-name ‘*.txt’ -exec cp {} ~ \;

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

What command lets you determine the number of file transferred

A

ls | wc

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

cat all the files

A

find /usr -name ‘*.txt” -exec cat {} > outputfile.txt \;

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