Professional Documents
Culture Documents
Fedora OS
Fedora OS
Unit - I
An operating system (OS) is a collection of software that manages computer hardware resources and provides
common services for computer programs. The operating system is a vital component of the system software
in a computer system. This tutorial will take you through step by step approach while learning Operating
System concepts.
Operating System
An Operating System (OS) is an interface between a computer user and computer hardware. An operating
system is a software which performs all the basic tasks like file management, memory management, process
management, handling input and output, and controlling peripheral devices such as disk drives and printers.
Some popular Operating Systems include Linux Operating System, Windows Operating System, VMS,
OS/400, AIX, z/OS, etc.
Following are some of important functions of an operating System.
Memory Management
Processor Management
Device Management
File Management
Security
Control over system performance
Job accounting
Error detecting aids
Coordination between other software and users
Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating
system. It consists of various modules and it interacts directly with the underlying hardware. Kernel
provides the required abstraction to hide low level hardware details to system or application programs.
Architecture
The following illustration shows the architecture of a Linux system −
Linux is one of popular version of UNIX operating System. It is open source as its source code is freely
available. It is free to use. Linux was designed considering UNIX compatibility. Its functionality list is quite
similar to that of UNIX.
Components of Linux System
Linux Operating System has primarily three components
Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating
system. It consists of various modules and it interacts directly with the underlying hardware. Kernel
provides the required abstraction to hide low level hardware details to system or application programs.
System Library − System libraries are special functions or programs using which application
programs or system utilities accesses Kernel's features. These libraries implement most of the
functionalities of the operating system and do not requires kernel module's code access rights.
3
System Utility − System Utility programs are responsible to do specialized, individual level tasks.
Advantages of Linux Os
1. Open Source
As it is open-source, its source code is easily available. Anyone having programming knowledge can
customize the operating system. One can contribute, modify, distribute, and enhance the code for any purpose.
2. Security
The Linux security feature is the main reason that it is the most favorable option for developers. It is not
completely safe, but it is less vulnerable than others. Each application needs to authorize by the admin user.
The virus is not executed until the administrator provides the access password. Linux systems do not require
any antivirus program.
3. Free
Certainly, the biggest advantage of the Linux system is that it is free to use. We can easily download it, and
there is no need to buy the license for it. It is distributed under GNU GPL (General Public License).
Comparatively, we have to pay a huge amount for the license of the other operating systems.
4. Lightweight
Linux is lightweight. The requirements for running Linux are much less than other operating systems. In
Linux, the memory footprint and disk space are also lower. Generally, most of the Linux distributions required
as little as 128MB of RAM around the same amount for disk space.
5. Stability
Linux is more stable than other operating systems. Linux does not require to reboot the system to maintain
performance levels. It rarely hangs up or slow down. It has big up-times.
6. Performance
Linux system provides high performance over different networks. It is capable of handling a large number of
users simultaneously.
7. Flexibility
Linux operating system is very flexible. It can be used for desktop applications, embedded systems, and server
applications too. It also provides various restriction options for specific computers. We can install only
necessary components for a system.
8. Software Updates
In Linux, the software updates are in user control. We can select the required updates. There a large number
of system updates are available. These updates are much faster than other operating systems. So, the system
updates can be installed easily without facing any issue.
9. Distributions/ Distros
There are many Linux distributions available in the market. It provides various options and flavors of Linux
to the users. We can choose any distros according to our needs. Some popular distros are Ubuntu, Fedora,
Debian, Linux Mint, Arch Linux, and many more.
5
Fedora OS comes with many pre-installed applications and tools, such as Internet Browser, PDF and Word
files Viewer, Pre-installed Games, Libre Office Suite, Programming language Support, etc.
Fedora is a very stable, secure, and light-weight operating system. It supports different types of architectures,
such as IBM Z, AMD x86-x64, Intel i686, IBM Power64le, ARM-hfp, MIPS-64el, ARM AArch64, IBM
Power64, etc. Usually, it also works on the latest Linux kernel
7
Fedora Server
Fedora Server is a very flexible and powerful OS. It keeps all your infrastructure and services under your
control. Fedora operating system offers the latest data center technologies.
Advantages of Fedora Operating System
1. Fedora OS is a very reliable and stable operating system.
2. It enhances the security in this operating system.
3. It offers many graphical tools.
4. This operating system updates automatically.
5. This OS supports many file formats.
6. It also offers many education software.
7. It supports a large community.
8. It provides unique security features.
Disadvantages of Fedora Operating System
1. It requires a long time to set up.
2. It requires additional software tools for the server.
3. It does not provide any standard model for multi-file objects.
4. Fedora has its own server, so we can't work on another server in real-time.
Installing Fedora:
Step:1) Download Fedora 30 Workstation ISO File
Download the Fedora 30 Workstation ISO file on your system from its Official Web Site
https://getfedora.org/en/workstation/download/
Once the ISO file is downloaded, then burn it either in USB drive or DVD and make it bootable.
Step:2) Boot Your Target System with Bootable media (USB Drive or DVD)
Reboot your target machine (i.e. machine where you want to install Fedora 30), Set the boot medium as USB
or DVD from Bios settings so system boots up with bootable media.
Step:3) Choose Start Fedora-Workstation-30 Live
When the system boots up with bootable media then we will get the following screen, to begin with installation
on your system’s hard disk, choose “Start Fedora-Workstation-30 Live“,
8
In the next screen we will see the local available hard disk, select the disk that suits your installation and then
choose how you want to create partitions on it from storage configuration tab.
If you choose “Automatic” partition scheme, then installer will create the necessary partition for your system
automatically but if you want to create your own customize partition scheme then choose “Custom” option,
Click on Done
In this article I will demonstrate how to create LVM based custom partitions, in my case I have around 40 GB
unallocated hard drive, so I will be creating following partitions on it,
o /boot = 2 GB (ext4 file system)
o /home = 15 GB (ext4 file system)
o /var = 10 GB (ext4 file system)
o / = 10 GB (ext4 file system)
o Swap = 2 GB
10
Select “LVM” as partitioning scheme and then click on plus (+) symbol,
Specify the mount point as /boot and partition size as 2 GB and then click on “Add mount point”
If you might have noticed, /home partition is created as LVM partition under default Volume Group, if you
wish to change default Volume Group name then click on “Modify” option from Volume Group Tab,
Mention the Volume Group name you want to set and then click on Save. Now onward all the LVM partition
will be part of fedora30 volume group.
Similarly create the next two partitions /var and / of size 10 GB respectively,
/var partition:
/ (slash) partition:
12
Now we will get Installation Summary window, here you can also change the time zone that suits to your
installation and then click on “Begin Installation”
13
Once the Installation is completed, you will be prompted to restart your system
Click on Next
In the next screen you can Sync your online accounts or else you can skip,
14
In the next window you will be required to specify the local account (user name) and its password, later this
account will be used to login to the system
Click on Next
And finally, we will get below screen which confirms that we are ready to use Fedora 30,
The pwd command is used to display the location of the current working directory.
Syntax:
1. pwd
Output:
2. mkdir Command
The mkdir command is used to create a new directory under any directory.
Syntax:
1. mkdir <directory name>
Output:
3. rmdir Command
The rmdir command is used to delete a directory.
Syntax:
1. rmdir <directory name>
Output:
4. ls Command
The ls command is used to display a list of content of a directory.
Syntax:
1. ls
Output:
5. cd Command
The cd command is used to change the current directory.
Syntax:
1. cd <directory name>
Output:
17
7. cat Command
The cat command is a multi-purpose utility in the Linux system. It can be used to create a file, display content
of the file, copy the content of one file to another file, and more.
Syntax:
1. cat [OPTION]... [FILE]..
To create a file, execute it as follows:
1. cat > <file name>
2. // Enter file content
Press "CTRL+ D" keys to save the file. To display the content of the file, execute it as follows:
1. cat <file name>
Output:
8. rm Command
The rm command is used to remove a file.
Syntax:
rm <file name>
Output:
9. cp Command
The cp command is used to copy a file or directory.
Syntax:
To copy in the same directory:
1. cp <existing file name> <new file name>
To copy in a different directory:
18
10. mv Command
The mv command is used to move a file or a directory form one location to another location.
Syntax:
1. mv <file name> <directory path>
Output: