


To find and report toms-first-birthday.mp4 file in your HONE directory, enter: -ls : List current file in ls -dils format on screen.-exec cmd + : Run command cmd on a file.Keep your most commonly used commands handy with the Linux commands cheat sheet. Whether you're on your own computer or trying to support someone on an unfamiliar system, here are 10 ways find can help you locate important data. -print : Show pathnames of matching files. As its name implies, find helps you find things, and not just by filename.You can specify the following actions when file found: The default action is to display the file name when criteria is matched. If you want to search for symbolic links when -L is in effect, use -xtype. l : symbolic link this is never true if the -L option or the -follow option is in effect, unless the symbolic link is broken.-group groupName – The file’s group owner is groupName.-user userName – The file’s owner is userName.The pattern `*foo*` will also match a file called ‘.foobar’. For example, the patterns `fo*’ and `F?’ match the file names `Foo’, `FOO’, `foo’, `fOo’, etc. -iname file-name – Like -name, but the match is case insensitive.-name file-name – Search for given file-name.The filename is usually specified by the -name option. The find command will begin looking in the /dir/to/search/ and proceed to search through all accessible subdirectories. Find /search/directory/ -name "matching file search criteria" -actionsįind /dir/to/search -name "pattern" -printįind /dir/to/search -name "file-to-search" -printįind /dir/to/search -name "file-to-search" -print
