Forrest logo
back to the lsd tool

lsd:tldr:47e8d

lsd: List all files and directories in long format, sorted by modification date (oldest first).
$ lsd -ltr
try on your machine

The command "lsd -ltr" is a combination of two commands: "ls" and "d", with the flags "-ltr".

  1. "ls" is a command in Unix-like systems that lists the contents of a directory. By default, it shows the files and directories in the current working directory.

  2. The flag "-l" (long format) displays detailed information about each item, such as the file/directory permissions, owner, size, and last modified date.

  3. The flag "-t" (time-based sorting) sorts the items by their modification time, with the most recently modified appearing first.

  4. The flag "-r" (reverse order) reverses the sorting, showing the oldest modified item first.

So, when you run the command "lsd -ltr", it will list the contents of the current directory in the long format, sorted by modification time with the most recent items displayed last.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the lsd tool