Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-10 00:21:50 +00:00
parent e9c1654811
commit 9b844dc12b
21 changed files with 69 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all user-defined file labelling rules without headings:
`sudo semanage fcontext {{[-l|--list]}} {{[-C|--locallist]}} {{[-n|--noheading]}}`
`sudo semanage fcontext {{[-lCn|--list --locallist --noheading]}}`
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
- Relabel a directory recursively by applying the new rules:
`restorecon -R -v {{path/to/directory}}`
`restorecon -Rv {{path/to/directory}}`

View File

@@ -13,7 +13,7 @@ source: https://github.com/tldr-pages/tldr.git
`systemctl mount-image {{unit}} /{{path/to/image}} /{{path/to/directory_inside_unit}}`
- Mount the images `root` partition with read-only and no-setuid options:
- Mount the image's `root` partition with read-only and no-setuid options:
`systemctl mount-image {{unit}} /{{path/to/image}} /{{path/to/directory_inside_unit}} root:ro,nosuid`