Take a peek behind the curtain with this informative and configurable utility.
![]() ![]() The inode holds metadata about the file, such as which filesystem blocks it occupies, and the date stamps associated with the file. Once you have discovered a particular set of options that make stat give you the output that you want, wrap it in an alias or shell function. This makes it much more convenient to use, and you dont have to remember an arcane set of command-line options. Usually, it is the same as the name we passed to stat on the command line, but It can be different if were looking at a symbolic link. The most common types are files and directories, but they can also be links, sockets, or named pipes. Together, the inode number and the device number uniquely identify a file. So another way to think about this figure is how many inodes point to this one file. Each time a hard link is created or deleted, this number will be adjusted up or down. When it reaches zero, the file itself has been deleted, and the inode is removed. If you use stat on a directory, this number represents the number of files in the directory, including the. Stat Transfer Version 11 Update The AccessModern Linux distributions use a scheme called relatime, which tries to optimize the hard drive writes required to update the access time. Simply put, the access time is updated if it is older than the modified time. This is the time when files contents were last modified. As luck would have it, the contents of this file were last changed four years ago to the day.). This is the time the files attributes or contents were last changed. If you modify a file by setting new file permissions, the change timestamp will be updated (because the file attributes have changed), but the modified timestamp will not be updated (because the file contents were not changed). The -0500 at the end of each line shows that this file was created on a computer in a Coordinated Universal Time (UTC) timezone that is five hours ahead of the timezone of the current computer. So this computer is five hours behind the computer that created this file. In fact, the file was created on a UK timezone computer, and were looking at it here on a computer in the US Eastern Standard time zone. This wont affect the contents of the file, but it will affect the attributes of the file. The change timestamp is updated for both content changes and attribute changes. The question mark represents any single character, and the asterisk represents any string of characters.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |