CAPRINT(1)
β¨ CAPRINT β Capability Ambient Print β¨
okay bestie, gather round π this is caprint, a lil tool from the General Commands Manual section that peeks at the ambient capabilities of a running program. no cap, it's giving "who gave this process extra powers" energy π
πΈ NAME πΈ
caprint β Capability Ambient Print π
π SYNOPSIS π
caprint [ OPTIONS ] [ pid ]
π¦ DESCRIPTION π¦
so like, caprint shows you the ambient capabilities of a running program, periodt. you can pass a pid as an optional parameter if you wanna snoop on some other process π β but if you don't, it's not deep, caprint just shows the capabilities of caprint itself. main character energy, honestly β¨
π OPTIONS π
caprint accepts the following options, and yes bestie, we're going through all of them π«Ά
-l,--longβ run in verbose mode. caprint shows the bitmask for every single capability the process owns, plus the resulting mask of the capability set. it's the full lore dump, no skimming π-c,--compactβ emit a compact output: one single line, a comma separated list of the capability short names. and the slay part? this output can literally be copied as a capability list for the commandcado(1)π₯ copy-paste icon behavior-p,--promptβ okay this one is so smart. this option exists to give users a suitable shell prompt that warns them about the extra capabilities granted to that shell (and about the extra danger if they run the wrong commands π). for example, you can set the bash prompt by editing the.bashrcin the user's home directory:
if which caprint >&/dev/null ; then
ambient=$(caprint -p)
fi
PS1='\u@\h:\w:\$$ambient'
-h,--helpβ print a short usage banner and dip. that's it, that's the whole thing π«
β οΈ real talk: those extra capabilities are extra danger. if your shell is holding powers it shouldn't, running the wrong command hits different (derogatory). the -p prompt is there to remind you before things get messy π
π SEE ALSO π
and that's the whole page, bestie π brought to you by VirtualSquare Labs, dated June 23, 2016 β oldie but a goodie, fr fr. go check your capabilities and stay safe out there πβ¨π¦
π¦ where this page comes from
- debian bookworm: cado 0.9.5-2 Β· GPL-2.0-or-later
- debian trixie: cado 0.9.6-1+b1 Β· GPL-2.0-or-later
- ubuntu jammy: cado 0.9.5-1 Β· GPL-2.0-or-later
- ubuntu noble: cado 0.9.6-1build1 Β· GPL-2.0-or-later
- ubuntu resolute: cado 0.9.6-1build2 Β· GPL-2.0-or-later
- ubuntu stonking: cado 0.9.6-1build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms