Tuesday, 20 August 2019

How to get back to previous directory

Very often I need to "jump" back to previous directory. There is a form of cd command to allow this: 
#cd -

[root@rifle ~]# pwd
/root
[root@rifle ~]# cd /etc/postfix/
[root@rifle postfix]# pwd
/etc/postfix
[root@rifle postfix]# cd -
/root

No comments: