Killall
Encyclopedia
killall is a command line utility available on Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....

 systems. There are two very different implementations.
  • The implementation supplied with genuine UNIX System V
    UNIX System V
    Unix System V, commonly abbreviated SysV , is one of the first commercial versions of the Unix operating system. It was originally developed by American Telephone & Telegraph and first released in 1983. Four major versions of System V were released, termed Releases 1, 2, 3 and 4...

     (including Solaris) and with the Linux
    Linux
    Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds...

     [ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/ sysvinit] tools (as killall5) is a particularly dangerous command that kills all processes that the user is able to kill, effectively shutting down the system if run by root.
  • The implementation supplied with the FreeBSD
    FreeBSD
    FreeBSD is a free Unix-like operating system descended from AT&T UNIX via BSD UNIX. Although for legal reasons FreeBSD cannot be called “UNIX”, as the direct descendant of BSD UNIX , FreeBSD’s internals and system APIs are UNIX-compliant...

     (including Mac OS X
    Mac OS X
    Mac OS X is a series of Unix-based operating systems and graphical user interfaces developed, marketed, and sold by Apple Inc. Since 2002, has been included with all new Macintosh computer systems...

    ) and Linux
    Linux
    Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds...

     psmisc tools is similar to the pkill
    Pkill
    pkill is a command-line utility initially written for use with the Solaris 7 operating system. It has since been reimplemented for Linux and some BSDs.As with the kill and killall commands, pkill is used to send signals to processes...

     and skill commands, killing only the processes specified on the command line.


Both commands operate by sending a signal
Signal (computing)
A signal is a limited form of inter-process communication used in Unix, Unix-like, and other POSIX-compliant operating systems. Essentially it is an asynchronous notification sent to a process in order to notify it of an event that occurred. When a signal is sent to a process, the operating system...

, like the kill
Kill (Unix)
In computing, kill is a command that is used in several popular operating systems to send signals to running processes, for example to request the termination of this process.-Unix and Unix-like:...

 program.

Example usage

Kill all processes (UNIX System V version)

killall


Kill the GNOME Display Manager
GNOME Display Manager
GDM provides a simpler to use alternative display manager for the X Window System's XDM.The X Window System by default uses the XDM display manager. However, resolving XDM configuration issues typically involves editing a configuration file. GDM allows users to customize or troubleshoot settings...




killall gdm


Kill the Dock (restarts) (Mac OS X
Mac OS X
Mac OS X is a series of Unix-based operating systems and graphical user interfaces developed, marketed, and sold by Apple Inc. Since 2002, has been included with all new Macintosh computer systems...

)

killall Dock


List all signals (FreeBSD/Linux version)

killall -l


Send the USR1 signal to the dd process (FreeBSD/Linux version)

killall -s USR1 dd


Kill a process which is not responding (FreeBSD/Linux version)

killall -9 dd


The numeric argument specifies a signal to send to the process. In this case, the command sends signal 9 to the process, which is SIGKILL
SIGKILL
On POSIX-compliant platforms, SIGKILL is the signal sent to a process to cause it to terminate immediately. The symbolic constant for SIGKILL is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms, however on the vast majority of...

, as opposed to the default SIGTERM
SIGTERM
On POSIX-compliant platforms, SIGTERM is the signal sent to a process to request its termination. The symbolic constant for SIGTERM is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms, however on the vast majority of systems,...

.

See also

  • List of Unix programs
  • Signals
    Signal (computing)
    A signal is a limited form of inter-process communication used in Unix, Unix-like, and other POSIX-compliant operating systems. Essentially it is an asynchronous notification sent to a process in order to notify it of an event that occurred. When a signal is sent to a process, the operating system...

  • pidof
    Pidof
    pidof is a Linux utility that returns the process identifier of a running process or processes. On other operating systems, pgrep and ps are often used instead....

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK