Added timedatectl and loginctl

This commit is contained in:
Jacco van Buuren 2021-06-18 14:21:03 +02:00 committed by Andrea Cardaci
parent 3466212c5d
commit 390c49394a
2 changed files with 30 additions and 0 deletions

15
_gtfobins/loginctl.md Normal file
View File

@ -0,0 +1,15 @@
---
description: |
This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
This might not work if run by unprivileged users depending on the system configuration.
functions:
shell:
- code: |
loginctl user-status
!/bin/sh
sudo:
- code: |
sudo loginctl user-status
!/bin/sh
---

15
_gtfobins/timedatectl.md Normal file
View File

@ -0,0 +1,15 @@
---
description: |
This invokes the default pager, which is likely to be [`less`](/gtfobins/less/), other functions may apply.
This might not work if run by unprivileged users depending on the system configuration.
functions:
shell:
- code: |
timedatectl list-timezones
!/bin/sh
sudo:
- code: |
sudo timedatectl list-timezones
!/bin/sh
---