mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-23 19:51:47 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
@@ -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 image’s `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`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user