finding files on system by type
Finding a file in system could be a huge task without find, still with find if you don’t know the correct usage of find you will endup executing sevral find command without any results.
lets say you want to find a particular type of file on the entire system to do that you need to know
what tyes of the file actully available on system !! see below:
b = block (buffered) special
c = character (unbuffered) special
d = directory
p = named pipe (FIFO)
f = regular file
l = symbolic link
s = socket
D = door (Solaris)
Now the above option can be used as a parameter to find commands option -type to find particular types of files.
I tried the d (directory) parameter as in below examples for some search of mp3 files on the system so i can delete them as per policy!
examples:
find / -type d -name '*.mp3' -print
find / -type d -name 'That*' -and -size +10000k
Posted: August 26th, 2008 under System Administrator.
Tags: command, file, find, type
Comments: none










































