LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

getcap

Linux capabilities viewer for files

TLDR

Get capabilities
$ getcap path/to/file
copy
Recursive search
$ getcap -r path/to/dir
copy
Show all entries
$ getcap -v path/to/file
copy

SYNOPSIS

getcap [OPTIONS] files...

DESCRIPTION

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.

PARAMETERS

-r

Recursively search directories
-v
Display all searched entries even if no capabilities set
-n
Display numeric capability values

INSTALL

sudo apt install libcap2-bin
copy
sudo apk add libcap-getcap
copy

CAVEATS

Capabilities are an alternative to setuid programs, providing more granular privilege control. Only files with capabilities set will show output by default.

HISTORY

getcap is part of libcap, implementing POSIX 1003.1e capabilities on Linux.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid