mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 09:55:51 +00:00
Update cheatsheets
This commit is contained in:
@@ -19,11 +19,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Add a user-defined rule that labels any path which matches a PCRE `regex`:
|
||||
|
||||
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} {{'/mnt/share(/.*)?'}}`
|
||||
`sudo semanage fcontext {{[-a|--add]}} {{[-t|--type]}} {{samba_share_t}} '{{/mnt/share(/.*)?}}'`
|
||||
|
||||
- Delete a user-defined rule using its PCRE `regex`:
|
||||
|
||||
`sudo semanage fcontext {{[-d|--delete]}} {{'/mnt/share(/.*)?'}}`
|
||||
`sudo semanage fcontext {{[-d|--delete]}} '{{/mnt/share(/.*)?}}'`
|
||||
|
||||
- Relabel a directory recursively by applying the new rules:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user