What is .
and ..
in Unix/Linux ?
I’m making a confusion here: the ..
(dots) means one dot for the current directory and one dot for the parent directory? That why cd ..
goes back one above? From the current to one up?
And also why the one dot and two dots is displayed this way: .
..
current
directory and one up? It makes more sense to me like this: ..
.
one up, current directory, then the files and directories…
Please explain me this a bit more.
ls -a
sorts directory entries in lexical order (dependent on the locale's collation order). So.
comes before..
. Aftertouch + .+
, you'll likely see thatls -a
shows+ . .+ ..
as+
often sorts before.
– Stéphane Chazelas Jan 19 '24 at 06:55It makes more sense to me like this:
why? and why is it an issue? – Jaromanda X Jan 19 '24 at 07:42