Quick answer

Download: curl -L …/linpeas.sh -o linpeas.sh. Run: ./linpeas.sh. Fast: -s. Deep: -a. Secrets: -r. Target: -o <section>. Save colour: | tee out. Save plain: -N > out. Help: -h.

Download & run#

curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh -o linpeas.sh
chmod +x linpeas.sh
./linpeas.sh | tee linpeas.out
less -r linpeas.out

Most-used flags#

FlagDoes
-hHelp for your build
-sStealth & fast
-aAll checks (noisy)
-eExtra enumeration
-rSecret/API-key regexes
-o <list>Only these sections
-NNo colours
-qNo banner
-DDebug / timing
-P <pwd>Password for sudo/su checks

Sections for -o#

system_information, container, cloud, procs_crons_timers_srvcs_sockets,
network_information, users_information, software_information,
interesting_perms_files, interesting_files, api_keys_regex

Recipes#

# Quiet first pass
./linpeas.sh -s

# Focus on privesc-critical areas
./linpeas.sh -o users_information,interesting_perms_files

# Deep lab scan with secrets
./linpeas.sh -a -r | tee linpeas.out

# Clean report file
./linpeas.sh -N > linpeas.txt
Note

Build the exact command interactively with the command builder. Verified against 20260908-dffb9496.

Sources & references

  1. linPEAS README — commands and parameters
  2. PEASS-ng releases — help text verified against 20260908-dffb9496