3 ms·in Bash you don't even need to do that, just do: foo=/etc/ cd $fooby iuguy 16y agoin Bash you don't even need to do that, just do: foo=/etc/ cd $foo