Lecture3-Inode Table Content and InodeConversion
Lecture3-Inode Table Content and InodeConversion
1. Finding directories
find –type d
2. Finding socket files
find –type s
3. Finding regular files
find –type f
4. Finding hidden directories
find –type d –name “.*”
5. Finding hidden files
find –type f –name “.*”
How to find files based on the file size?
1. Finding files whose size is exactly 10M
find –size 10M
2. Finding files larger than 10M size
find . -size +10M
3. Finding files smaller than 10M size
find . -size -10M
4. How to find the files which are modified after the modification of a give file.
find -newer “abc.txt“
5. Display the files which are accessed after the modification of a give file.
find -anewer "sum.java“
6. How to find the files based on the file permissions?
find . -perm 777
7. Find the files which are modified within 30 minutes.
find . -mmin -30
8. Find the files which are accesed within 1 day.
find . -atime -1