GNU – pushd/popd

This couple of commands are really helpful. It allows you to easily navigate through the system without having to repeat long paths. For example, imagine that you are in the directory /user/data/data2/home/ but want to change to other directory for a moment, say /etc ; you can do:

pushd /etc -> this will move to /etc and push our directory into the stack. After finish you job in /etc we can type:

popd -> this will bring us to the original directory


Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *