Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I had FSQL, I would write select size from directory1 order by date. But, I have a Windows and Cygwin. Windows Explorer can sort the items by date but it rounds the file sizes to much. So, I am looking for other options.

share|improve this question
up vote 2 down vote accepted

Since you have Cygwin, you can do this in the shell of a Cygwin terminal (mintty).

cd directory1
ls -lt

ls will list the files in the current directory, directory1. The -l option will use the long form for display, which includes file sizes, and the -t option will sort according to modification time. Use

man ls

to find more details on these and other options.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.