Possible to execute two or more than two commands at the same time

shell

Is it possible to pass two command at the same time in a linux shell?
For example,
Instead of writing commands in this way,

root# cd Python-2.6.6
Python-2.6.6# ./configure

I want something like this to execute whole command in one line;

root# cd Python-2.6.6 ./configure

That is, while being in root, i want to change the directory and configure python file..

Best Answer

Use an appropriate command separator.

cd Python-2.6.6 && ./configure
Related Topic