GETPCAPS(8)
๐ GETPCAPS โ bestie's guide to peeking at process capabilities
okay so this is getpcaps, it lives in section 8 of the system manager's manual, and it is literally the tool you want when you need to see what a process is allowed to do. no cap.
โจ NAME โจ
getpcaps โ display process capabilities ๐ซถ
๐ SYNOPSIS ๐
getpcaps [optional args] pid...
like, you give it pids. that's the whole vibe. optional args go first, pids go after. simple as. ๐
๐ธ DESCRIPTION ๐ธ
getpcaps shows you the capabilities of the processes you point at with the pid value(s) you drop on the command line. and yes bestie, you can pass more than one.
and here's the iconic little detail: a pid of 0 shows the capabilities of the process that is running getpcaps itself. it's giving main character energy, it's looking in the mirror. ๐ช
the capability Set of the process gets displayed in the text representation described over in cap_text_formats(7). go read that if you want the full lore, iykyk.
Optional arguments: (the lil extra toppings ๐)
--helpor--usageโ displays usage information and then exits. that's it, that's the whole job. ๐--uglyor--legacyโ displays output in a somewhat ugly legacy format. yeah, it's literally called ugly. the name is honest, we respect the honesty. ๐--verboseโ displays usage in a legacy-like format but not quite so ugly in modern default terminal fonts. so it's the legacy vibe but it actually looks cute on your screen now. glow-up. โจ--iabโ displays IAB tuple capabilities from the process. the output format here is also described incap_text_formats(7). heads up on the styling: double quotes encase the regular process capabilities, and square brackets encase the IAB tuple. and this exact format is also used bycaptree(8), so you'll see it again bestie, learn it once and you're set. ๐
๐ญ REPORTING BUGS ๐ญ
found a bug? not you being the main character of QA. please report it via:
https://bugzilla.kernel.org/buglist.cgi?component=libcap&list_id=1090757
๐ SEE ALSO ๐
capsh(1), cap_from_text(3), cap_iab(3), cap_text_format(7), capabilities(7), captree(8), getcap(8), and setcap(8).
the whole friend group fr fr. go say hi. ๐ซถ
๐ AUTHOR ๐
this manual page was originally written by Robert Bihlmeyer <robbe@debian.org>, for the Debian GNU/Linux system (but may be used by others). legend behaviour, honestly. ๐
k that's the page bestie, now go check some capabilities and slay ๐ โจ
that's a wrap on the GETPCAPS(8) page from the System Manager's Manual โ dated 2025-03-19. periodt. ๐๐ฆ
๐ฆ where this page comes from
- alpine 3.22: libcap-doc 2.78-r0 ยท BSD-3-Clause OR GPL-2.0-only
- alpine 3.23: libcap-doc 2.78-r0 ยท BSD-3-Clause OR GPL-2.0-only
- alpine 3.24: libcap-doc 2.78-r0 ยท BSD-3-Clause OR GPL-2.0-only
- arch rolling: libcap 2.78-1 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 43: libcap 2.76-3.fc43 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 43: libcap 2.76-3.fc43 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 43: libcap 2.76-4.fc43 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 43: libcap 2.76-4.fc43 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 44: libcap 2.77-2.fc44 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 44: libcap 2.77-2.fc44 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 44: libcap 2.78-1.fc44 ยท BSD-3-Clause OR GPL-2.0-only
- fedora 44: libcap 2.78-1.fc44 ยท BSD-3-Clause OR GPL-2.0-only
- nixpkgs unstable: libcap 2.78
- ubuntu stonking: libcap2-bin 1:2.78-1ubuntu1 ยท BSD-3-Clause OR GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms