# ls Command: Sort Directory Listings by Last Modified Date in Linux

DevFeed: [ls Command: Sort Directory Listings by Last Modified Date in Linux](<https://devfeed.tech/articles/ls-command-sort-directory-listings-by-last-modified-date-in-linux-118655.md>)

Original publisher: [Read original article](<https://www.tecmint.com/ls-sort-files-modification-date-time/>)

Author: Aaron Kili

Published: 2026-11-05T06:58:47Z

Content type: tutorial

Language: en

Sources: [Tecmint: Linux Howtos, Tutorials & Guides](<https://devfeed.tech/sources/tecmint-linux-howtos-tutorials-guides.md>)

Topics: [ls](<https://devfeed.tech/topics/ls.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Bash](<https://devfeed.tech/topics/bash.md>)

Tags: [almalinux](<https://devfeed.tech/tags/almalinux.md>), [archive](<https://devfeed.tech/tags/archive.md>), [backup](<https://devfeed.tech/tags/backup.md>), [backups](<https://devfeed.tech/tags/backups.md>), [bash](<https://devfeed.tech/tags/bash.md>), [btrfs](<https://devfeed.tech/tags/btrfs.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [command](<https://devfeed.tech/tags/command.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [commands](<https://devfeed.tech/tags/commands.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [coreutils](<https://devfeed.tech/tags/coreutils.md>), [directories](<https://devfeed.tech/tags/directories.md>), [directory](<https://devfeed.tech/tags/directory.md>), [disk-space](<https://devfeed.tech/tags/disk-space.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-commands](<https://devfeed.tech/tags/linux-commands.md>), [linux-commands-linux-ls-command](<https://devfeed.tech/tags/linux-commands-linux-ls-command.md>), [linux-ls-command](<https://devfeed.tech/tags/linux-ls-command.md>), [list-files-by-modification-time](<https://devfeed.tech/tags/list-files-by-modification-time.md>), [ls](<https://devfeed.tech/tags/ls.md>), [ls-ltr](<https://devfeed.tech/tags/ls-ltr.md>), [ls-output-sort-by-date-created](<https://devfeed.tech/tags/ls-output-sort-by-date-created.md>), [ls-sort-by-time-modified](<https://devfeed.tech/tags/ls-sort-by-time-modified.md>), [ls-sort-by-time-reverse](<https://devfeed.tech/tags/ls-sort-by-time-reverse.md>), [sort](<https://devfeed.tech/tags/sort.md>), [sort-ls-output-by-date](<https://devfeed.tech/tags/sort-ls-output-by-date.md>)

## AI overview

Use `ls -lt` to list entries newest first by modification time and add `-r` (`ls -ltr`) to put the newest last. The article explains that `-u` sorts by access time and `-c` by metadata change time; `--time=birth` uses creation time when the filesystem and kernel report it. Access-time ordering is approximate on systems using `relatime`, and `ctime` is not creation time. `--full-time` prints precise timestamps. For newest files across an entire directory tree, the article uses `find` with `-printf '%T+ %p\n'`, then `sort -r`; it notes that `ls` output is unsafe to parse when filenames are uncontrolled. It also mentions differing output details between Ubuntu's uutils `ls` and GNU coreutils, and that copy tools may preserve modification times.

## Source excerpt

The post ls Command: Sort Directory Listings by Last Modified Date in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides . A plain ls -l lists files alphabetically, so the file that changed five minutes ago gets lost in a long The post ls Command: Sort Directory Listings by Last Modified Date in Linux first appeared on Tecmint: Linux Howtos, Tutorials & Guides.