0% found this document useful (0 votes)
13 views

Operating System

Uploaded by

Omkar Kotkar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Operating System

Uploaded by

Omkar Kotkar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 55

1 Be AatmaNirbhar.

Use Kaagaz
Practical performance & output of practicals
for OSY 22516  Download Now

2 Be AatmaNirbhar. Use Kaagaz


3 Be AatmaNirbhar. Use Kaagaz
4 Be AatmaNirbhar. Use Kaagaz
Practical Performance Output
Subject: OSY 22516
Practical 1: Install and configure Linux (alike)
operating System
Step 1: Download Ubuntu OS From the Official Directory
Ubuntu 22.04 LTS
Download the latest!:!.� version of Ubuntu, for desktop PCs and laptops. LTS stands for Download
long-term support-which means five years, until April 2027, of free security and
maintenance updates, guaranteed.
for other versions of Ubuntu Desktop including
Ubuntu 22.04 LTS release notes torrents, the network installer, a list of local mirrors.
and past releases see our alternative downloads.
Recommended system requirements:

0 2 GHz dual-core processor or better 0 Internet access is helpful

0 4 GB system memory 0 Either a DVD drive or a USB port for the


installer media
0 2S GB of free hard drive space

Step 2: Create a Bootable USB Practical performance & output of practicals for
OSY 22516  Download Now

Last updated 2022.03.11 :

• Rufus 3.18 (1 _3 MB)


• Rufus 3 18 Portable (1 _3 MB}
• C)tt1er versions (G1tHub)
• C]ther versions (FossHub)

After downloading the ISO file, you will need to create a


bootable USB drive, which will be used to install Ubuntu.
To do so, you will have to use third-party software, such
as Rufus.
5 Be AatmaNirbhar. Use Kaagaz
6 Be AatmaNirbhar. Use Kaagaz
7 Be AatmaNirbhar. Use Kaagaz
8 Be AatmaNirbhar. Use Kaagaz
9 Be AatmaNirbhar. Use Kaagaz
Be AatmaNirbhar. Use Kaagaz
10
Practical performance & output of practicals for
OSY 22516  Download Now
Practical Performance Output
Subject: OSY 22516
Practical 3: Work with multiple Linux
terminals and basic commands
'WHO" Command & Options for WHO Commands
with description

Practical performance & output of practicals for OSY


22516  Download Now
Practical Related Questions

Exercise
S #EXERCISE PRACTICAL 3
S #Q.2 Wri.te the output of following comands
S #(i.) who;clear ;who al'l
S who
i.f5i.osy22516 :0 2023-06-12 13:31 (:0)
S who al'l i.
S #I can't use clear comand bacause want to capture thi.s output i.f used clear comand then all COl'll'land wi.ll be earas
ed
S #(ti.) who;tty;date
S who;tty;date
i.f5i.osy22516 :0 2023-06-12 13:31 (:0)
/dev/pts/0
Monday 12 June 2023 02:46:21 PM !ST
= sI
11 Be AatmaNirbhar. Use Kaagaz
12 Be AatmaNirbhar. Use Kaagaz
Practical performance & output of practicals for OSY
22516  Download Now

13 Be AatmaNirbhar. Use Kaagaz


14 Be AatmaNirbhar. Use Kaagaz
15 Be AatmaNirbhar. Use Kaagaz
16 Be AatmaNirbhar. Use Kaagaz
17 Be AatmaNirbhar. Use Kaagaz
18 Be AatmaNirbhar. Use Kaagaz
19 Be AatmaNirbhar. Use Kaagaz
Be AatmaNirbhar. Use Kaagaz
20
Practical performance & output of practicals for
OSY 22516  Download Now
21 Be AatmaNirbhar. Use Kaagaz
22 Be AatmaNirbhar. Use Kaagaz
Practical performance & output of practicals for OSY
22516  Download Now

23 Be AatmaNirbhar. Use Kaagaz


24 Be AatmaNirbhar. Use Kaagaz
25 Be AatmaNirbhar. Use Kaagaz
26 Be AatmaNirbhar. Use Kaagaz
27 Be AatmaNirbhar. Use Kaagaz
28 Be AatmaNirbhar. Use Kaagaz
29 Be AatmaNirbhar. Use Kaagaz
30 Be AatmaNirbhar. Use Kaagaz
31 Be AatmaNirbhar. Use Kaagaz
32 Be AatmaNirbhar. Use Kaagaz
Practical Performance Output
Subject: OSY 22516
Practical 10: Execuet shell Script by using if
statement
Pogram code:
Execute a Shell Script by considering example to find passing
grade for student using IF Statement
Single, Double, Multiple Decison

Practical performance & output of


practicals for OSY 22516 
Download Now
33 Be AatmaNirbhar. Use Kaagaz
34 Be AatmaNirbhar. Use Kaagaz
35 Be AatmaNirbhar. Use Kaagaz
36 Be AatmaNirbhar. Use Kaagaz
Practical Performance Output
Subject: OSY 22516
Practical 11: Execuet shell Script by using FOR
statement
Pogram code:
(1) Execute a Shell Script by considering example printing a
table of given number by FOR loop

(2) Execute a Shell Script by considering example printing a


following output by FOR loop

Practical performance & output of


practicals for OSY 22516 
Download Now
(3) The case statement for performing various mathmatical
operations
0 Terminal• Jun 24 16:24

R ifSiosy22516@ifSlosy22516-VlrtuaIBox: -/PR11pattren

S #Practlcal 11 Execute shell scrlpt by uslng for stateMent


$ #EXERCISE
S #Q.3 T he case stateMent for perforMlng varlous MathMatlcal operatlons.
S cd PRllpattren
$ cat>PR11EXQ3Math.sh
echo "Enter the flrst nuMber:·
read nuMl

echo "Enter the second nuMber:"


read nuM2
echo "Enter the operator (+, -,/)"
read operator

result=0

case $operator ln
+)
result=S((nuMl + nuM2))
echo "Addltlon: SnuMl + SnuM2 $result"
Practical performance & output of
-)
practicals for OSY 22516 
result=S((nuMl - nuM2))
echo "Subtractlon: SnuMl - SnuM2 $result" Download Now
/)
result$((nuM1/nuM2))
echo "Dlvlslon: SnuMl / SnuM2 $result"

*)
echo "Invalld operator.·
exlt 1

esac

$ bash PR11EXQ3Math_sh
Enter the flrst nuMber:
6
Enter the second nuMber:
4
Enter the operator (+' - '/)
+
Addltlon: 6 + 4 = 10
sI

END OF PRACTICAL 11
********************************************
37 Be AatmaNirbhar. Use Kaagaz
38 Be AatmaNirbhar. Use Kaagaz
39 Be AatmaNirbhar. Use Kaagaz
Practical Performance Output
Subject: OSY 22516
Practical 12: Write Shell script to find out whether-
Given file exists?
Pogram code:
Write a shell script to find out whether- File read, Write &
execute permission
: $ #Practical 13 Wrlte a shell scrlpt to check and grant Flle perMlsslon
: $ #PrograM code: Wrlte Shell scrlpt $ #PrograM code: Wrlte Shell s
crlpt to flnd out whether- flle has read, wrlte and execute perMlsslon.
: $ cd Practlcal13
$ cat>PR_code_RWE_perMlssi.on.sh
# ProMpt the user to enter the flle path
read -p "Enter the flle path: " flle_path
# Check lf the file exists
if [ -e "$file_path" ]; then
# Check read perMission
H [ -r "$fi.le_path" ]; then
echo "Fi.le has read pemisslon. Practical performance & output of
else
fi.
echo "Fi.le does not have read pemlsslon." practicals for OSY 22516 
# Check write perMtsslon Download Now
lf [ -w "Sfi.le_path" ]; then
echo "Flle has wrlte pemi.sslon."
else
echo 'Ti.le does not have write pemissi.on."
fi.
# Check execute perMi.ssi.on
if [ -x "Sfi.le_path" ]; then
echo "Fi.le has execute pemi.ssi.on."
else
echo "Fi.le does not have execute pemissi.on."
fi.
else
echo "Fi.le does not exist."
fi.
$ bash PR_code_RWE_perMi.ssi.on.sh
Enter the fi.le path: PR_code_RWE_perMi.ssi.on.sh
Fi.le has read perMi.ssi.on.
Fi.le has wri.te perMi.ssi.on.
Fi.le does not have execute perMissi.on.
$
Exercise
(1) Write a Shell script which displays lists of all executable files
in the current working directories

Practical performance & output of


practicals for OSY 22516 
Download Now

(2) Write a Shell script which displays lists of all files in current
directory to which user read, write and executable permission

Practical performance & output of


practicals for OSY 22516 
Download Now
40 Be AatmaNirbhar. Use Kaagaz
41 Be AatmaNirbhar. Use Kaagaz
42 Be AatmaNirbhar. Use Kaagaz
43 Be AatmaNirbhar. Use Kaagaz
44 Be AatmaNirbhar. Use Kaagaz
45 Be AatmaNirbhar. Use Kaagaz
Practical performance & output of practicals for OSY
22516  Download Now

46 Be AatmaNirbhar. Use Kaagaz

You might also like