I need to find all the .psd
files on my Linux system (dedicated web hosting). I tried something like this: ls -R *.psd
, but that's not working. Suggestions?
You can use grep command or find command as follows to search all files for a string or words recursively.
On Linux, you can use -regex to combine extensions in a terser way. The default regexp syntax is Emacs (basic regexps plus a few extensions such as \| for alternation); there's an option to switch to extended regexps. On FreeBSD, NetBSD and OSX, you can use -regex combined with -E for extended regexps.
Using Find You can also use the find command followed by the target directory and the file you wish to locate. The command will start in the root directory and recursively search all the subdirectories and locate any file with the specified name.
You can use the following find command to do that:
find /path/to/search -iname '*.psd'
iname
does a case insensitive search.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With