I am using Windows and Ubuntu in parallel and do console stuff on both of them.
On Windows I can do a
However, on Linux this does not work, neither with backslashes nor with forward slashes.
21:17:10 $ cd../.. bash: cd../..: No such file or directory
Since I often make that mistake, I have tried to define an alias in
.bash_aliases for that situation:
alias cd../..='cd ../..' alias cd..\..='cd ../..'
When I start a new bash, I get
21:16:26 $ bash bash: alias: `cd../..': invalid alias name
How would I set up aliases for
cd..\.. seems to have problems with the escape character:
21:39:43 $ cd..\.. bash: cd....: command not found
It does not work, even if I define another alias for