Programs in linux can be run as daemon by using &. But sometimes after the shell is closed, the process is also killed.
Here comes the usage of disown.
- In the Unix shells ksh, bash, fish and zsh, the disown builtin command is used to remove jobs from the job table, or to mark jobs so that a SIGHUP signal is not sent to them if the parent shell receives it (e.g. if the user logs out).
So when shell is closed, the process will not received the SIGHUP signal, which means they are kept alive.
./bin/kibana & disown