semanage Verified current stable Not installed?

Semanage / List All Port Labeling Rules

List All Port Labeling Rules

Semanage command syntax to list all port labeling rules. Copyable examples, output expectations, and common mistakes.

$
Terminal
sudo semanage port -l

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
sudo semanage port -l

Command Breakdown

What each part is doing

sudo
Base Command
The executable that performs this operation. Here it runs Semanage before the shell applies any redirect operators.
-l
l| list
The value supplied for l| list.
-l
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative tools that share the "inspect" operation intent.