What Is Linux?
What Is Linux?
What Is Linux?
First, four main parts make up a Linux system:
· The Linux kernel
· Application software
kernel
The core of the Linux system is the kernel. The kernel controls all the hardware
and software on the computer system, allocating hardware when necessary and
executing software when required.
Linus Torvalds
Linus is the person responsible for creating the first Linux kernel software when
he was a student at the University of Helsinki.
copy of the Unix system
· Hardware management
· Filesystem management
Hardware Management
Any device that the Linux system must communicate with needs driver code
inserted inside the kernel code.
The driver code allows the kernel to pass data back and forth to the device, acting
as a middle man between applications and the hardware.
Two methods are used for inserting device driver code in the Linux kernel:
1. Drivers compiled in the kernel
The Linux system identifies hardware devices as special files, called device files.
There are three classifications of device files:
3. Character
4. Block
5. Network
Character device files are for devices that can only handle data one character at a
time (modems and terminals ).
Block files are for devices that can handle data in large blocks at a time (disk
drives).
The network file types are used for devices that use packets to send and receive
data( network cards and a special loopback device).
Linux creates special files, called nodes, for each device on the system. All
communication with the device is performed through the device node.
Filesystem Management
Linux Filesystems
The GNU Utilities
The GNU organization (GNU stands for GNU’s Not Unix) developed a
complete set of Unix utilities.These utilities were developed
under a software philosophy called open source software (OSS).
While the bundling of the Linux kernel and GNU utilities is often just
called GNU/Linux .
The core bundle of utilities supplied for Linux systems is
called the coreutils package.
The Shell
The GNU/Linux shell is a special interactive utility. It provides a way for
users to start programs, manage files on the filesystem, and manage
processes running on the Linux system.
The core of the shell is the command prompt. The command prompt is
the interactive part of the shell. It allows you to enter text commands,
and then it interprets the commands and executes them in the kernel.
The shell contains a set of internal commands that you use to control
things such as copying files, moving files, renaming files, displaying the
programs currently running on the system, and stopping programs
running on the system.
Besides the internal commands,the shell also allows you to enter the
name of a program at the command prompt. The shell passes the
program name off to the kernel to start it.
You can also group shell commands into files to execute as a program.
Those files are called shell scripts.
Linux Shells
Linux file structure
In Linux everything is a file.
Linux stores files within a single directory structure,called a virtual
directory. The virtual directory contains file paths from all the storage
devices installed on the computer, merged into a single directory
structure.
The Linux virtual directory structure contains a single base directory,
called the root.
On the root drive, Linux can use special directories as mount points.
Mount points are directories in the virtual directory where you can
assign additional storage devices. Linux causes files and directories to
appear within these mount point directories, even though they are
physically stored on a different drive.
Common Linux Directory Names