Skip to main content
deleted 7 characters in body; edited tags; edited title
Source Link
nixda
  • 27.2k
  • 18
  • 111
  • 159

How to get a list List of recently changed files for a directory and all its subdirectories?

In Linux I know athis command to find and list the latest modified files in a directory with all its subdirectories which would be find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head.

find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head

Is there a Windows CLI equivalent?

How to get a list of recently changed files for a directory and all its subdirectories?

In Linux I know a command to find and list the latest modified files in a directory with all its subdirectories which would be find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head.

Is there a Windows CLI equivalent?

List of recently changed files for a directory and all subdirectories

In Linux I know this command to find and list the latest modified files in a directory with all its subdirectories.

find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head

Is there a Windows CLI equivalent?

Source Link
JohnnyFromBF
  • 5k
  • 19
  • 60
  • 74

How to get a list of recently changed files for a directory and all its subdirectories?

In Linux I know a command to find and list the latest modified files in a directory with all its subdirectories which would be find /var/www/ -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head.

Is there a Windows CLI equivalent?