Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-15 00:19:52 +00:00
parent 2f0bb2e110
commit cb2b02c321
11 changed files with 240 additions and 6 deletions

37
tldr/linux/aureport Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# aureport
> Generate summary reports of auditd logs.
> More information: <https://manned.org/aureport>.
- Display a summary of auditd events:
`sudo aureport`
- Generate a summary of login events:
`sudo aureport {{[-l|--login]}}`
- List all syscall reports:
`sudo aureport {{[-s|--syscall]}}`
- Generate a summary of executable events:
`sudo aureport {{[-x|--executable]}}`
- Show a summary of events for a specific time range:
`sudo aureport {{[-ts|--start]}} {{start_time}} {{[-te|--end]}} {{end_time}}`
- List all audit files and the time range of events they cover:
`sudo aureport {{[-t|--log-time]}}`
- Display help:
`aureport --help`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ceph
> A unified storage system.
> More information: <https://ceph.io/en>.
> More information: <https://docs.ceph.com/en/latest/man/8/ceph/>.
- Check cluster health status:

34
tldr/linux/slabtop Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# slabtop
> Display kernel slab cache information in real time.
> See also: `top`, `htop`, `atop`.
> More information: <https://manned.org/slabtop>.
- Start `slabtop`:
`sudo slabtop`
- Sort by [c]ache size:
`sudo slabtop {{[-s|--sort]}} c`
- Sort by number of [o]bjects:
`sudo slabtop {{[-s|--sort]}} o`
- Sort by object [s]ize:
`sudo slabtop {{[-s|--sort]}} s`
- Display once and then exit:
`sudo slabtop {{[-o|--once]}}`
- Display help:
`slabtop {{[-h|--help]}}`

View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl service-log-level
> Get or set the runtime log level of a service via D-Bus.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#service-log-level%20SERVICE%20%5BLEVEL%5D>.
- Show the current log level of a service:
`systemctl service-log-level {{service_name}}`
- Set the log level of a service (the level name can be replaced with a number from 0 to 7):
`systemctl service-log-level {{service_name}} {{emerg|alert|crit|err|warning|notice|info|debug}}`