[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: is kill 0 to be used to terminate the current script

From: Jeffrey Walton
Subject: Re: is kill 0 to be used to terminate the current script
Date: Tue, 21 Mar 2023 11:26:14 -0400

On Tue, Mar 21, 2023 at 8:27 AM alex xmb ratchev <> wrote:
> On Tue, Mar 21, 2023, 12:58 Greg Wooledge <> wrote:
>> [...]
> >        The  kill()  system  call can be used to send any signal to any
> > process
> >        group or process.
> > [...]
> these two i halfway got
> never seen , must be .c manual

`man -k` searches the man pages:

   $ man -k kill
   choom (1)            - display and adjust OOM-killer score.
   kill (1)             - send a signal to a process
   kill (2)             - send signal to a process

There are two sections of the manual that explain `kill`: 1 and 2.

`man man` tells you what the sections are:

   $ man man

       The table below shows the section numbers of the manual followed by the
       types of pages they contain.

       1   Executable programs or shell commands
       2   System calls (functions provided by the kernel)
       3   Library calls (functions within program libraries)
       4   Special files (usually found in /dev)
       5   File formats and conventions, e.g. /etc/passwd
       6   Games
       7   Miscellaneous (including  macro  packages  and  conventions),  e.g.
           man(7), groff(7)
       8   System administration commands (usually only for root)
       9   Kernel routines [Non standard]

So kill(1) is the program, and kill(2) is the system call.

Next, you can `man 1 kill`  for the program's man page:

   $ man 1 kill
   KILL(1)                          User Commands

       kill - send a signal to a process

       kill [options] <pid> [...]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]