

type f -empty Look for an empty file inside the current directory. The GNU find command searches files within a directory and its subdirectories according to several criteria such as name, size and time of last read/write. jpg files in the /home and directories below it.
Linux find directory by name how to#
It's OK here as the filename is passed as argument to an option and is always featured.mp4 anyway, but for other usages you may have to take into account that the file name may start with - or + (and be understood as an option by the command) or contain = (and be understood as a variable assignment by awk for instance), or other characters causing this kind of problem with perl -p/n (not all of them fixed by GNU find's. name thisfile.txt If you need to know how to find a file in Linux called thisfile.txt, it will look for it in current and sub-directories.
filename here, BSD ones expand to filename. Access to a terminal window/command line A user account with sudo privileges Basic find Command Syntax The basic syntax of the find command uses the following format: findYou will get a listing like this one: ls -d / 1/ backups/. If you want to list only directories, you can use the -d option.


Return the directory name of pathname path. With other finds, provided directory names don't contain newline characters: find. By default, the ls command will show both files and directories. The result is an object of the same type, if a path or file name is returned.
