getcap

Command to display the name and capabilities of each specified file. More information: https://manned.org/getcap.

getcap path/to/file1 path/to/file2 ...

getcap -r path/to/directory1 path/to/directory2 ...

getcap -v path/to/file1 path/to/file2 ...