Class 11 | Linux | Operating System Notes

UNIT 6
Class 11 Operating System Linux

Linux Operating System

Original Scanned PDF – View Notes

01

Introduction to Linux

  • Linux is an open-source, Unix-like operating system.
  • It is known for stability, security, flexibility and performance.
  • Linux is widely used on servers, desktop computers, embedded systems, supercomputers and mobile devices.
  • It supports multitasking, multiple users, networking and a hierarchical file system.
02

History of Linux

  • Linux was started by Linus Torvalds while he was a student at the University of Helsinki.
  • It was inspired by Unix-like systems and was developed as a freely available operating system kernel.
  • Over time, developers around the world contributed to Linux and many Linux distributions were created.
03

Features of Linux

Multiuser

Multiple users can use the resources of a Linux system.

Multitasking

Linux can run many programs and processes at the same time.

Open Source

The source code is available and can be studied, modified and distributed.

Portable

Linux can run on many different hardware platforms and processor architectures.

Secure

User accounts, file ownership and permissions help protect the system.

Networking

Linux includes strong networking tools and is widely used for server systems.

04

Linux Architecture

A Linux system can be understood as a layered structure consisting of hardware, kernel, shell and applications.

Linux architecture showing Hardware, Kernel, Shell and Applications Applications Shell Linux Kernel Hardware
Fig: Basic Linux architecture

Hardware

Physical components such as CPU, memory, storage, network devices and input/output devices.

Kernel

The core part of Linux that manages system resources and communicates with hardware.

Shell

The command interpreter that provides an interface between the user and the kernel.

Applications

User programs and system programs that use services provided by the operating system.

05

Linux Kernel

The Linux kernel is the core component of the Linux operating system. It manages the hardware and provides services required by programs.

Main Functions of the Kernel

  • Process Management: controls processes and CPU scheduling.
  • Memory Management: manages RAM and virtual memory.
  • Device Management: communicates with devices through device drivers.
  • File System Management: manages files, directories and storage.
  • System Calls: provides a controlled interface through which applications request operating system services.
  • Security: controls access to system resources.
06

Linux Distributions

A Linux distribution is a complete operating system built around the Linux kernel together with utilities, libraries, package-management tools and applications.

DistributionCommon Use
UbuntuDesktop, education and server use
DebianStable general-purpose systems and servers
FedoraDesktop and newer Linux technologies
Red Hat Enterprise LinuxEnterprise servers
CentOS / compatible enterprise distributionsServer environments
Kali LinuxSecurity testing and cybersecurity learning
07

Linux File System

  • Linux uses a hierarchical file-system structure.
  • The topmost directory is called the root directory and is represented by /.
  • Files, folders and devices are organized under the root directory.
  • Linux commonly uses file systems such as ext4, XFS and Btrfs.
08

Important Linux Directories

DirectoryPurpose
/Root of the Linux file system.
/homeContains personal directories of normal users.
/rootHome directory of the root user.
/binContains essential user commands and executable files.
/etcContains system configuration files.
/usrContains user applications, libraries and shared files.
/varContains variable data such as logs and spool files.
/tmpStores temporary files.
/devContains device files.
/bootContains files required for the boot process.
/mediaUsed as a mount point for removable media.
/mntCommonly used for temporary manual mounting.
09

Basic Linux Commands

CommandFunctionExample
pwdShows the present working directory.pwd
lsLists files and directories.ls -la
cdChanges the current directory.cd /home
mkdirCreates a new directory.mkdir notes
rmdirRemoves an empty directory.rmdir notes
touchCreates an empty file or updates a file timestamp.touch file.txt
cpCopies files or directories.cp a.txt b.txt
mvMoves or renames files and directories.mv old.txt new.txt
rmRemoves files.rm file.txt
catDisplays file contents.cat file.txt
clearClears the terminal screen.clear
manDisplays the manual page of a command.man ls
10

Linux File Permissions

Linux controls access to files and directories using permissions.

r Read
w Write
x Execute

Permissions are normally defined for three categories:

  1. User / Owner
  2. Group
  3. Others

Example: rwxr-xr--

The owner has read, write and execute permission; the group has read and execute permission; others have read permission only.

The chmod command is used to change file permissions.

11

User and Group Management

Linux is a multiuser operating system. Different users can have separate accounts, passwords, files and permissions.

CommandPurpose
useraddCreate a user account.
userdelDelete a user account.
passwdSet or change a password.
groupaddCreate a group.
whoamiDisplay the current user name.
12

Process Management in Linux

  • A running program is called a process.
  • Each process has a unique Process ID (PID).
  • Linux can run foreground and background processes.
  • Process-management commands help users view, monitor and stop processes.
CommandFunction
psShows process information.
topDisplays running processes and system activity.
killSends a signal to a process, commonly to terminate it.
niceStarts a process with a selected scheduling priority.
13

Package Management

Linux distributions use package managers to install, update and remove software.

  • Debian and Ubuntu commonly use apt.
  • Fedora commonly uses dnf.
  • Red Hat based systems may use dnf or older yum tools.
  • Arch Linux uses pacman.
14

Shell and Shell Scripting

  • The shell is a command interpreter and interface between the user and the Linux kernel.
  • Common shells include Bash, Zsh and Sh.
  • A shell script is a file containing a sequence of commands that can be executed automatically.
  • Shell scripts are commonly used to automate repetitive system tasks.
15

Networking in Linux

Linux provides strong networking support and is widely used for web servers, database servers, cloud systems and network services.

CommandUse
ipView and manage network interfaces and routes.
pingTest network connectivity.
sshConnect securely to a remote system.
scpCopy files securely between systems.
16

Security in Linux

  • User authentication through login accounts and passwords.
  • Authorization through file ownership and read, write and execute permissions.
  • Encryption for protecting data.
  • Regular system updates and package management.
  • Firewall and access-control tools can be used to secure network services.
17

Advantages of Linux

  1. Free and open source.
  2. Stable and reliable.
  3. Secure user and file-permission model.
  4. Supports multitasking and multiple users.
  5. Highly customizable.
  6. Efficient use of hardware resources.
  7. Strong networking support.
  8. Many distributions are available for different purposes.
18

Applications of Linux

  • Web and database servers
  • Cloud computing
  • Supercomputers
  • Embedded and IoT systems
  • Cybersecurity and penetration-testing environments
  • Software-development systems
  • Desktop computing
  • Android and other Linux-kernel-based devices

Discussion

Share a helpful question, idea, or explanation with other students.

Leave a Comment

Write a clear question, answer, or helpful explanation.
Your email will not be published.

Download Our Offline App

Study class-wise notes even when internet is not available. Get the app from Play Store.

Nepal eNotes offline app preview
Get it on Google Play