file modification time

To get the access|modification|change time of a file, one could use stat to get the data. For example:

$ stat -c %y ~/.bash_aliases 2010-02-20 17:12:31.161203715 +0100

Of course, this can be easily cutted to get only the date:

$ stat -c %y ~/.bash_aliases | cut -d' ' -f1 2010-02-20

0 Kommentare:

Kommentar veröffentlichen