1.

Solve : executing two commands on one line?

Answer»

i know this MAY sound pretty dumb, but how do I EXECUTE two commands on ONE line?
thanks for your helpThere are few ways, don't know which one suits you
1) use ;
CODE: [Select] cd /somedir; ls

2) use &&
Code: [Select] cd /somedir && ls
NB In the second example above, the second command (ls) will only execute if the FIRST command succeeds.



Discussion

No Comment Found