Linux find command
Last updated:
WebDev
`find` command
Find all files and folders with exact name hungntgrb in the current directory
find . -name hungntgrb
Find all files whose name contain hungntgrb in the current directory
find . -name '*hungntgrb*' -type f
Find all folders whose name contain hungntgrb in the current directory
find . -name '*hungntgrb*' -type d
Remove all files whose name contain hungntgrb in the current directory
The + means end of the command.
find . -name '*hungntgrb*' -type f -exec rm {} +