What does ls -d command stand for in linux terminal? 

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

Leave a Comment

tech