Search for files Flashcards

1
Q

How do you use find to search by name

A

find / -name filename

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

How do you use find to search a file by name

A

find / -name filename -type f

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

How do you use find to search a file IN a directory

A

find /usr -name yum -type f

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

How do you find a file not depending on upper and lower case

A

find /usr -iname yum -type f

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

how can you exclude a parameter

A

find /usr -not -name yum -type f

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