FahamLah

Commands

find

find <where> -name <pattern>

Risk: Safe

What it does

Searches a folder and every folder inside it for matching names.

When to use it

When you know a file's name but not its room.

Example

$ find kedai -name "*.log"

Every log file in the shop.

$ find kedai -iname "sambal*"

Big or small letters, both match.

$ find kedai -type d -empty

Empty folders only.