Multiple commands per line (Bash)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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