Show the raw rules managed by UFW
Build a paste-ready command, then review its compatibility and effects before running it.
ufw show raw | head -30read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsufwufw must be installed and available on PATH.
Version supportufw Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsIPV4 (raw):Representative successful output; values vary with the selected target and system state.
Known errorsufw: command not foundufw is missing or is not available on PATH.
Verifyufw show raw | head -30The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01ufwCommandRuns the ufw stage of this one-liner.
02showArgumentPasses show to ufw.
03rawArgumentPasses raw to ufw.
04|PipelinePasses the output on the left to the command on the right.
05headCommandRuns the head stage of this one-liner.
06-30OptionConfigures head with the -30 option.
Example input
ufw show raw | head -30
Example output
IPV4 (raw):
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Illustrative output — exact values vary by system and data.
Official sources