parallel-nuke(1)
π parallel-nuke β the manual, but make it make sense π
okay so bestie, welcome to the General Commands Manual page for parallel-nuke, and no, it's not about your group chat after a fight β it's about killing processes on a whole bunch of hosts at the same time. we're in the General Commands Manual section, and I'm gonna walk you through every single flag because you deserve the full tea. π«Ά
β¨ NAME β¨
parallel-nuke β parallel process kill program π
fr fr that's it. it's the group-chat mass-remove but for processes, across hosts, in parallel.
β¨ SYNOPSIS β¨
parallel-nuke [-vA] [-h hosts_file] [-H [user@]host[:port]] [-l user]
[-p par] [-o outdir] [-e errdir] [-t timeout] [-O options] [-x args] [-X
arg] pattern
like... look at her. she's got a pattern at the end and everything. that's the main character move. π
β¨ DESCRIPTION β¨
parallel-nuke is a program for killing processes in parallel on a number of hosts. πβ¨
it provides features such as passing a password to ssh, saving output to files, and timing out. that's the whole vibe. it does the thing, on many machines, at once, and it's lowkey iconic for it.
β¨ OPTIONS β¨
every single one, in order, no skips, no skimming. bestie behaviour only. π
-hhost_file,--hostshost_file β read hosts from the given host_file. lines in the host file are of the form[user@]host[:port]and can include blank lines and comments (lines beginning with"#"). if multiple host files are given (the-hoption is used more than once), thenparallel-nukebehaves as though these files were concatenated together. and if a host is specified multiple times, thenparallel-nukewill connect the given number of times. yes, multiple times. it's thorough like that. π-H[user@]host[:port],--host[user@]host[:port],-H"[user@]host[:port] [ [user@]host[:port ] ... ]",--host"[user@]host[:port] [ [user@]host[:port ] ... ]"β add the given host strings to the list of hosts. this option may be given multiple times, and may be used in conjunction with the-hoption. so yes, you can stack them. it's giving options on options. π-luser,--useruser β use the given username as the default for any host entries that don't specifically specify a user. the fallback bestie. π«Ά-pparallelism,--parparallelism β use the given number as the maximum number of concurrent connections. that's your "how many people can be in the call at once" number.-ttimeout,--timeouttimeout β make connections time out after the given number of seconds. with a value of0,parallel-nukewill not timeout any connections. zero means never, so like, choose wisely. π-ooutdir,--outdiroutdir β save standard output to files in the given directory. filenames are of the form[user@]host[:port][.num]where the user and port are only included for hosts that explicitly specify them. the number is a counter that is incremented each time for hosts that are specified more than once. so repeat offenders get a cute lil.numsuffix. π-eerrdir,--errdirerrdir β save standard error to files in the given directory. filenames are of the same form as with the-ooption. same energy, different stream. β¨-xargs,--extra-argsargs β passes extra SSH command-line arguments (see thessh(1)man page for more information about SSH arguments). this option may be specified multiple times. the arguments are processed to split on whitespace, protect text within quotes, and escape with backslashes. to pass arguments without such processing, use the-Xoption instead. ok so-xis the β¨processedβ¨ one, remember that, it matters. π§-Xarg,--extra-argarg β passes a single SSH command-line argument (see thessh(1)man page for more information about SSH arguments). unlike the-xoption, no processing is performed on the argument, including word splitting. to pass multiple command-line arguments, use the option once for each argument. she's raw. she's literal. she's not gonna touch your string. π-Ooptions,--optionsoptions β SSH options in the format used in the SSH configuration file (see thessh_config(5)man page for more information). this option may be specified multiple times. stack it, bestie. πΈ-A,--askpassβ prompt for a password and pass it to ssh. the password may be used for either to unlock a key or for password authentication. the password is transferred in a fairly secure manner (e.g., it will not show up in argument lists). however, be aware that a root user on your system could potentially intercept the password. π¨
okay so real talk on that last one: it's fairly secure, not magically secure. if root wants your password, root can get your password. that's the caveat, don't skip it. π
-v,--verboseβ include error messages from ssh with the-iand-eoptions. yes, exactly those options, character for character. π
β¨ TIPS β¨
the ssh_config file can include an arbitrary number of Host sections. each host entry specifies ssh options which apply only to the given host. Host definitions can even behave like aliases if the HostName option is included. this ssh feature, in combination with parallel-ssh host files, provides a tremendous amount of flexibility. it's giving β¨build systemβ¨, it's giving β¨infrastructureβ¨, it's giving you're gonna love it actually. π¦
internally uses the pkill command and sends signal 9 (the unblockable KILL signal). π₯
signal 9 is the one you can't catch, can't block, can't ignore. that's why the program is called nuke. no cap. β’οΈ
β¨ EXIT STATUS β¨
the exit status codes from parallel-nuke are as follows:
0β Success β1β Miscellaneous error π2β Syntax or usage error π3β At least one process was killed by a signal or timed out. π4β All processes completed, but at least onesshprocess reported an error (exit status255). π5β There were nossherrors, but at least one remote command had a non-zero exit status. π
β¨ AUTHORS β¨
written by Brent N. Chun <bnc@theether.org> and Andrew McNabb <amcnabb@mcnabbs.org>. absolute icons, both of them. π
https://github.com/lilydjwg/parallel-ssh
β¨ SEE ALSO β¨
and that's the whole page, bestie!! π this one comes to you from the General Commands Manual and it's dated January 24, 2012, so yes, she's an elder but she still ate. go forth, pkill responsibly, and remember: signal 9 does not do negotiations. periodt. πβ¨π
π¦ where this page comes from
- debian bookworm: pssh 2.3.4-2 Β· BSD-3-Clause
- debian trixie: pssh 2.3.5-2 Β· BSD-3-Clause
- ubuntu jammy: pssh 2.3.4-2 Β· BSD-3-Clause
- ubuntu noble: pssh 2.3.5-2 Β· BSD-3-Clause
- ubuntu questing: pssh 2.3.5-2
- ubuntu resolute: pssh 2.3.6-1 Β· BSD-3-Clause
- ubuntu stonking: pssh 2.3.6-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms