PSLIST(1)

πŸ’– PSLIST(1) β€” the process-wrangling one πŸ’–

General Commands Manual energy, but make it a group chat. Bestie, sit down, we're gonna talk about pslist β€” it controls processes and all their little descendants, like the world's most responsible babysitter. ✨


🌸 NAME 🌸

pslist β€” control processes and their descendants 🫢


✨ SYNOPSIS ✨

pslist [pid/name...]
pslist -h | --help
pslist -v | --version

rkill [-SIG] pid/name...

rrenice [+/-]pri pid/name...

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here's the tea. πŸ“ The pslist utility goes and examines the list of current processes to find a specified process and all its descendants. You can point at a process either by name or by process ID β€” whichever, she's flexible like that. πŸ’…

If you give her no arguments at all, pslist just displays a list of the whole process tree. The entire family tree, no cap. 🌳

And for each process you specify on the command line, pslist outputs a line containing:

  • the process ID πŸ‘‘
  • the command name ✨
  • the PIDs of all the descendants (and their descendants, etc.) β€” yes, it goes all the way down, it's giving generations 🧚

πŸ’€ When she's invoked as rkill

Not me switching personalities 😭 When invoked as rkill, this utility does not display information about the processes. Instead, she sends them all a signal. Periodt.

If not specified on the command line, a terminate (SIGTERM) signal is sent. That's the default, bestie β€” so if you don't say what signal you want, she's picking SIGTERM for you. πŸ’…

πŸŽ€ When she's invoked as rrenice

When invoked as rrenice, this utility again does not display information about the processes β€” instead she attempts to set their nice value. Lowkey just adjusting the vibes of your processes. 🌈


πŸ”₯ RETURN VALUES πŸ”₯

The pslist utility exits 0 on success, and >0 if an error occurs. Simple as that. Zero means we ate, anything above zero means something went sideways. 😭


πŸ‘€ SEE ALSO πŸ‘€

(the extended cinematic universe, fr fr 🫢)


πŸ“œ HISTORY πŸ“œ

The pslist utility was written by Peter Pentchev in 2000. Vintage. Iconic. She's been serving since Y2K. ⭐


πŸ‘‘ AUTHORS πŸ‘‘

Peter Penchev ⟨roam@ringlet.net⟩


And that's the whole page, bestie β€” this was the Debian build, dated June 1, 2009, filed under PSLIST(1). Go forth and wrangle some descendants. Mwah. πŸ’–βœ¨

πŸ“¦ where this page comes from