Bash - Exit Builtin command

Bash Liste Des Attaques Ovh


exit is a builtin command and cause the shell to exit with a given exit status.


exit [n]

If n is omitted,the exit status is that of the last command executed.

Post function

A function can be called on a EXIT before the shell terminates.

Example: by calling the exit function, the following finish function will run thanks to the registration of the function via the trap utility

function finish {
  # Your cleanup code here
trap finish EXIT

Documentation / Reference

Discover More
Bash Liste Des Attaques Ovh
Bash - Builtin Commands

builtin refers to: a builtin command. See or to the specific builtin command. See (useful when defining a function whose name is the same as a shell builtin) The builtin command execute the specified...
Bash Liste Des Attaques Ovh
Bash - Case

The case control statement execute commands based on regular expression pattern matching. Initscript example: Selectively execute COMMANDS based upon WORD matching glob PATTERN. The | is used to...
Bash Liste Des Attaques Ovh
Bash - Flow statement (Control Structure)

Bash - Flow statement (Control Structure) The words that control the flow of statement (ie condition and loop). help * * * * * * see * * ...
Bash Liste Des Attaques Ovh
Bash - process

This article is the bash Process. To see how to manage another general linux process, see The process running the command is created. The process inherits the stdin, stdout, and stderr from...
Bash Liste Des Attaques Ovh
How do you define an Anonymous Block of Code in Bash?

This page shows you how to define a block of code in bash The block syntax is: You can use the subshell syntax but you will not get any return status (meaning that you can't exit)
Process States
Signal in Operating System

Signal has been borrowed from the modeling of process and are used for process communication

Share this page:
Follow us:
Task Runner