Multiple commands per line (Bash)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

Commando's achter elkaar uitvoeren

Als je commando's scheidt met ;, worden ze achter elkaar uitgevoerd. Bv.:

mkdir blub; cd blub

of zonder spatie:

mkdir blub;cd blub

Condtioneel - als vorige commando is gelukt

&&

Condtioneel - OR

||

Commando's gelijktijdig uitvoeren

Nu wordt 't leuk: Commando's gelijktijdig uitvoeren! Dat doe je met &.

Bronnen