ls and the several times associated with a file.
Hi:
ls in its man page mentions several times, e.g., ctime. What are the times ls has something to do with? Thanks. |
Files in Unix have three time fields: change time, access time and modify time. You can pass parameters to ls to sort the file list based on one of the time fields.
From the ls manpage: Code:
-c with -lt: sort by, and show, ctime (time of last modification of file Code:
-t sort by modification time Code:
-u with -lt: sort by, and show, access time with -l: show access time and |
This brings about another question. What is ctime? It says "time of last modification of file status information", which I do not understand.
|
have a look at:
Code:
man 2 stat |
Quote:
|
Awesome. I was changing ctime all the time without really modifying the file itself when I did chmod or chown! Thanks.
|
All times are GMT -5. The time now is 05:42 AM. |