1746452158-Resource File
1746452158-Resource File
2ND WEEK
TOPIC: CAREER OPPORTUNITIES IN LINUX
Why Learn Linux?
Linux is a powerful, open-source operating system used in servers, cloud computing,
cybersecurity, software development, and DevOps. Many companies and
organizations depend on Linux to run their systems, which makes Linux skills highly
valuable in the tech industry.
2. DevOps Engineer
6. Cloud Engineer
3RD WEEK
Linux provides powerful commands to create, copy, move, rename, and delete files
and directories using the command line.
Create a File:
touch filename.txt
Create a Directory:
mkdir my_folder
Copy a File:
cp source.txt destination.txt
SS 1 - LINUX
Move a File:
mv old_location.txt new_location.txt
Rename a File:
mv oldname.txt newname.txt
🗑 Delete a File:
rm filename.txt
Example: rm oldfile.txt
pwd
SS 1 - LINUX
Change directory:
cd folder_name
Classroom Activity
Review Questions
4TH WEEK
TOPIC: Permissions in Linux (Controlling Access to Files with Linux File System
Permissions)
Linux uses a permission system to control who can read, write, or execute files and
directories. This helps protect files and maintain system security.
Each file and directory in Linux has three types of permissions for three categories of
users:
2. Types of Permissions
SS 1 - LINUX
ls -l filename
Example output:
Breakdown:
-rwxr-xr--
o -: Regular file
o rwx: Owner has read, write, and execute
o r-x: Group has read and execute
o r--: Others have read-only
r=4
w=2
x=1
Example:
chmod 755 script.sh
Breakdown:
Owner: 7 (rwx)
Group: 5 (r-x)
Others: 5 (r-x)
Practice Exercise
6TH WEEK
TOPIC: PROCESSES
What is a Process?
A process is any program or command that is currently running on your Linux system. Every
time you run a command, open an application, or start a background task, a new process is
created.
SS 1 - LINUX
1. Types of Processes
Type Description
Zombie A finished process that still has an entry in the process table.
2. Identifying a Process
ps
Example:
ps
Output:
4. Managing Processes
SS 1 - LINUX
Command Description
Practice Tasks
Review Questions
7TH WEEK
What is Partitioning?
Partitioning is the process of dividing a physical hard drive into separate sections, called
partitions. Each partition can be used for a specific purpose—like installing the operating system,
storing files, or creating swap space.
Think of a partition like a room in a house. The house is the hard drive, and each room (partition)
has a different function.
Types of Partitions
Type Description
Logical Inside an extended partition. Used when more than 4 partitions are needed.
Format a partition:
sudo mkfs.ext4 /dev/sdXn
Mount a partition:
sudo mount /dev/sdXn /mnt
Important Tips
Practice Task
Review Questions
SS 1 - LINUX
8TH WEEK
Understanding the key terms related to partitioning is essential before working with disks in Linux.
Below are common and important terms you’ll encounter:
Term Meaning
A section of a hard drive that acts as a separate unit (like a mini-
Partition
disk).
Disk The physical hard drive (e.g., /dev/sda) that holds partitions.
A directory in the file system where a partition is accessed (e.g.,
Mount Point
/home).
The method of organizing and storing files on a partition (e.g., ext4,
Filesystem
xfs).
MBR (Master Boot
Older partitioning scheme that supports up to 4 primary partitions.
Record)
GPT (GUID Partition Modern partitioning scheme supporting more partitions and larger
Table) disks.
Primary Partition The main partitions on an MBR disk (maximum of 4).
Extended Partition A type of primary partition that can hold logical partitions.
Partitions inside an extended partition (used when more than 4 are
Logical Partition
needed).
Swap Partition Space on the disk used as virtual memory when RAM is full.
Root Partition (/) The main Linux partition that contains the OS files.
Boot Partition (/boot) Contains bootloader files to start Linux.
Unmount Detaching a partition from the file system.
Creating a new filesystem on a partition, usually erasing all existing
Formatting
data.
Universally Unique Identifier for partitions, used to identify them
UUID
reliably.
Quick Tips
Classroom Activity
Open a terminal
Run lsblk to see available disks and partitions
Identify the root (/) and swap partitions
Review Questions
10TH WEEK
What is ACL?
Access Control List (ACL) is an advanced permission system in Linux that allows you to set
different permissions for multiple users or groups on the same file or directory — going
beyond the basic owner-group-others permission model.
The traditional Linux permissions (r, w, x) are limited. They only allow:
Enabling ACL
Most modern Linux filesystems like ext4 and xfs support ACL by default. To check if a partition
supports ACL, use:
ACL Commands
1. View ACLs:
getfacl filename
Example:
getfacl report.txt
2. Add ACL for a user:
setfacl -m u:username:permissions filename
Example:
Example Scenario
Imagine a project folder that multiple team members need access to:
mkdir /project
touch /project/plan.txt
Practices
Review Questions