Lecture-1_Course Handouts Linux
Lecture-1_Course Handouts Linux
Course involves
• Basic Linux commands
• Shell scripting
• File structure and management
• Processes
• Inter-process communication
• Socket programming
• Security
COURSE OUTCOMES (CO)
1 2 3
CO1: To articulate CO2: To write Shell CO3: To design and
Linux commands that Programming using write applications to
are used to manipulate Linux commands. manipulate internal
system operations at kernel-level Linux File
an admin level. systems.
Course Structure & Credits
L T P C Theory Modules: 03
• The popular Ubuntu Linux distribution utilize the /etc/init.d folder, which contains scripts for starting
and stopping individual applications at boot time.
• The scripts are started via entries under the /etc/rcX.d folders, where X is a run level.
• The init utilizes run levels. There are 5 init run levels in the Linux.
• At run level 1&2, only the basic system processes are started, along with one console terminal
process. This is called single-user (admin) mode.
• At run level 3&4, most application software, such as network support software, is started.
• At level 5, the GUI X-windows is started
Hardware Management
• Any device that Linux must communicate with needs device driver code to be inserted into kernel
• Driver code allows the kernel to pass data back and forth to the device
• Two methods are used to insert device driver code into kernel
• Drivers compiled into the kernel
• Drivers' modules are added to the kernel
• The Linux system identifies hardware devices as special files, called device files.
• There are three classifications of device files:
• Character: Character device files are for devices that can only handle data one character at a time.
Examples: modems, and terminals
• Block: Block files are for devices that can handle data in large blocks at a time, such as disk drives
• Network: The network fi le types are used for devices that use packets to send and receive data.
Examples are network cards and a special loopback device
Hardware Management
Linux creates special All communication with Each node has a unique
files, called nodes, for the device is performed number pair that
each device on the through the device identifies it to the Linux
system. node. kernel.
The GNU
The GNU coreutils package
Utilities consists of three parts:
It allows you to enter text commands, and then it interprets the commands and executes them in the kernel.
You can also group shell commands into files to execute as a program. Those files are called shell scripts.