Only list files | don't list directories | "find" command in Linux

How to:

Find all files under a directory
Find only files from the command line in Linux
Don't search for directories

[user@machinename ~]$ find /some/directory -type f -name filename

Replace "/some/directory" with your directory

"-type f" means only return files as a result, if you want only directories "-type d"


comments powered by Disqus