Comandos de la terminal/exit

De WikiCabal
Ir a la navegación Ir a la búsqueda

exit

[rrc@Llawyr ComandosDeLaTerminal]$ which exit
which: no exit in (/usr/local/bin:/usr/bin:/usr/games:/usr/lib64/qt4/bin:/home/rrc/bin)

[rrc@Llawyr ComandosDeLaTerminal]$ cat Leave2
#!/usr/bin/bash

echo "Me voy"
exit 13

[rrc@Llawyr ComandosDeLaTerminal]$ ./Leave2
Me voy

[rrc@Llawyr ComandosDeLaTerminal]$ echo $?
13

[rrc@Llawyr ComandosDeLaTerminal]$ exit