Question: How can I know all that attributes de archive available? I mean, I would like to know traditional about a file or directory than what the command Ls -l sample. |
Answer: Everything in Unix is files. This includes devices, directories, etc .; in short, everything. Hence the importance of the stats command as it shows the complete status of the file or file system.
For example, to get more information about the log.txt file, run the stat command as shown below.
statlog.txt
The result will be something similar to the following:
File: `/home/youruser/log.txt '
Size: 854 Blocks: 8 IO Block: 4096 regular file
Device: 801h / 2049d Inode: 1058122 Links: 1
Access: (0600 / -rw -------) Uid: (1000 / sathiya) Gid: (1000 / sathiya)
Access: 2009-06-28 19:29:57.000000000 +0530
Modify: 2009-06-28 19:29:57.000000000 +0530
Change: 2009-06-28 19:29:57.000000000 +0530
I like it very useful, thank you very much 😀
Thanks for the tip!
Interesting one more command for my list!
Thank you! 🙂
thanks ..!!!