Chapter 8
Security Monitoring and Logging
Section 4
Using System Tools – stat
While working on Linux, the most commonly used command is ls, which gives a listing of the files in the directory we specified. However, it shows only a little information about the files. Instead, if we use the stat command, we can get more information about the files/ directories when compared to using ls. - Use ls – l command to perform a long-listing of the file - Use the stat command to check the details of the directories - Use the -f option with the stat command