cap_mode_name - Linux


The cap_mode_name command retrieves the name of the Linux capability mode for a given number. Capability modes define sets of system capabilities that can be assigned to processes and users.


cap_mode_name [OPTIONS] [MODE_NUMBER]


  • -h, –help: Print help text.
  • -n, –names: List all capability mode names and their corresponding numbers.


Retrieve the name of the 0 mode:

cap_mode_name 0

List all capability mode names and numbers:

cap_mode_name -n

Common Issues

If a mode number is not provided, cap_mode_name will retrieve the name of the default mode (usually "bounding").


cap_mode_name can be used with other commands, such as getcap and setcap, to manage capability modes.

Related Commands

  • getcap
  • setcap
  • capabilities