Los Prasen
Los Prasen
Los Prasen
IT DEPARTMENT
SUBJECT NAME: Linux Operating System (LOS) SUBJECT CODE: 4331602
STUDENT NAME: SUTHAR PRASEN Enrollment No:236040316094
SEMESTER: 3rd
R1: Accuracy & Documentation
PRACTICAL-1
Aim: Install & test different types of Operating System & compare its features.
Different types of OS are:
Windows OS
Disk OS
LINUX OS
1. Windows is a graphical operating system developed by Microsoft. It allows
users to view and store files, run the software, play games, watch videos, and
provides a way to connect to the internet. It was built for both home computing
and professional works.
2. A DOS, or disk operating system, is an operating system that runs from a disk
drive. The term can also refer to a particular family of disk operating systems,
most commonly MS-DOS, an acronym for Microsoft DOS.
3. Linux is an open-source, cross-platform operating system that runs on desktops,
notebooks, tablets, and smartphones.
DOS VS WINDOWS
LINUX VS WINDOWS
Installation of windows 11
Step 1: Check Windows 11 Compatibility
In order to upgrade to Windows 11, your computer must meet Windows 11
minimum requirements and should be running the most up-to-date Windows 10
version. If this is not the case, it may be best to consider moving to a Windows-11-
compatible device.
Microsoft’s official minimum Windows 11 system requirements include:
● CPU: 1 GHz with two or more cores on a 64-bit processor
● Memory: 4 GB
● Display: Measures 9 inches diagonally and high definition (720 p)
● Storage: 64 GB
● Graphics Card: DirectX 12 with WDDM 2.0 driver compatibility
● Security: TPM 2.0, UEFI, Secure Boot
● RAM: 4 GB
Run a windows 11 compatibility check via PC Health Check to test if your
computer, the following steps must be taken:
1. Download and open the app.
2. Accept the Microsoft license agreement terms and click on “Install.”
3. Once the application has been installed, select the “Open Windows PC
Health Check” checkbox, then click “Finish.”
4. When the tool opens, you will see your computer’s configuration on the left
and an “Introducing Windows 11” banner on top. Click on the blue “Check
Now” button tool to verify your PC’s compatibility with Windows 11.
5. If compatible, a “This PC meets Windows 11 requirements” pop-up will
appear.
Step 2: Check Windows 11 System Requirements
You must type in “Windows update” in the search bar on your computer and open
the Windows Update menu.
An important note here — even if you have checked for compatibility issues via
the PC health check feature, you may still see the following message in the menu
that your computer does not meet windows 11 minimum requirements:
“This PC doesn’t currently meet all the system requirements for Windows 11.”
Don't worry. Even if Windows sometimes has a hard time synchronizing PC health
checks with Windows Update results, you can avoid falling victim to a bricked
system or loss of data.
Step 3: Backup your data
Even if the computer is salvageable, it's possible to lose all your applications after
an upgrade. You’d have to install them one by one all over again.
However annoying that may be, it's better than losing your data altogether. And
such scenarios have happened in the past with Windows systems. To avoid any
potential data loss, it’s best to backup your data before any major updates.
Step 4: Start the Windows 11 Installation
Now that you have a backup of all vital data, you can go for the Windows 11
upgrade. If the Windows Update window gives you the green light, you can
immediately start the installation.
If the incompatibility message in the Windows update menu persists, you can go
for a workaround.
As long as you’re sure you have enabled TPM 2.0 on your system, you can search
for the Windows 11 Installation Assistant and download it. Once it’s downloaded,
you can initiate the upgrade through it.
Clicking on “See all results” allows you to check each of the system requirements
The download process for Windows 11 system files can take a bit longer to
complete, but there’s a simple trick you can use to speed it up.
To do that, type “delivery optimization” in the Start menu, pull up the Settings
page, and choose the option “Allow downloads from other PCs nearby”. Those PC
don’t need to be on your HomeGroup network, but just close enough to be in range
for the download assistance.
Once download and installation are completed, you can log into your Windows 11
system.
Step 5: Try and test Windows 11
To test Windows 11 correctly, first, you must ensure you have all the latest drivers
for the system. Depending on the hardware and vital software on your PC, you’d
need to visit the official driver download pages of the developers and check for
updates.
Once all updates are done, you can go around and test Windows 11 features — the
centered main menu, different display options, try shortcut display combos, go for
the Auto HDR and see how your favorite games perform on the new setup.
Installation of LINUX
1. Download the Linux distribution of your choice: If you are new to Linux, consider
trying a lightweight and easy to use distribution, such as Ubuntu or Linux Mint.
Linux distributions (known as "distros") are typically available free to download in
ISO format.
2. Boot into the Live CD or Live USB. Most computers are set to boot into the hard
drive first, which means you will need to change some settings to boot from your
newly burned CD or USB. Start by rebooting the computer.
Once the computer reboots, press the key used to enter the boot menu. The key for
your system will be displayed on the same screen as the manufacturer’s logo. Typical
keys include F12, F2, or Del.
3. Try out the Linux distribution before installing. Most Live CDs and USBs can
launch a "live environment", giving you the ability to test it out before making the
switch. You will not be able to create files, but you can navigate around the interface
and decide if it is right for you.
4. Start the installation process. If you are trying out the distro, you can launch the
installation from the application on the desktop. If you decided not to try out the
distribution, you can start the installation from the boot menu.
You will be asked to configure some basic options, such as language, keyboard
layout, and time zone.
5. Create a username and password. You will need to create login information to
install Linux. A password will be required to log into your account and perform
administrative tasks.
6. Set up the partition. Linux needs to be installed on a separate partition from any
other operating systems on your computer if you intend dual booting Linux with
another OS. A partition is a portion of the hard drive that is formatted specifically for
that operating system. You can skip this step if you do not plan on dual booting.
7. Boot into Linux. Once the installation is finished, your computer will reboot. You
will see a new screen when your computer boots up called “GNU GRUB”. This boot
loader handles Linux installations. Pick your new Linux distro from the list. This
screen may not show up if you only have one operating system on your computer. If
this screen is not being presented to you automatically, then you can get it back by
hitting shift right after the manufacturer splash screen.
8. Check your hardware. Most hardware should work out of the box with your Linux
distro, though you may need to download some additional drivers to get everything
working.
9. Start using Linux. Once your installation is complete and you have verified that
your hardware is working, you are ready to start using Linux. Most distros come with
several popular programs installed, and you can download many more from their
respective file repositories.
Conclusion: From the study of practical and instalment of different types of OS, it
concluded each OS has its own characteristics and they are unique in their ways.
PRACTICAL-2
Aim: Compare following process scheduling algorithm.
a) First come first serve
b) Round Robin
c) SJF and SRTN
Scheduling of processes/work is done to finish the work on time. CPU
Scheduling is a process that allows one process to use the CPU while another
process is delayed (in standby) due to unavailability of any resources such as
I/O etc, thus making full use of the CPU.
The purpose of CPU Scheduling is to make the system more efficient, faster,
and fairer.
CPU scheduling is the process of deciding which process will own the CPU to
use while another process is suspended. The main function of the CPU
scheduling is to ensure that whenever the CPU remains idle, the OS has at least
selected one of the processes available in the ready-to-use line.
Objectives of Process Scheduling Algorithm:
Utilization of CPU at maximum level. Keep CPU as busy as possible.
Allocation of CPU should be fair.
Throughput should be Maximum. i.e. Number of processes that complete
their execution per time unit should be maximized.
Minimum turnaround time, i.e. time taken by a process to finish execution
should be the least.
There should be a minimum waiting time and the process should not starve in
the ready queue.
Minimum response time. It means that the time when a process produces the
first response should be as less as possible.
What are the different terminologies to take care of in any CPU Scheduling
algorithm?
Arrival Time: Time at which the process arrives in the ready queue.
Completion Time: Time at which process completes its execution.
Burst Time: Time required by a process for CPU execution.
Turn Around Time: Time Difference between completion time and arrival
time.
Turn Around Time = Completion Time – Arrival Time
Waiting Time (W.T): Time Difference between turnaround time and burst
time.
Waiting Time = Turn Around Time – Burst Time
2. Round robin:
Shortest job first (SJF) is a scheduling process that selects the waiting process
with the smallest execution time to execute next. This scheduling method may
or may not be pre-emptive. Significantly reduces the average waiting time for
other processes waiting to be executed. The full form of SJF is Shortest Job
First.
Shortest remaining time first is the pre-emptive version of the shortest job
first which we have discussed earlier where the processor is allocated to the job
closest to completion. In SRTF, the process with the smallest amount of time
remaining until completion is selected to execute.
P1 P2 P3 P4
0 8 12 21 26
P1 P2 P4 P3
0 8 12 17 26
P1 P2 P2 P2 P4 P1 P3
0 1 2 3 5 10 17 26
P1 P2 P3 P4 P1 P3 P4 P3
0 4 8 12 16 20 24 25 26
PRACTICAL-3
Aim: Test and execute Linux process commands: top, ps, kill.
Top command: This utility tells the user about all the running processes on the
Linux machine.
Top command display the current status of the system and a list of all running
processes with their usage information.
Example: $top
Output:
(Hint: Press ‘q’ on the keyboard to move out of the process display.)
Output:
Output:
PRACTICAL-4
Aim: Test and run basic Linux commands to perform following task:
a) Display the calendar for the month in which you born.
b) Display the calendar for the year 2030.
c) Display the date and time of your system.
d) Display the date of your system in mm/dd/yyyy format for e.g. 07/14/2030.
**September 2005**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| 1| 2| 3| 4| 5| 6| 7|
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | | | | | |
**January 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | 1| 2| 3|
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
**February 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | 1| 2|
| 3| 4| 5| 6| 7| 8| 9|
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | | |
**March 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | 1|
| 2| 3| 4| 5| 6| 7| 8|
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | | | | | |
**April 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | 1| 2|
**May 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | 1|
| 2| 3| 4| 5| 6| 7| 8|
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | | | | | |
**June 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
| 1| 2| 3| 4| 5| 6| 7|
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | | | | | |
**July 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
| 1| 2| 3| 4| 5| 6| 7|
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | | | | |
**August 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
**September 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
| | | | | | | 1|
| 2| 3| 4| 5| 6| 7| 8|
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | | | | | | |
**October 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
| | | | | 1| 2| 3|
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
**November 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
|----|----|----|----|----|----|----|
| | | | | | | |
| | | | | | 1| 2|
| 3| 4| 5| 6| 7| 8| 9|
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
**December 2030**
| Su | Mo | Tu | We | Th | Fr | Sa |
```
echo %date% %time%
```
This command will print the current date and time in the format
used by your system's settings.
If you want to format the date and time to match the example you
provided (`10PM 24 JUNE 2020`), you would need to manually
adjust the output or use a script. Here’s a simple example using
PowerShell for a formatted output:
```powershell
Get-Date -Format "hh:mm tt dd MMMM yyyy"
This command will output the current date and time in a format
similar to `10:00 PM 24 June 2020`.
If you need to print this information to a file, you can redirect the
output to a text file using the following command:
```powershell
Get-Date -Format "hh:mm tt dd MMMM yyyy" >
"C:\path\to\output.txt"
```
```cmd
powershell -Command "Get-Date -Format 'MM/dd/yyyy'"
```
```powershell
Get-Date -Format "MM/dd/yyyy"
```
```powershell
Get-Date -Format "MM/dd/yyyy" > "C:\path\to\output.txt"
```
This will give you the current date in the specified format.
PRACTICAL-5
Aim: Test and execute Linux file and directory commands to perform following
task:
a) Display help for pwd command.
b) Write a Linux command to clear your screen.
c) Display the history of previously executed command.
PRACTICAL-6
Aim: Test and execute Linux Super User command to perform following task:
a) Display the user id of the currently logged-in user of your system.
b) Display host name of your system.
c) Write a Linux command to display the history of logins into the system.
d) Write a Linux command to display the server name.
e) Execute the linux command : who, w ,last
a) The who command displays the following information for each user currently
logged in to the system if no option is provided:
1. Login name of the users
2. Terminal line numbers
3. Login time of the users into the system
4. The remote host name of the user
Syntax: $ who
Output:
The hostname command has a number of options you can use for more specific
outputs:
Output:
c) Write a Linux command to display the history of logins into the system.
The last command shows a list of recently logged-in users, along with the times
they logged in and out. By running `last` without any options, you can see a
historical log of user logins.
Syntax: $ last
$ lastlog
Output:
Output:
Syntax: $ w
Output:
Syntax: $ last
Output: