Linux command
getcap 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Example
getcap path/to/file
Recursive
getcap -r path/to/dir
Example
getcap -v path/to/file
说明
getcap displays the capabilities of specified files. Linux capabilities allow fine-grained privileges instead of running as root, enabling specific elevated permissions without full root access.
参数
- -r
- Recursively search directories
- -v
- Display all searched entries even if no capabilities set
- -n
- Display numeric capability values
FAQ
What is the getcap command used for?
getcap displays the capabilities of specified files. Linux capabilities allow fine-grained privileges instead of running as root, enabling specific elevated permissions without full root access.
How do I run a basic getcap example?
Run `getcap path/to/file` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -r do in getcap?
Recursively search directories