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

I am trying to get the information about the file modification on my local drive. There are two files in one directory whether one is modified or both the files are modified I dont know ?

I wanted to know is there any way to get this?

I used ls -lrt

It gives me the time information i.e. last modified time but i need change in size info as well

please help

share|improve this question

Unless you have a backup of those files prior to the time stamp that you already figured out, you can't. If you do have a backup you can compare the results of

echo $(( ` du -b file` - `du -b file2`))

... or if they are text based files, you can see what changed using

diff -urp file1 file2
share|improve this answer
And if you don't have a backup, now is a good time to start making regular backups. – RedGrittyBrick Jul 19 '12 at 9:35

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.