Quick question:
Is it possible to use "mkdir" to make a new directory AND change to that directory at the same time using a single 'mkdir' command?
Whole question:
I have this question:
What single Linux “mkdir” command could replace the sequence of commands?
mkdir a
cd a
mkdir b
cd b
mkdir c
cd ../..
My answer is:
mkdir a b c && cd c
Is there a single "mkdir" command, without using any other commands, perhaps with some flags or something, I can use to make AND change directory at the same time?
mkdir
commands into a singlemkdir
command? If you understood the list of six commands (which, apparently, you don't), you would see that you end up in the top-level directory where you started. – G-Man Says 'Reinstate Monica' Nov 22 '18 at 07:41