## Finding Files

You hacked a server. You want to find "passwords.txt". How?

### 1. `locate`
The fast, indexed search.
*   `locate password.txt`
*   **Pros**: Instant.
*   **Cons**: Relies on a database (`updatedb`). If the file was made 1 minute ago, locate won't find it.

### 2. `find`
The powerful, real-time crawler.
*   Syntax: `find [where] [filters] [action]`

**Examples**:
*   `find / -name "flag.txt"`: Search whole drive for flag.txt.
*   `find /home -name "*.conf"`: Search home for configs.
*   `find / -type f -size +100M`: Find files larger than 100MB.
*   `find / -perm -4000 2>/dev/null`: Find SUID files (Privilege Escalation gold).
    *   `2>/dev/null` hides "Permission Denied" errors so you only see clean results.

### 3. `which`
Finds executable binaries in your PATH.
*   `which python`: Shows `/usr/bin/python`.
*   If `which` returns nothing, the tool is not installed or not in PATH.