How Do I Find out What Files a User Owns in Linux?
Contents

How do you find a file owned by a user in Linux?

How to Find Files Owned by Users(s) in Linux

  1. Find files by user bill. find -type f . – user bill.
  2. Find folders/directories by user bill. find -type d . – user bill.
  3. Find files by users bill and tom. find -type f . – user bill -o -user tom.
  4. Find folders/directories by user bill and tom. find -type d . – user bill -o user tom.

2 июл. 2015 г.

How do you find the contents of a file in Linux?

To find files containing specific text in Linux, do the following.

  1. Open your favorite terminal app. XFCE4 terminal is my personal preference.
  2. Navigate (if required) to the folder in which you are going to search files with some specific text.
  3. Type the following command: grep -iRl “your-text-to-find” ./

4 сент. 2017 г.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest