They are something called hard links, . is for the current directory (you can use this to execute files in the current directory: ./script.py
.. is a hard link to the parent directory, which explains why cd .. will go the the previous directory. I have no idea, thankfully we have man pages: man ls, which gives:
-s, --size
print the allocated size of each file, in blocks
So, it gives the filesize. If we combine this with the h flag (-h):
ls -sh
what does h do? From the man pages:
-h, --human-readable
with -l and/or -s, print human readable sizes (e.g., 1K 234M 2G)
Hello, thank you very much for your kind insights.
Suppose we have the following data structure:
Moon/Mars/Cabal
Mars contains: Rock.txt Mountain.txt
I am now on “/Mars”.
So: Where is the “.” and “…” here?
Again, to be double sure:
Is it correct when I say “Moon is the parent directory of Mars and Cabal”?
Is it also correct to say “Mars is the parent directory of Rock and Mountain”?