Comandos de la terminal/true

De WikiCabal
Saltar a: navegación, buscar

true

[rrc@Llawyr ~]$ hola
bash: hola: command not found
[rrc@Llawyr ~]$ echo $?
127

[rrc@Llawyr ~]$ true
[rrc@Llawyr ~]$ if [  $? == 0 ]; then echo Verdad; else echo falso;fi
Verdad