Attributes
Each file has attributes associated with it to describe its characteristics. Some attributes are ownership, group ownership, permissions, type of file, and link count. Oh, that's the stuff from the inode! Yes. The inode contains the file's attributes. Some attributes are more shell-oriented than file- oriented, yet they control the behavior of file activities. All of us have had the UNIX file clobber experience. You know, when you inadvertently name a new file the same as an existing file on a redirection. 'Fess up. We've all done that, much to our chagrin.
The following example shows the existence of a 629-byte file named stats, followed by a redirection that clobbers the file and then replaces the file contents with the output of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access