In Linux (or generally, UNIX-like systems), all directories contain the entries:
.
is the relative reference to the current directory..
is the relative reference to the parent directory
Since you’re adding the -d
flag, it’ll list the directory itself, not its content. See ls --help
:
-d
list directory entries instead of contents, and do not dereference symbolic links