Results 1 to 5 of 5

Thread: find command

  1. #1
    Join Date
    Jan 2013
    Beans
    18

    find command

    Hello,

    Just a quick question as I have not been able to find the answer anywhere else. I would like to use the find command to find files starting from root directory. This has to be executed as root, my question is, what would I do to execute this as root? Sudo does not do that right? What command can I use to execute it as root? If it is sudo, why is it not finding the file? I know it is in the downloads directory in my home directory, which should be found with sudo find / 'filename' right?

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: find command

    Code:
    sudo find / -name "filename" -print
    Should work...
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,210
    Distro
    Ubuntu Budgie Development Release

    Re: find command

    See the manual page for more details .
    Code:
    man find
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  4. #4
    Join Date
    Jan 2013
    Beans
    18

    Re: find command

    Great thanks guys, just wasn't sure it was the sudo command that was keeping it from working...thanks! I read the man pages, good idea!

  5. #5
    Join Date
    Dec 2006
    Beans
    7,349

    Re: find command

    Quote Originally Posted by Cthulu2156 View Post
    Great thanks guys, just wasn't sure it was the sudo command that was keeping it from working...thanks! I read the man pages, good idea!
    A bit more friendly than the man pages:

    https://help.ubuntu.com/community/find

    You think that's air you're breathing now?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •