Forrest logo
back to the find tool

find:ai:3e759

find . -maxdepth 1 -type d -ls | sort -k8M -k9n -k10n
$ find . -maxdepth 1 -type d -ls | sort -k8M -k9n -k10n
try on your machine

This command finds all directories in the current directory (excluding subdirectories) and lists them in order of the month they were last modified, then by day, then by time.

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.

Questions that are answered by this command:

  • find . -maxdepth 1 -type d -ls | sort -k8M -k9n -k10n?
back to the find tool