#user-group #directory-tree #linux #file #file-tree #cli #find-files

app tree-owners

Find all owners (user and group) inside a directory tree

9 releases (stable)

1.0.5 Mar 23, 2024
1.0.4 Dec 26, 2023
1.0.2 Nov 17, 2023
1.0.1 Oct 19, 2023
0.1.1 Sep 24, 2023

#254 in Filesystem

Download history 15/week @ 2024-02-20 18/week @ 2024-02-27 5/week @ 2024-03-12 145/week @ 2024-03-19 1/week @ 2024-03-26 30/week @ 2024-04-02 65/week @ 2024-04-09 10/week @ 2024-04-16

75 downloads per month

EUPL-1.2

14KB
159 lines

tree-owners

Find all owners (user and group) inside a directory tree.

© Adrian Wannenmacher - Licensed under the EUPL

Usage

To see available options run: tree-owners --help

Basic example when running in this repository:

$ tree-owners
users:
    adrian (1000)

groups:
    users (985)

Using uids and gids:

$ tree-owners --raw
users:
    1000

groups:
    985

Using json output:

$ tree-owners --json
{
  "users": {
    "1000": "adrian"
  },
  "groups": {
    "985": "users"
  }
}

Combining json and uid/gid:

$ tree-owners --raw --json
{
  "users": {
    "1000": null
  },
  "groups": {
    "985": "users"
  }
}

Dependencies

~9–20MB
~299K SLoC