← All commands
Topic hub Security & Permissions
Windows Linux Security & Permissions Capabilities

Windows getcap equivalent in Linux

Shows Linux file capabilities.

Windows getcap
Linux equivalents
Debian/Ubuntu same command
getcap -r / 2>/dev/null
Fedora same command
getcap -r / 2>/dev/null
Arch same command
getcap -r / 2>/dev/null

Overview

What this command does

Shows Linux file capabilities.

Migration tip: Check the distro-specific rows before copying; package names and service names can differ even when the tool name is similar.

Practical tasks

Common use cases

List file capabilities

Shows Linux file capabilities.

getcap -r / 2>/dev/null

List file capabilities

getcap --help

Show command help when supported

man getcap

Open the manual page when installed

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

getcap -r / 2>/dev/null

Walkthrough

Examples with explanations

# Windows equivalent: getcap
getcap -r / 2>/dev/null

Reference

Common options and variations

Command or optionUse
getcap -r / 2>/dev/nullList file capabilities
getcap --helpShow command help when supported
man getcapOpen the manual page when installed

Distro differences

Debian/Ubuntu vs Fedora vs Arch

The equivalent is shown for Debian/Ubuntu, Fedora and Arch. Some rows use a different package manager or helper tool where Linux distributions commonly diverge.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command getcap -r / 2>/dev/null Same command on this distribution.
Fedora same command getcap -r / 2>/dev/null Same command on this distribution.
Arch same command getcap -r / 2>/dev/null Same command on this distribution.

Keep learning

Related Security & Permissions commands