← All commands
Topic hub Text Processing
Windows Linux Text Processing Expanded guide Search

Windows dir /od (sort by date) equivalent in Linux

Locates files modified within a specific time window.

Windows dir /od (sort by date)
→
Linux equivalents
Debian/Ubuntu same command
find . -mtime -1
Fedora same command
find . -mtime -1
Arch same command
find . -mtime -1

Overview

What this command does

On Windows, "dir /od (sort by date)" is used to find recently modified files. On Linux, the closest practical mapping shown here is "find . -mtime -1". Locates files modified within a specific time window. This reference is grouped under Text Processing → Search.

Migration tip: <code>-mtime -1</code> means modified within the last 24 hours. <code>-mmin -60</code> means within the last 60 minutes. Positive numbers mean older than that many days.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows dir /od (sort by date) maps to find . -mtime -1 for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Practical tasks

Common use cases

Find recently modified files

Locates files modified within a specific time window.

find . -mtime -1

Modified in last 24 hours

find . -mtime -7

Modified in last 7 days

find . -mmin -60

Modified in last 60 minutes

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

find . -mtime -1 -type f
find /etc -mmin -30
ls -lt

Walkthrough

Examples with explanations

# Windows: dir /od

# Files changed in last 24 hours:
find . -mtime -1 -type f

# Changes in /etc in last 30 minutes:
find /etc -mmin -30

# List with newest first:
ls -lt

Reference

Common options and variations

Command or optionUse
find . -mtime -1Modified in last 24 hours
find . -mtime -7Modified in last 7 days
find . -mmin -60Modified in last 60 minutes
find . -newer file.txtNewer than a reference file
ls -ltList sorted by modification time (newest first)
ls -ltrSorted by modification time (oldest first)

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "find . -mtime -1" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command find . -mtime -1 Same command on this distribution.
Fedora same command find . -mtime -1 Same command on this distribution.
Arch same command find . -mtime -1 Same command on this distribution.

Keep learning

Related Text Processing commands