Practical File of Open Source Lab
Practical File of Open Source Lab
CT University, Ludhiana
Submitted In partial fulfilment of the requirement for the award of the Degree
of Bachelors of Computer Science and Engineering
1 Introduction to Linux OS
Introduction to Linux OS
Linux is a community of open-source Unix like operating systems that are based on the
Linux Kernel.
The kernel is a program at the heart of the Linux operating system that takes care of
fundamental stuff, like letting hardware communicate with software.
Every time you switch on your computer, you see a screen where you can perform different
activities like write, browse the internet or watch a video. What is it that makes the computer
hardware work like that? How does the processor on your computer know that you are asking
it to run a mp3 file?
Well, it is the operating system or the kernel which does this work. So, to work on your
computer, you need an Operating System (OS). In fact, you are using one as you read this on
your computer. Now, you may have used popular OS’s like Windows, Apple OS X, but here
we will learn introduction to Linux operating system, Linux overview and what benefits it
offers over other OS choices.
Who created Linux?
Linux is an operating system or a kernel which germinated as an idea in the mind of young
and bright Linus Torvalds when he was a computer science student. He used to work on the
UNIX OS (proprietary software) and thought that it needed improvements.
However, when his suggestions were rejected by the designers of UNIX, he thought of
launching an OS which will be receptive to changes, modifications suggested by its users.
Linux Distribution
MX Linux
Manjaro
Linux Mint
elementary
Ubuntu
Debian
Solus
Fedora
openSUSE
Deepin
The main advantage of Linux was that programmers were able to use the Linux Kernel to
design their own custom operating systems. With time, a new range of user-friendly OS’s
stormed the computer world. Now, Linux is one of the most popular and widely used Kernel,
and it is the backbone of popular operating systems like Debian, Knoppix, Ubuntu, and
Fedora. Nevertheless, the list does not end here as there are thousands of best versions of
Linux OS based on the Linux Kernel available which offer a variety of functions to the users.
Advantages of Linux
The main advantage of Linux, is it is an open-source operating system. This means the
source code is easily available for everyone and you are allowed to contribute, modify and
distribute the code to anyone without any permissions.
In terms of security, Linux is more secure than any other operating system. It does not
mean that Linux is 100 percent secure it has some malware for it but is less vulnerable than
any other operating system. So, it does not require any anti-virus software.
The software updates in Linux are easy and frequent.
Various Linux distributions are available so that you can use them according to your
requirements or according to your taste.
Linux is freely available to use on the internet.
It has large community support.
It provides high stability. It rarely slows down or freezes and there is no need to reboot it
after a short time.
It maintains the privacy of the user.
Disadvantages of Linux
Why Linux?
UNIX is called the mother of operating systems which laid out the foundation to Linux.
Unix is designed mainly for mainframes and is in enterprises and universities. While Linux is
fast becoming a household name for computer users, developers, and server environment.
You may have to pay for a Unix kernel while in Linux it is free.
But the commands used on both the operating systems are usually the same. There is not
much difference between UNIX and Linux. Though they might seem different, at the core,
they are essentially the same. Since Linux is a clone of UNIX. So, learning one is same as
learning another
PRACTICAL – 2
To install Ubuntu Desktop, you need to write your downloaded ISO to a USB stick to
create the installation media. This is not the same as copying the ISO, and requires some
bespoke software.
For this tutorial, we’ll use balena Etcher, as it runs on Linux, Windows and Mac OS.
Choose the version that corresponds to your current operating system, download and install
the tool.
Insert the USB flash drive into the laptop or PC you want to use to install Ubuntu and boot
or restart the device. It should recognise the installation media automatically. If not, try
holding F12 during startup and selecting the USB device from the system-specific boot menu.
You should now see the welcome screen inviting you to either try or install Ubuntu. To
proceed, click Install Ubuntu.
You will be asked to select your keyboard layout. Once you’ve chosen one, click Continue.
Note You can use VMware, Virtual Box in case you want to use multiple OS in your
current system without affecting your system OS.
5. Installation Setup
Next, you will be prompted to choose between the Normal installation and Minimal
installation options. The minimal installation is useful for those with smaller hard drives or
who don’t require as many pre-installed applications.
In Other options, you will be prompted to download updates as well as third-party software
that may improve device support and performance (for example, Nvidia graphics drivers)
during the installation. It is recommended to check both of these boxes.
If you are not currently connected to the internet, you will be prompted to do so at this
point. Ensure you are able to remain connected throughout the installation.
6. Drive Management
This screen allows you to configure your installation. If you would like Ubuntu to be the
only operating system on your device, select Erase disk and install Ubuntu.
If you are happy to continue the installation without enabling encryption, click Install Now
and confirm the changes with Continue. Otherwise keep reading.
On this screen, you will be prompted to enter your name and the name of your computer as it will
appear on the network. Finally, you will create a username and a strong password.
Once the installation has completed, you will be prompted to restart your machine. Click Restart
Now. When you restart, you will be prompted to remove your USB flash drive from the device. Once
you’ve done this, press ENTER. Enter your password on the login screen You’ve installed Ubuntu
PRACTICLE -3
2. Calendar Command – cal is used to print the calendar of any year and of any month
Date command – is used to print the current system date and time
Date command options
Mkdir folder1
Changing Directory