Skip to main content

Posts

Showing posts with the label cd

Try to navigate up the directory using cd followed by consecutive dots

In the below example i have show how to navigate up to level 5 using cd......(cd followed by 6 dots). Here a single dot represents the current directory, 2 dot means 1 level up, 3 dots means 2 level up and so on.. Add the following alias. $ alias cd..="cd .." $ alias cd...="cd ../.." $ alias cd....="cd ../../.." $ alias cd.....="cd ../../../.." $ alias cd......="cd ../../../../.." Now use cd.... to navigate upto level 3. Add more alias if you need. Enjoy! thanks to linuxhacks.