I just know that ls -t
and ls -f
give different sorting of files and subdirectories under a directory.
- What are the differences between timestamp, modification time, and created time of a file?
- How to get and change these kinds of information by commands?
- In terms of what kind of information do people say a file is "newer" than the other?
- What kinds of information's change will not make the file different?
For example, I saw someone wrote:
By default, the rsync program only looks to see if the files are different in size and timestamp. It doesn't care which file is newer, if it is different, it gets overwritten. You can pass the '--update' flag to rsync which will cause it to skip files on the destination if they are newer than the file on the source, but only so long as they are the same type of file. What this means is that if, for example, the source file is a regular file and the destination is a symlink, the destination file will be overwritten, regardless of timestamp.
On a side note, does the file type here mean only regular file and simlink, not the type such as pdf, jpg, htm, txt etc?