I was wondering if there was a way to navigate back to the previous folder after a 'cd'.
e.g.
~/ cd /home/
~/ cd /usr/local/
~/ want should I write here to return to the home dir (not 'cd /home' ^^)
Any suggestions?
|
I was wondering if there was a way to navigate back to the previous folder after a 'cd'. e.g.
Any suggestions? | |||||||||
feedback
|
|
If you're using bash or some similar shell you can use
| |||
|
feedback
|
|
The pushd/popd utilities keep a stack of the directories that you have visited.
The downside is that you need to remember to use | |||
|
feedback
|