1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

add sysctl command parser

This commit is contained in:
Kelly Brazil
2020-07-10 10:50:51 -07:00
parent 0c5289ea50
commit 47aaf20549

View File

@ -152,6 +152,7 @@ The JSON output can be compact (default) or pretty formatted with the `-p` optio
- `--shadow` enables the `/etc/shadow` file parser - `--shadow` enables the `/etc/shadow` file parser
- `--ss` enables the `ss` command parser - `--ss` enables the `ss` command parser
- `--stat` enables the `stat` command parser - `--stat` enables the `stat` command parser
- `--sysctl` enables the `sysctl -a` command parser
- `--systemctl` enables the `systemctl` command parser - `--systemctl` enables the `systemctl` command parser
- `--systemctl-lj` enables the `systemctl list-jobs` command parser - `--systemctl-lj` enables the `systemctl list-jobs` command parser
- `--systemctl-ls` enables the `systemctl list-sockets` command parser - `--systemctl-ls` enables the `systemctl list-sockets` command parser
@ -2292,6 +2293,22 @@ stat /bin/* | jc --stat -p # or: jc -p stat /bin/*
} }
] ]
``` ```
### sysctl
```bash
sysctl -a | jc --sysctl -p # or: jc -p sysctl -a
```
```json
$ sysctl | jc --sysctl -p
{
"user.cs_path": "/usr/bin:/bin:/usr/sbin:/sbin",
"user.bc_base_max": 99,
"user.bc_dim_max": 2048,
"user.bc_scale_max": 99,
"user.bc_string_max": 1000,
"user.coll_weights_max": 2,
"user.expr_nest_max": 32
}
```
### systemctl ### systemctl
```bash ```bash
systemctl -a | jc --systemctl -p # or: jc -p systemctl -a systemctl -a | jc --systemctl -p # or: jc -p systemctl -a