Summary

In this chapter, you learned several important topics relating to files and file permissions. Specifically, you examined:

  • Determining a file's type

  • Changing file and directory permissions using symbolic and octal notation

  • Enabling SUID and SGID permissions for files and directories

  • Changing the owner of a file or directory

  • Changing the group of a file or directory

As you will see in subsequent chapters, each of these tasks is important in shell scripts.

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition 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.