Blogs

Search for files in linux

There are two commands useful to perform the find operation in linux

Find

This command searches for a file within the root file system (it is recursive)

​# find / -name named.conf

Alternatively we can be more specific if we know under which directory such file might be located at

​# find /usr -name named.conf

Find file that are less or greater than a given size

less than 4096 bytes

# find . -type f -size -4096c

Greater than 4096 bytes

Pages

Subscribe to RSS - blogs