Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Commands»Find All files Owned by a Specific User in Unix/Linux

    Find All files Owned by a Specific User in Unix/Linux

    RahulBy RahulAugust 16, 20201 Min ReadUpdated:August 16, 2020

    In some cases you may required to search all files owned by a particular user on Linux system. For example, you are hosting a cPanel server and there are mismatch with size of quota and home directory of user. In that case some of the files owned by user are outside of there home directory.

    To find all files on the server owned by that user run the following command.

    find / -user $USERNAME 
    

    Replace $USERNAME with the actual username to whom you need to search files.

    This command will search files owned by a particular user in entire file system. So it will take a long time. It is a good idea to store output to a files instead of showing on terminal.

    find / -user $USERNAME > user-files.txt
    

    All the files owned by the given username will be stored user-files.txt file.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Install Wine 6.0 on Ubuntu 20.04
    Next Article How to Install OpenOffice on Ubuntu 20.04

    Related Posts

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    Handling filenames with spaces in Linux

    3 Mins Read

    How To Compare Two Files in Linux

    Updated:August 23, 20215 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.