“shopt -s cdspell” : Automatically correct mistyped directory names on cd
Use shopt -s cdspell to correct the typos in the cd command automatically asshown below. $ cd /var/vmall-bash: cd: /var/vmall: No such file or directory$ shopt -s cdspell$ cd /var/vmall$ pwd/var/vmailHere actually i mistyped ‘vmail’ as ‘vmall’. Enjoy! ————————————————————————— The GNU/Linux Advanced Administration: In this ebook “The GNU/Linux Operating System”, the main contents are related
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
Read More