The stat command shows the information on the inode for that file and the data shown is very similar to the ls command. One big difference is the ls command only shows one date and the stat command shows three dates. The Access date-time, the Modify date-time, and the Change date-time. The ls command shows the modified date and time.
The modified datetime is the last time that file was updated. The Change time and date can be updated by modifying the file permissions. The Access date and time are updated when a file is modified or the first time that file is accessed after an update. Updates to the /etc/fstab file will need to be made to have the Access date and time updated every time the file is accessed as shown in the video.
The output of the stat command can be formatted and examples of how to do that are shown in the video.
See the complete LCL playlist at: [ Ссылка ]
Website link:
[ Ссылка ]
Ещё видео!