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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.