capng_print_caps_numeric - Linux


Overview

capng_print_caps_numeric is a Linux command to print capabilities with the extended capability namespace (CAP_NG) in a numeric form. It comes in handy for analyzing and managing capabilities assigned to processes or files.

Syntax

capng_print_caps_numeric [CAP_...][,[options]][--] [file|-]

Options/Flags

  • -[L|-N] order alphabetically or numerically
  • -[v|-V] verbose
  • -[h|-?] prints this help menu

Examples

Print capabilities of a file:

capng_print_caps_numeric myfile

Print capabilities with verbose output:

capng_print_caps_numeric -v /bin/bash

Print capabilities in numeric order:

capng_print_caps_numeric -N /proc/1/exe

Common Issues

  • Ensure the file has extended capabilities enabled.
  • Run the command with proper permissions.

Integration

Combine capng_print_caps_numeric with the capng_setcaps_numeric command to manage capabilities programmatically or in scripts.

Related Commands

  • getcap
  • setcap