KalpanaAug 7, 20201 min readFind files or directories only in Linux?For files only, use the type f switch.Files onlyfind ./ -type f -name "qa*"Output./test/qatree.pdf ./test/qa.txtDirectories onlyAdd the type d option to locate directories only.find ./ -type d -name "qa*"Output./home/qa
For files only, use the type f switch.Files onlyfind ./ -type f -name "qa*"Output./test/qatree.pdf ./test/qa.txtDirectories onlyAdd the type d option to locate directories only.find ./ -type d -name "qa*"Output./home/qa
Commenti