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 ...
Get Korn Shell Programming by Example now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.