0
0
Fork 0
tree-owners/README.md

56 lines
669 B
Markdown
Raw Permalink Normal View History

2023-09-24 05:52:27 +02:00
# tree-owners
Find all owners (user and group) inside a directory tree.
2023-09-24 06:23:20 +02:00
© Adrian Wannenmacher - Licensed under the EUPL
2023-09-24 05:52:27 +02:00
## Usage
To see available options run: `tree-owners --help`
Basic example when running in this repository:
```
$ tree-owners
2023-09-24 05:52:27 +02:00
users:
adrian (1000)
2023-09-24 05:52:27 +02:00
groups:
users (985)
2023-09-24 05:52:27 +02:00
```
Using `uid`s and `gid`s:
```
$ tree-owners --raw
2023-09-24 05:52:27 +02:00
users:
1000
groups:
985
```
Using `json` output:
```
$ tree-owners --json
2023-09-24 05:52:27 +02:00
{
"users": {
"1000": "adrian"
},
"groups": {
"985": "users"
}
}
```
Combining `json` and `uid`/`gid`:
```
$ tree-owners --raw --json
{
"users": {
"1000": null
},
"groups": {
"985": "users"
}
2023-09-24 05:52:27 +02:00
}
```