find Flashcards

0
Q

Find case insensitive

A

Find /dir -iname

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

Find only directories

A

Find /dir -type d …

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

Find files with perms

A

-perm

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

Find files with perms

A

-perm

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

Find files whose inode data has been changed in last hour

A

find /dir -cmin 60

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

Find files which contents have been modified in last hour / exactly hour ago / hour ago and more

A

find /dir -mmin 60 (60 or less) / -mmin 60 / -mmin +60

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

Find files which data has been last modified n*24 hours ago

A

find /dir -mtime -1

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

Find files which got accessed within last hour

A

find /dir -amin -60

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

Find files whose inode data has been changed within the last 24 hours

A

find /dir -ctime -1

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

Find files that have been modified after $time

A

find -newer

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

Find files which are accessed after modification of a specific file

A

find -anewer

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

Find files which got changed after modification of a specific file

A

find -cnewer

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

Perform any operation on files found from find command

A

find -exec \;

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

Find only in current filesystem

A

find /dir -xdev

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

find a file under root and 1 level down

A

find -maxdepth 2 -name

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

find a file between sub-directory level 2 and 4

A

find -mindepth 3 -maxdepth 5 -name

17
Q

find files with perms group to read

A

find /dir -perm -g=r

18
Q

Find files bigger than 100M

A

find /dir -size +100M

19
Q

Find files smaller than 100M

A

find /dir -size -100M

20
Q

Execute a command on files found

A

find . -exec </full/path/to/command/you/wanna/run/on/files {} \;

21
Q

Find files that are older than x days in a directory (first cd into it)

A

find . -mtime +x