I am trying to chain the commands in linux, I am using ubuntu 14.04 distribution. The aim to create a directory and go into that directory. Generally we do this
mkdir foldername
cd foldername
Perfect, when tried this
mkdir gates
cd gates
works as expected. But things are not working as expected when using &
mkdir gates & cd gates
, does not work, the error is no such file or directory
. When pressed enter, it would create the directory gates in the next step. Why this is happening?. But ls & mkdir gates
seems to be working fine
;
instead of&
. Tested inzsh
. – alpha_989 Jul 26 '18 at 17:09