diff --git a/manuscript/chapter19.txt b/manuscript/chapter19.txt index f575993..c903ef0 100644 --- a/manuscript/chapter19.txt +++ b/manuscript/chapter19.txt @@ -186,5 +186,16 @@ ls command ls ``` - +## Run a command in the background +This will run the given command and keep it running even after the terminal is closed. + +```sh +bkr() { + (nohup "$@" &>/dev/null &) +} + +bkr ./some_script.sh # some_script.sh is now running in the background +``` + +