Cyber Security  ·  Level 5
Install And Configure Linux
Chapter 3: Manage File systems and storage
📚 4 Topics
⚑ What you will be able to do

By the end of this chapter, you will be able to:

  • correctly create and mount disk partitions without any mounting errors
  • format file systems such as ext4 and XFS, and verify their integrity using tools like fsck
  • accurately monitor storage space usage and set up alerts to notify when usage exceeds 90% capacity

Mastering these skills will help you keep Linux systems running smoothly and prevent unexpected storage issues in real-world workplaces.

Linux file system management is a critical skill for cyber security professionals in Kenya, particularly when securing servers and workstations that run Linux-based operating systems. Understanding the Linux file system hierarchy and managing disk storage effectively enables professionals to implement robust security measures, optimize system performance, and ensure data integrity. This chapter focuses on the structure of Linux file systems, the essential commands for disk partitioning and formatting, and how to visualize storage devices, all within the context of safeguarding digital assets in organizations such as county governments, banks, and healthcare institutions.

3.1 Understanding Linux file system hierarchy

Linux uses a hierarchical file system structure that organizes files and directories in a tree-like format starting from the root directory. This structure is fundamental for system administration and security because it defines where files reside and how permissions are applied. Cyber security professionals must master this hierarchy to protect sensitive data, configure access controls, and troubleshoot system issues effectively.

3.1.1 Key directories and their functions

The Linux file system contains several standard directories, each serving specific purposes that support system operation and security. Cyber security experts must be familiar with these directories to manage permissions and monitor security-relevant files.

/ (Root Directory)

The root directory is the top-level directory in the Linux file system hierarchy. It contains all other directories and files. Protecting the root directory is vital because unauthorized changes here can compromise the entire system.

/bin (Essential User Binaries)

This directory contains essential executable programs needed for basic system operation, such as commands like ls, cp, and mv. Cyber security professionals must ensure binaries here are not tampered with to prevent malware execution.

/etc (Configuration Files)

The /etc directory holds system-wide configuration files, including network settings, user account information, and security policies. Securing /etc is crucial because attackers often target configuration files to escalate privileges or maintain persistence.

/var (Variable Data)

/var stores files that change frequently, such as logs, mail spools, and temporary files. Monitoring /var/log is a standard practice in cyber security for detecting suspicious activities and auditing system events.

/home (User Home Directories)

Each user has a directory under /home for personal files and settings. Proper permission settings here prevent unauthorized access to user data, which is essential in environments like banks and universities where data privacy is critical.

/usr (User Programs and Data)

This directory contains user applications and utilities. It is often mounted as a separate partition to protect system stability and security. Cyber security teams must verify software integrity in /usr to avoid malicious code execution.

/tmp (Temporary Files)

/tmp is used for temporary file storage by applications and users. Since it is world-writable, it is a common target for attacks such as symlink races, so setting appropriate permissions and mount options is a recommended security practice.

/lib (Shared Libraries)

This directory contains shared libraries needed by programs in /bin and /sbin. Protecting /lib ensures that executable programs have trusted libraries, preventing the system from running malicious code.

/sbin (System Binaries)

/sbin contains essential system binaries used primarily by the system administrator for system maintenance tasks. Restricting access to /sbin commands is important to prevent unauthorized system changes.

Practice Questions

  1. Explain why securing the /etc directory is critical for maintaining system security in a county government server. (5 marks)
  2. List and describe the functions of five key directories in the Linux file system. (10 marks)
  3. How does the structure of the Linux file system hierarchy support effective permission management? (5 marks)
The rest of this chapter
🔒

Create a free account to open more of this chapter.

Free: practical guides, quick cards, workplace scenarios and more.

Create a free account
🔒3.2 Disk Partitioning and Formatting

Disk partitioning and formatting are foundational tasks for managing storage in Linux environments. Cyber security professionals must partition disks to isolate sensitive data, improve system performance, and implement secure backup strategies. Proper formatti…

🔒3.3 Mounting and Unmounting File Systems

In Linux environments used for cybersecurity operations in Kenya, managing file systems by mounting and unmounting is a fundamental skill. Cybersecurity professionals must ensure that storage devices are correctly integrated into the system to access data secu…

🔒3.4 Logical Volume Manager (LVM)

Logical Volume Manager (LVM) provides a flexible and advanced method of managing disk storage in Linux systems, which is vital for cybersecurity professionals managing large volumes of encrypted data or forensic evidence in Kenya’s financial sector or healthca…

Chapter Summary

This chapter provided a comprehensive overview of managing file systems and storage in Linux environments. It began by explaining the Linux file system hierarchy, emphasizing the roles and functions of key directories essential for system organization and operation. The discussion then advanced to disk partitioning and formatting, detailing the use of commands such as fdisk for partition management, mkfs for creating file systems, and lsblk for listing block devices. Following this, the chapter covered the processes of mounting and unmounting file systems, distinguishing between manual mounts for temporary access and persistent mounts that ensure file systems are available after system reboots. The concept of Logical Volume Manager (LVM) was introduced, including the creation and management of logical volumes to allow flexible storage allocation. Finally, the chapter explored RAID configuration as a method for improving data redundancy and performance in storage systems. Together, these topics equip students with the foundational skills required to effectively manage Linux storage solutions.

Self-Assessment

🔒 PDFDownload this self-assessment, with answers

A. Written Assessment

  1. Which directory in the Linux file system hierarchy contains essential system binaries required for booting and repairing the system? (2 marks)
  2. Explain the purpose of the /etc directory in Linux and why it is critical for system security. (3 marks)
🔒20 more in this section.

Chapter Examination Questions

🔒 PDFDownload these examination questions, with worked answers

SECTION A (40 Marks) - Answer ALL Questions

  1. Explain the significance of the /etc directory in a Linux system used for cyber security applications at a county government data centre. (4 marks)
  2. Describe the purpose of the fdisk command and how it is applied in disk partitioning for securing server storage. (4 marks)
🔒18 more in this section.
Flashcards 20 cards Study deck ▾
Question
1

↻ Tap card to reveal answer
🔒

18 more in this section.

Create a free account
Test Yourself 17 questions Start quiz ▾
0%
0 / 2
🔒

15 more in this section.

Create a free account
Am I competent?

At the start of this chapter we promised you would be able to:

  • correctly create and mount disk partitions without any mounting errors
  • format file systems such as ext4 and XFS, and verify their integrity using tools like fsck
  • accurately monitor storage space usage and set up alerts to notify when usage exceeds 90% capacity

Tick each one you can genuinely do.

So, are you there yet?

You're competent when you can confidently do 50% or more of what this chapter promised.

Sign in to record how you're doing.