4 ms·
< In MS-DOS, you can type a command like "cd.." to move up a level, and it will work fine. In Linux, it will not; you need to type "cd ..". The different is the
by TowerTall 1y ago
< In MS-DOS, you can type a command like "cd.." to move up a level, and it will work fine. In Linux, it will not; you need to type "cd ..". The different is the space in between.
That little detail is what I find most annoying when switching from Windows to Linux while having a life time of windows muscle memory in your fingers.
- pajko 1y agoYou might be able to create a shell alias named "cd.." or a short bash script "/usr/bin/cd.." with the appropriate content. Have no tried though.
- jmholla 1y agoA bash script won't work because it will run `cd ..` in a new process which won't affect the current shell. But, the following do work in bash: alias cd..="cd .." or this in your `.bashrc` or some file you source in your `.bashrc`: cd..() { cd .. }
- Shorel 1y agoThere are so many possible alias in Linux. Your can keep using all your muscle memory. If it is annoying, just change .bash_aliases