Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Drop the alias and just put the function into your .bashrc or .bash_aliases. Call _find from the command line. It is not a good idea to always search /.
    – markgraf
    Commented Oct 9, 2019 at 14:57
  • 1
    On a sidenote: when your alias is the same as the command itself, you want to alias somecommand='command somecommand --with-options whatever'.
    – markgraf
    Commented Oct 9, 2019 at 15:00
  • If you want to drop error message find [...] 2&>/dev/null. That's what i use in general.
    – Julien B.
    Commented Oct 9, 2019 at 15:18
  • I didn't realize that I was defining my function wrong, and for using this command with sudo, it would need to be in a script anyway. Commented Oct 9, 2019 at 18:35