chcat
linux
Change SELinux security category for files. Categories provide an additional level of access control based on MCS (Multi-Category Security). See also: `chcon`, `semanage`.
More info →Options (3)
-L, --listbooleanList all available categories
Example:
sudo chcat {{[-L|--list]}}-Z, --contextbooleanDisplay the categories of a file
Example:
ls {{[-Z|--context]}} {{path/to/file}}-d, --deletebooleanRemove all categories from a file
Example:
sudo chcat {{[-d|--delete]}} {{path/to/file}}Examples (6)
Set specific categories for a file (replacing existing ones)
Display the categories of a file
ls [-Z|--context] path/to/filemade by @shridhargupta | data from tldr-pages