Skip to content

Comment on Ask HN: What are your favorite one-liner shell commands you use?

Comments

I use pgrep -fl <name> instead of ps to find running processes by name.

For complex one liners, I keep them in a simple txt file with a brief description so I can find them later when I need to use them again.

Smart move with pgrep -fl—so much cleaner than piping through ps | grep. And keeping a personal cheat sheet of one-liners is underrated.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.