5. Search Operations in Linux Flashcards

1
Q

What is the command to search for files in a directory hierarchy?

A

find

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

What is an expression?

A

It is multiple positional options.

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

What is the command to find a file with a specific name?

A

find -name

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

What is the command to specificly find files?

A

find -type f

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

What is the command to find specificly directories?

A

find -type d

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

What is the command to find specificly links?

A

find -type l

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

What is the command to format into a list the result of find?

A

find -ls

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

What is the command to find empty files?

A

find -empty

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

What is the command to find a file based on its size in octet (bytes)?

A

find -size

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

What is the command to find a file based on permission?

A

find -perm

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

What is the command to execute something on the file we found with the find command?

A

-exec [command] ‘{}’ \;

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

What is the option to have color with the ls command?

A

–color

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

How to read multiple arguments from STDOUT and send it to another STDIN?

A

xargs

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