Hacker ApprovedDepartments

lsof

Shares rank 38 of 86 privilege escalation tools by recommenders

Recommended for finding which process holds a port or file open without restarting anything. Critics find its flags and defaults awkward, and warn against killing its results.

Recommended for finding which process holds a port or file open without restarting anything. Critics find its flags and defaults awkward, and warn against killing its results.

14 people gave an opinion

recommend it
9
criticize it
5
approval share
64%
Each figure is one person. RecommendsCriticizes

Recommended in 7 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it doesn’t carry the badge

  • 9 people recommend itNeeds 10 or more, not met.
  • 1.8 recommenders for every criticNeeds 2 to 1 or better, not met.
  • Recommended in 7 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Finds processes using ports or files

    “I just needed a simple alias local-tcp-listeners='lsof -iTCP -sTCP:LISTEN' in my ~/.bash_aliases”

    Comment from 20 Mar 2026 in “Show HN: Sonar – A tiny CLI to see and kill whatever's running on localhost”

    “that's your clue to run lsof and look for "deleted" files that are open.”

    Comment from 7 Apr 2026 in “Running Out of Disk Space in Production”

    “the quickest way to find the culprit without restarting anything”

    Comment from 7 Apr 2026 in “Running Out of Disk Space in Production”
  • Useful for troubleshooting

    “some of the most often misunderstood or unknown tools that I find useful for troubleshooting”

    Comment from 1 Oct 2026 on Hacker News

    “Tools such as strace, eBPF, lsof, ss, etc. have tremendous value.”

    Comment from 11 Oct 2026 in “Unikernels were hard. key word: were”

What people warn about

Each mark is one comment

  • Awkward flags and defaults

    “I kept running variations of lsof -i | grep LISTEN and then forgetting the flags the next time”

    Comment from 10 Feb 2026 in “Show HN: Portview – a diagnostic-first port TUI (Rust, cross-platform)”

    “it's weird that both lsof and ss defaults are so awful”

    Comment from 23 Dec 2025 in “Snitch – A friendlier ss/netstat”

Other privilege escalation tools people recommend

The four most recommended other privilege escalation tools, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

lsof compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
fzf78594%12—Approved
jq753369%12—Approved
grep651977%12—Approved
Atuin632472%112 yrs4 ownersApproved
lsofThis page9564%7——
See all 86 privilege escalation tools, ranked

What people said

13 of the 14 comments that mention it, newest first. Each links to the original comment.

“Tools such as strace, eBPF, lsof, ss, etc. have tremendous value.”

RecommendsComment from 11 Oct 2026 in “Unikernels were hard. key word: were”

“some of the most often misunderstood or unknown tools that I find useful for troubleshooting”

RecommendsComment from 1 Oct 2026 on Hacker News

“the benchmark results are incredibly good”

RecommendsComment from 17 Sep 2026 in “Why TeX Is Slow and How We Rebuilt It in Pure Rust”

“netstat and/or lsof will normally take care of that”

RecommendsComment from 12 Aug 2026 in “`whoport` – which agent is using localhost:3000?”

“killing the results of `lsof` is _not_ safe”

MixedComment from 28 May 2026 in “Show HN: Continue? Y/N: A 60-second game about AI agent permission fatigue”

“the quickest way to find the culprit without restarting anything”

RecommendsComment from 7 Apr 2026 in “Running Out of Disk Space in Production”

“that's your clue to run lsof and look for "deleted" files that are open.”

RecommendsComment from 7 Apr 2026 in “Running Out of Disk Space in Production”

“it's certainly far more efficient than 'lsof'”

CriticizesComment from 2 Apr 2026 in “The Windows equivalents of the most used Linux commands”

“I just needed a simple alias local-tcp-listeners='lsof -iTCP -sTCP:LISTEN' in my ~/.bash_aliases”

RecommendsComment from 20 Mar 2026 in “Show HN: Sonar – A tiny CLI to see and kill whatever's running on localhost”

“it doesn’t really include all the information that I like”

CriticizesComment from 20 Mar 2026 in “Show HN: Sonar – A tiny CLI to see and kill whatever's running on localhost”

“I kept running variations of lsof -i | grep LISTEN and then forgetting the flags the next time”

CriticizesComment from 10 Feb 2026 in “Show HN: Portview – a diagnostic-first port TUI (Rust, cross-platform)”

“is much more succinct with: lsof -i :443 -s TCP:ESTABLISHED”

RecommendsComment from 16 Jan 2026 in “psc: The ps utility, with an eBPF twist and container context”

“it's weird that both lsof and ss defaults are so awful”

CriticizesComment from 23 Dec 2025 in “Snitch – A friendlier ss/netstat”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.