= =
_|LAwho Commands. with opHiens =
{| Desceig oe
Sarne_aS =b ~d ~= login = 297)
Sb esi csOperating System (22516) 2
XI Practical Related Questions
Note: Below given are few sample questions for reference. Teacher must desi
more such questions s0 as to ensure the achievement of identified CO.
1, Give command for present working directory,
2. State currently login users by command.
the status of super user.
XU
1. Acquite the status of super user.
2, Write output for following commands
i, Swho;clear,who am i
i Swhoitty;date
(Space for Answer)
3..Da0w...unix. agin... procedure... dagin.-cmd..
4, Salmte...tas olp., of... Han eed. $8.20, -|
S.... whok...is...keanel, MAN anni a
vidled....by.082..
systen..call.) State
6... Wlhak..a%e.....Hhe any pron
ean.
‘Maharashira state Board of Technical Education[Front
Date
_|_sor_Exemcise = ui
[a Ana => i> $ who, o/ Pp ~ clear , euho ami
“L_adentnl Piao) po 14 soy ~16linaa: aig Cro)
cleag ofp. = clear
‘Tiy ¢-caho, date. _a)p = tous Foniad
|_admint eT 23:45 (:0) Idey/ pts.
| Wed | Tulle 00:98: 04 Sy 9ol42__= = version = oukpul version tala
= ton & exit
Ss aialp = Display the help &Tntaupt toanefer, oontaola to a3 kernel
[G0 s/w ienply needs to setup 2
R 0. Co qiDate ~
| 4) ie c_package. & gives its
| poten EBD 2
yiden sapooat for 4h
-booti 04+ cha
out), Cant Gury e
h ay4rnbal ic links |
jetc I (1 dy)
Pasometerd —
2 lot — ayst xp =helpews C> =| OF a)
arden: |nsséry C>> 110/010)
Sy wisb—base C7= 30.4)
za piPogo No. J
Dato ize
CEX
O cla stands for
ical
user, interface,
® Tt gmavides epraphicaL @ st paovide, enviaooment.
LL ieterface echtch have tools 4 fi ‘
wysite command _an
\ike pointing devices rahich
der i percition with comma nd iD
hel of ot pophiel contol. ext eeB2.Ubunt..9/@.. center,
> system, geting
WX ANTe 08 Linux Systen.:
GUT, of. MOK, SYSTEM... WR AAH. IB. Chern
Loterdace...AHOk, USES... MOU%. 2
hunon....carmpiub er,
HOON... MEOS.UNE....A.codfad...caN. Pe, enanuolated
2.0... A CAKE OD,
meneé.....ic0N9. ame.,..u9.ed
OMO....... CONSE... Ode, on gcc
: Miny....i8-08ed...1.0...0,..00N80le...made...dhare
1S. AML conver. scmeen. shows text only
XIII Exercise:
1. What are system calls provided by file management?
2. Draw and explain services provided by operating system.
3. What are system component of operating system.
Maharashira state Board of Technical Education 7Operating System
XI. Result (Output of Command):
Geneaabeds oukpuk 4S. waiien on pag.6
XI. Practical Related Questions
Note: Below given are few sample questidns for reference. Teacher must design
more such questions so as to ensure the achievement of identified CO.
1. What is name of your login shell?
What are various options of kill commands?
What are various options of ps commands?
4. Explain about exit command.
5. List the system calls for process m:
anagement.
(Space for answer)
Explain... 22C.....oith. it
Descwibe. Pek. 80 eee
8, eae ain esas aed oid. ingen.elo
Poo no1ns
So
£00700
00
100200
00: 00: 00
00: 00 : 60
» 06% 002060
00% 0060 1
00:00 200
0060 %00
00200200Wat) belongs ta
® An . Diffewence bet” eval
> SleeP C2
dmead
object clos
{5 used eohen
hia system call
! wonts bo(Space for answer)
gue. y.cmd =
adinin, @adnnin.t. =.opbipler....880.:.0%. sb. (000.
ne of...18..command... ;
Olsandsist all. dhe.Aieel files including hidden
Ke.....atarting....datth...0K.! $
@ lsum. cies ACS. ONE. ued Model
@ Asuka lisk.Me ee inclex. .nunobee...
so lisch....corkh.... aks FN OR permissions.
ee aes
De.nok...pavomk.... betense.. _everscoaiting
Pomp... heleme..cvemombe.... :
Do...0ok....NEMEE....05.... Cxisting.
Gv ermide....uSO4... bac... Sex
DEST....05....netsrna
“LX.
file...
Que ay....Uee....of 5p Nit..cm
eee Sane $5.2 tO. BOVE. HAR acsnane
Sle.iate...smaller. on AVES vonnDefoult...c126.
Maharashira state Board of Technical Education 29ear
OE acluiaueh
| exercise = feos 4
quea). Ble _paocesain commands 4
pC le ht | my Split, auch fi)
PONG bend. Si ls :
ueay to lines will be displayed eoith head.
_ command if ee a aoa
gue 4) O $ CO chapter | _chapter.2
ae of cha pher {txt —
Be $a aucce: jeal ta _chapker 2-44,
ae $ ts
aid
2&4
enter eecond number
16
ehter thie number
19 a
ipumenrentos: cumber
d !
”
ve -
as
= oe Sep esate =
if Li expry $ num 7 $1 289.03
Ps)
ai
je-ste py eB.)
dono
sf C4 £- 29, Mie=4./pmme. ch
Enter a _numhes
3
LiS not a oxime numbe
echo” Enter a number ”
cod num
Se fou —
then
. wr
elif Chom -at o>
0
7|
progr Code
ceute shell seript by ¢
onsidering
F ing exs i
et by FOR loop & Cxample like printing table of given
; g
qu
oA
spin dash
ial
_ make Sure command fine argument are
UMENtS are passed to the script
sis#-09 0 | :
then
echo "A shell seript to print multiplication ta
«ho "Usage : $0 number”
exit |
Jse for lop,
foriin {1 "°"
do
echo "Su $i = $(( $i* $n))”
‘
done yjdering example like print
» consid
2, Execute shell script by ©
by FOR loop.
neat
eet
eee
er
*
i Pec
Sen Shell Script to print inverted half pyramid using
|
rows=5
Audiecaws: =; i+) (
de
for(i 1s =: 4)
do
echo a“ "
adminlia@ admin -OptiPlex-380:~$ yi pyramid !.sh
admin] @ admin] -OptiPlex-380:~$ /pyramid|.sh
tetas
sere
tee
ee
.
XII] Practical Related Questi
3] Write a shell seript to disp!
Code- :
# Program for Fibs
# Series
# Static input fe
N=6
# First Nui{ ee "The Fibonacci series is : "
for ((=0; i