Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If your distro comes with plocate or you have it installed, you can use it through the `locate` command. It will setup a service that periodically (usually daily) updates the database it sources for that information.

`find` is the canonical way to do it, though it will take a while, and like @teaearlgraycold mentioned, you'll likely want to redirect stderr to /dev/null.

    find / -name "name here" 2>/dev/null
This handy function should help if you plop it in the rcfile for your shell:

    dir/s() {
        find / -name "$1" 2>/dev/null
    }



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: