Say you're in a directory and you want to check something in another directory, so you type bash
to spawn a new shell so you can cd
and check that thing and then type exit
to get out and go back to the original shell still in that old directory.
Is there any way to keep both bashes running and switch between the two, sort of like Ctrl+Z + fg
/bg
?
screen
and create a new screen; usepushd
andpopd
, orcd -
– glenn jackman Mar 26 '14 at 18:08