I was reading this question and started wondering what exactly ..
and .
that we can see in every directory means and how I could potentially add my own ...
that could mean for example parent of my parent directory or simply my home directory instead of ~
and if it is even possible to do that. I'm interested in Ubuntu but it is probably similar in every version of Linux since this feature is consistent across every platform I know.
Edit: thanks to everyone that wanted to help but I was not really interested in strictly substituting ...
into ../..
but the whole concept of .
and ..
being shown in every application and simply was wondering what it would take to implement my own symbols available for every script/application and above examples was the easiest way to explain it since both are familiar enough for most people.
...
to be equivalent to~
... since~
is 66% more efficient – Jaromanda X May 19 '23 at 11:33...
as../..
– Jaromanda X May 19 '23 at 11:35CD ...
which was equivalent toCD ..\..
andCD ....
wasCD ..\..\..
etc that wasn't just CD either by the way ...dosomething ....\filename
would use..\..\..\filename
- that wasn't a filesystem thing, that was the "shell" (cmd
) - so you could achieve what you want with your ownshell
– Jaromanda X May 19 '23 at 11:37...
when i typels
in console then I should get filesystem that support this behavior but if I want to get just this aliasing effect then i should look into changing how shell interprets...
into..\..
. Is that correct @JaromandaX ? – Arek Kubiński May 19 '23 at 11:43