FOSS 2nd Module
FOSS 2nd Module
Module II
Linux: Features, history, various Linux distributions, Linux architecture, kernel and shell,
Linux desktop environments- GNOME and KDE, Linux File System and Directories, types of
files, Installing and Configuring Linux, File access permissions, understanding system
administration.
***********
Linux
• Linux is a community of open-source UNIX like operating systems that are based on the
Linux Kernel.
• It was initially released by Linus Torvalds on September 17, 1991. It is a free and open
source0 operating system and the source code can be modified and distributed to anyone
commercially or non-commercially under the GNU General Public License.
• Initially, Linux was created for personal computers and gradually it was used in other
machines like servers, mainframe computers, supercomputers, etc.
• The biggest success of Linux is Android (operating system) it is based on the Linux kernel
that is running on smart phones and tablets.
• Linux is one of popular version of UNIX operating System.
• It is open source as its source code is freely available and it is free to use.
• Linux was designed considering UNIX compatibility.
• Its functionality list is quite similar to that of UNIX.
Linux Features
• Multiuser capability: Multiple users can access the same system resources like memory,
hard disk, etc. But they have to use different terminals to operate.
• Multitasking: More than one function can be performed simultaneously by dividing the
CPU time intelligently.
• Portability: Portability doesn't mean it is smaller in file size or can be carried in pen
drives or memory cards. It means that it support different types of hardware.
• Security: It provides security in three ways namely authenticating (by assigning password
and login ID), authorization (by assigning permission to read, write and execute) and
encryption (converts file into an unreadable format).
• Graphical User Interface (X Window system): Linux is command line based OS but it
can be converted to GUI based by installing packages.
1
FOSS
o Non-commercial or commercial
o Developed for home users, power users, or enterprise users
o Supported on two or more types of platform or hardware-specific, even to the certification
extension via platform vendor.
o Developed for embedded, desktop, or server devices
o Highly specialized or general purpose toward particular machine functionalities (e.g.,
computer clusters, network routers, and firewalls)
o Targeted at particular user groups, e.g., by language internationalization and localization or
by including several scientific computing and music production packages
Linux mint It works like windows and should be use by new comers.
2
FOSS
CentOS If you want to use red hat but without its trademark.
Opens USE It works same as Fedora but slightly older and more stable.
Arch Linux It is not for the beginners because every package has to be
installed by yourself.
There are on an average six hundred Linux distributors providing different features. Some of the
popular Linux distributions are:
1) Ubuntu
• It came into existence in 2004 by Canonical and quickly became popular.
• Canonical wants Ubuntu to be used as easy graphical Linux desktop without the use of
command line.
• It is the most well-known Linux distribution.
• It comes with a lots of pre-installed apps and easy to use repositories libraries.
• Earlier, Ubuntu uses GNOME2 desktop environment but now it has developed its own
unity desktop environment.
• It releases every six months and currently working to expand to run on tablets and smart
phones.
2) Linux Mint
• Mint is based on Ubuntu and uses its repository software so some packages are common
in both.
• Earlier it was an alternative of Ubuntu because media codecs and proprietary software are
included in mint but was absent in Ubuntu.
• But now it has its own popularity and it uses cinnamon and mate desktop instead of
Ubuntu's unity desktop environment.
3) Debian
• Debian has its existence since 1993 and releases its versions much slowly then Ubuntu
and mint.
• This makes it one of the most stable Linux distributor.
3
FOSS
• Ubuntu is based on Debian and was founded to improve the core bits of Debian more
quickly and make it more user friendly.
• Every release name of Debian is based on the name of the movie Toy Story.
5) Fedora
• It is a project that mainly focuses on free software and provides latest version of software.
• It doesn't make its own desktop environment but used 'upstream' software. By default it
has GNOME3 desktop environment.
• It is less stable but provides the latest stuff.
Architecture of Linux:
Linux architecture has the following components:
1. The Kernel
2. System Library
3. Hardware layer
4. System
5. Shell utility.
4
FOSS
1. Kernel:
• The kernel is one of the core section of an operating system.
• It is responsible for each of the major actions of the Linux OS.
• This operating system contains distinct types of modules and cooperates with
underlying hardware directly.
• The kernel facilitates required abstraction for hiding details of low-level hardware or
application programs to the system.
• There are some of the important kernel types which are mentioned below:
• Monolithic Kernel
• Micro kernels
• Exo kernels
• Hybrid kernels
2. System Libraries:-
• These libraries can be specified as some special functions.
• These are applied for implementing the operating system's functionality and don't need code
access rights of the modules of kernel.
4. Hardware layer:-
• Linux operating system contains a hardware layer that consists of several peripheral devices
like CPU, HDD, and RAM.
5. Shell:-
• It is an interface among the kernel and user.
• It can afford the services of kernel.
• It can take commands through the user and runs the functions of the kernel.
• The shell is available in distinct types of OS.
• These operating systems are categorized into two different types, which are the graphical
shells and command-line shells.
• The graphical line shells facilitate the graphical user interface, while the command line
shells facilitate the command line interface.
5
FOSS
• Thus, both of these shells implement operations. However, the graphical user interface shells
work slower as compared to the command-line interface shells.
• There are a few types of these shells which are categorized as follows:
o Korn shell
o Bourne shell
o C shell
o POSIX shell
APPLICATIONS:
o Yamaha Motive Keyboard
o Volvo In-Car Navigation System
o TiVo Digital Video Recorder
o Sony Reader
o Sony Bravia Television
o One Laptop Per child XO2
o Motorola MotoRokr EM35 phone
o Lenovo IdeaPad S9
o HP Mini 1000
o Google Android Dev Phone 1
o Garmin Nuvi 860, 880, and 5000
o Dell Inspiron Mini 9 and 12
6
FOSS
10. Interprets and translates user Provides services to other programs running on
commands. the system.
11. Acts as an intermediary between the Operates at a lower level than the shell and
user and the kernel interacts with hardware
12. Provides various features like Responsible for tasks such as memory
command history, tab completion, and management, process scheduling, and device
scripting capabilities drivers
7
FOSS
13. Executes commands and programs Enables user and applications to interact with
hardware resources
8
FOSS
2. KDE
• KDE stands for K Desktop Environment. It is a desktop environment for Linux based
operation system.
• KDE is a well-known, powerful and highly customizable desktop environment, designed
to offer Linux desktop users absolute control over their desktop.
• The latest release in the KDE desktop series is the Plasma 5, which has brought in several
improvements and new features.
• It has come with clean and well-polished user interfaces in comparison to previous
versions, with improved readability.
• It have notable components and new features include: Dolphin file manager, Kwin
window manager, A converged shell, Updated graphics stack enabling smoother graphics
performance, modernized launchers , Workflow improvements in the desktop notification
area , Improved support for high-density (high-DPI) display plus many other minor
features
Other Popular Linux environment includes: XFCE, MATE, Cinnamon, Deepin, Budgie,
Pantheon, and LXQT.
9
FOSS
10
FOSS
The admin has access to make any changes No user other than the root user can change the
in the files and settings. settings of the entire system.
The admin can create a user. Any user having a home directory cannot create a
user.
In the Linux file system, everything comes The home directory contains a particular user's data.
under the root directory.
These are the common top-level directories associated with the root directory:
11
FOSS
Directories Description
Command Description
cp To copy a file.
mv To rename or to move a file.
rename To rename file.
12
FOSS
REFER: https://docstore.mik.ua/orelly/linux/run/ch03_01.htm
• When you execute a “ls” command, you are not given any information about the security
of the files, because by default “ls” only lists the names of files.
• You can get more information by using an “option” with the “ls” command. All options
start with a ‘-‘.
• For example, to execute “ls” with the “long listing” option, you would type ls -l
When you do so, each file will be listed on a separate line in a long format.
• Syntax:
ls
ls -l
13
FOSS
14
FOSS
Letters Definition
‘x’ “execute” the file. This permission is given only if the file is a program.
Operators Definition
15
FOSS
Changing Permissions
To change the file or the directory permissions, you use the chmod (change mode) command. There
are two ways to use chmod — the symbolic mode and the absolute mode.
16
FOSS
17