3

FILE ATTRIBUTES AND PERMISSIONS

Chapter Objectives
  • Ownership of files
  • File attributes
  • File permissions and techniques of manipulating them
  • The type of a file based on its contents
  • Changing the owner and the group of a file—the chown and chgrp commands
  • Times associated with a file
  • Default file permissions—the umask command

Files constitute the central (an integral) part of all Unix operating systems. These files have many attributes associated with them. Some of these attributes are permissions, ownership, time of creation and handling. A list of all the attributes associated with a file along with their meanings are discussed in this chapter. This chapter also discusses some of the commands like ls, chmod, file, and others, using which ...

Get Introduction to Unix and Shell Programming 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.