Chapter 3. About files and the file system

Table of Contents

1. General overview of the Linux file system
1.1. Files
1.2. About partitioning
1.3. More file system layout
2. Orientation in the file system
2.1. The path
2.2. Absolute and relative paths
2.3. The most important files and directories
2.4. The most important configuration files
2.5. The most common devices
2.6. The most common variable files
3. Manipulating files
3.1. Viewing file properties
3.2. Creating and deleting files and directories
3.3. Finding files
3.4. More ways to view file content
3.5. Linking files
4. File security
4.1. Access rights: Linux's first line of defense
4.2. The tools
5. Summary
6. Exercises
6.1. Partitions
6.2. Paths
6.3. Tour of the system
6.4. Manipulating files
6.5. File permissions

Abstract

After the initial exploration in Chapter 2, Quickstart, we are ready to discuss the files and directories on a Linux system in more detail. Many users have difficulties with Linux because they lack an overview of what kind of data is kept in which locations. We will try to shine some light on the organization of files in the file system.

We will also list the most important files and directories and use different methods of viewing the content of those files, and learn how files and directories can be created, moved and deleted.

After completion of the exercises in this chapter, you will be able to:

  • Describe the layout of a Linux file system

  • Display and set paths

  • Describe the most important files, including kernel and shell

  • Find lost and hidden files

  • Create, move and delete files and directories

  • Display contents of files

  • Understand and use different link types

  • Find out about file properties and change file permissions