Watch
0
0
Fork
You've already forked tree-owners
0
mirror of https://github.com/TeFiLeDo/tree-owners.git synced 2026-11-09 13:41:32 +01:00
Find all owners (user and group) inside a directory tree.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-03-23 22:46:30 +01:00
.github fix dependabot config 2023-11-17 08:11:44 +01:00
src
.gitignore
build.rs
Cargo.lock increase version number 2024-03-23 22:46:30 +01:00
Cargo.toml increase version number 2024-03-23 22:46:30 +01:00
LICENSE
README.md

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"
  }
}