How to find files in FreeBSD

How to find files in FreeBSD


Finding Files

Total of file in the folder 
# du -a | cut -d/ -f2 | sort | uniq -c | sort –nr


The bigger files in the folder

or 

#find . -printf '%s %p\n'| sort -nr | head -10

---------------------------------------------------------

How to find files using file name in FreeBSD.

#find / -name FileName –print
#find ./ -type f -exec grep -l 'MaxClients' {} +

How to find where is the php installation and files in FreeBSD.

#whereis php   ##note that u can also find another files using this. Eg:apache,nginx

Comments