Student ID
periment #
Student Name
periment Title: 1
0 develop
proficiency in fundamental command-line operations and redirection techniques
a Linux environment.
scription:
se the shell prompt, execute commands with correct syntax, utilize input output redirection
sic knowledge of what Linux is and its common distributions (e.g., Ubuntu, CentOS, Fedora).
escribe the functionality and usage of the following commands
J.J skS f, ,es o._nd. oJ.<eao'<i es '"•" -¾he,_.
C,\)'('~ d.-"i~'&
Is
<::d
mkdir
Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Course Code(s) 23SDCSU.A/E/R Page 1 of 197
Student 10
Student Name
pwd
rmdir
mv
C-<ectt--es
a.n Q~~ 'e. o < U('ckltes
a_
k, \e ~ -t-tMe.s t:[Link].
touch et,'.- ,t-c>..:C.'<°' ('euJ- ~~le :t-:iJ·
I,
cp
-
, Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
~Course Code{s) 23SDCS11A/E/R Page 2 of 197
Experiment #
0' Student 10
Student Name
Date
cat
passwd
head
tail
Course Title Linux Administra tion and Automatio n ACADEMIC YEAR: 2024-25
Course Code(s) 23SOCS11A/E/R Page 3 of 197
Student ID
Student Name
grep
Standard c_L) ::> ~eo.,re.c.\S , n\>o~ +'(OcY' CA. ~-de 4C>
Input O.. '
C OMC'f'Cl.(\O !> S-.\:dt 0 •
Redirection
(<} i"\,.. c~~ ~ ""'~""\e•i')t-t • ;> re:tc! E> con.\en~ C!U\d
d.~a.~•
de-tao t ~ ~ 'ace w'ne<f> °'" ~ 92(\0-s i ~
M '( ('(\Clt •
Standard
Output (?J ~Qe~[Link].+5 o~~~ f,oe"<'\ a. ~ard..t-0
Redirection °'- ~le
{>, >>} C?">J". ~e.d,,ec-\: ~ ~ ' = f<om a . ~ ( } - ~ o..
f\ \e, Q{>~ic\.9 ~ ~le. 'it:: 1 t ~Sts. '-
(.2. ~): ~ed:i,cc¾.5 [Link]:,d. (?'(Co'( ~ n.
Standard .r; te
Error
Redirection Co?.>-:>) : ~e ~C\d s s ~ d. <2..~°' -e.o o....
{2>, 2>>) f,,e.
Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Course Code{s) 23SDCS11A/E/R Page4 of 197
Stl.~tlO
Stu.-!~tName
~ oc:ect,:,q, stru:t"...tt b ~ p-oiect
• ON,.~~ ~·n ~ ~ Project\Vorbp.-ce.,
• 1.-S~ ~ " ' - t \ \ " ~ a-Nte ~ subanctories: docs, scripts_ and ~~
~ - ...... 6 : . _ ~ . ~
~---""'
• ~-~ t~ ~&..~di. Ktory and aNte ~ empty fi~ n ~ projffl_notes.txt.
• o--~ bad to the Pro~\\•ortspace director,.
~-:-d~...'€'f~tions:
• l:'.S0! ~ ~ mrea011 y. aeate two flnpty files named [Link] and [Link]..
• ~~~Fi~ prored_notes.txt from the docs cfarectory to the ~ta dirfflory.
crc:!d ~"""era~
• ~~ oocs ~tcwy. aeate a file named instructions..txt and write the first few tines
c i ~ ~ - ~ ~ o r the echo command.
• ~ the [Link] 5 ines of instructions..txt using the head command.
• ~ , , ~ li1st 5 lines of [Link] using the tail command.
• ~ y o u r ~ password using the passwd command ftf permissions allollr;.
• ~ a fie named [Link] inside the ProjectWorbpace directory.
• PcpcirJ! it with some text that indudes the llltords •error-, ""warm~•, and •into•.
• Use the grep mmmand to filter and cfcsplay 611c:S containing the word •error-.
• ~ the deanup...sh fi!e from the saipts directory.
• Ra:no¥e the data directory along with its contents.
f ro~, ~~ec~ wor~c:e
~ ls
1 -[Link] P<f8eU:\JJO(~~ace/
I ~i.' < ot>(.,~
f N\kdit &:x,P ~5
i ~\ ~ 0-0j- ~
Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Cowse ~ s ) 235CCS11JJE/R Page5of197
Student 10
Experiment # Student Name
Date
lS
C-<~ [Link]/
-lOV ch (>(ltlec:l _ (\0~ •t,t..k
(:J ..
c.d sc.-r,P ts /
-tovcl' ~e.~~.Sh
-toJC-h c.,\01t' uP· S'n
Rs
eel doc..5
c,{' p<~e.,e.~_'(\o~C?S. -t ,t.~
ca ..
C.d sc..~~()-'"S /
J..s
ed. doCS /
\f~c() ~~\X..•non~. t~k
CQ.~ t~O~\Q(\S .t~~
Cl
b
C
i
t .~, \ ·,"S\,cuci•~. t x:~-
f
M
"
0
p
ff PClSSUJ~
4 en.~ Q~ -ti \e • ,t-,r"
Sourse Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Course Code(s) 23S DCSllA/E/R Page 6 of 197
Student 10
£xperirnent #
Student Name
Date
• Data and Results:
~ •re.«o c" \0'3 .+&,\-
cd sc.~P\"'S
(rt" ~ctct\JP-Sh·
~a.. ~ msott •.-
o.~ l"le0-\-t<X\e..ol.- .fh<? cocn~ ~-ce.. IC'\S~..,c~ed.. ~o<
ectch S~Q.d~c. needs ~ch. o.s
-ro, [Link]()cd. c.n(l.(\e~cei, ,~ os,ce.~ o:u"<l?.l\t pass o:>oni
~tS~ OX'O- -then tt c.,lro.t1--0e.~ -the... ~o.$ c:>ocl- as we.
(2j\tQ-C-ed •
,..__
~Course Title Linux Administration and Automation ACADEMIC VEAR: 2024-25
~ourse Code(s) 23SOCS11A/E/R Page 7 of 197
I I
Student ID
-Experiment # I I
Student Name
Date
• Analysis and Inferences:
--..s 0 (\d. ,C\ ~atlc e ! --
~
\~S
A"oTo(? ~-.<OctoC~ -3\'(l)CW°<e. c(~e o- ~~SQ ar<?, ciDCS, so~() .(S ,do~
Svege&H> Cl1' o~I'\ • ~~O< ' fu< P<°C\)c.c.\- ~ leS, se~~ C\8 d,[Link]\"9"\.fat~
[Link]<:s) ,(_&-"<·.p,t;s), ard oatct. C..da.~).
·) co~\< 'j \>('Q}e.c..\ _C'O ~ • ~-t +o • d.o±a
f\<:/<C.0 ~~ ~ ~ea : ~-l-o.-
·) CCe~ \"~ \.OS• ~.\. .S~. st1 a ~ \ \oei '?,IE' -to -t"C"Ock
~
~,co~etk a.C.~~tA·fe.5 • •
,) u ;'1) <3,m> o 0 lCJ8· ~T cl0'(01"S\:-m. cgeo.'<'cti• "'8 -to' s~d~. c.
5
efe!'\5 (ecco-<SJ wl-tn :0 -tne Lo3,
-) ~crov; ('.3 c.,tea.n <>Q -'oh ('(I.~~ ~ ·,rd~ CCP? \ f & ~ co-c<en«';>--
oeede~
•J {l(?('n()v:ns ~e d,.o:\a d:',®0-c1' l,l't'{)\~es -&e dn-4ct is no Coree is
"ece~a.1t, o< rt\ti~ pe.. "\e.~~ o.<~.
--
~e.J . OC\ -\he <2.~c1.s.e , -we. C,!),,(\ ·,C\5;e"C ~ ~-;-s 'is o..
\~ce ~
S~ to< a.~ ~ ~~e ct. '"CN? di-c ~~ «..~..,c:hxe [Link]
.file C:C-ea:Uc,;, SuOOes.{: Cl,C'\ O't'~(\·,t.e,d. [Link] -{,o P'aC\ Q3'~
~ w~e,c,lc -ce50\)t'"C..e<i>, \he. d:I!.. <ft ; "~t ue1: r~- ~+ ~
lo9. -t,...c:\' i <'C\ \)\le~ d(X. O~ tp_,t;OC\ Cl.C\.d. tc'o-(l.c.l l\~ 0 f'
~co je~ cu.~ v~-tes •
• Istratlon and Automa tion
Linux Ad min ACADEMIC YEAR: 2024-25
23SDCSUA/.E/R Page 8 of 197
Student ID
Experiment #
Student Name
Date
2) Write a command that:
• Takes input from a file named [Link].
• Sorts the contents and removes duplicate lines.
• saves the sorted, unique output to [Link].
• Redirects any errors encountere d during the process to a file named [Link].
• If the [Link] file already exists, It should append the new results instead of
overwriting it.
rocedure/Progra m:
Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Course Code(s) 23SDCSllA/E/R Page 9 of 197
Student ID
Student Name
Data and Results:
"~ u~ : '\he co" 4eC'-iS o-t i fl{>t)t • t::t..t , (>)'n, ch is ass ~
1
,(:D cCX'.\d1Cl tet! da:tct, oC\e co~e st ~e" ()',r<:.
o.:J:-~,);. ; '1'f\t? So'-tci. tt.<'d U('l~que liC\e~ ~ t~Qt • ,el.-l wtll
'De. ~~<\-:C?A ,C\ ~ • t-:)t:t.
t'<o<G : I)>~ l) tSSu?S -e..«AJ~ t?d. d.\.:C\n8 the Q<'O C~ta ;,
~~\e C\ck fo,)00, ee<t'('\~SS~O<\ cleo'.®' ') w~ ll be fo_ffied.
' <' e«O'( S i.Q9
-
~ Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
_Course Code(s) 23S0CS11A/E/R Page 10 of 197
Student ID •
' (
I
.
Student Name
Analysis and Inferences:
W.c\<3\c::,·. '(i,e C(X('O"anci ~o<-ts -tt-ie. dt:tlet ~,cs-t- ~ce
'<"erC'Ov'i f'8 c:i,.u()lico."Ci, ~('1£,\l-Cl "0 -&a,t. a.U d.~• o::ife.S
ct'e <e.~re e~c6'1El8.
,o< ~a.~H('8:,.
~ e_«ofS "tt-o.~ occu<' dot"i~ $0(-\tC\8 o< ~lG ~r~ ate_
~0. °i(\ Ce_'(<D{!', · f03 \ UJh•ch \'b CC\X:)a.l ~< +rC>JblBS.~2)
\-tt)~ 1~vE>-\•~ -t'<'e. .sc.-<1~\ 's e::,.ec.\'.>tiO (l •
~(>eerdtl\0 Res0tts ~
Sc.t'i. 9l ct>~ -.,e5 ~,cQ...\J"ic,JS o~tS, t.,u "''ch rn1snt bQ.. [Link]
~< C.,u(Y'l\)\o&l\1e c,..o.-t-o.... collect~" •
-
._Course Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
..._Course Code(s) l3SDCS1WE/R Page 11 of 197
, r , t .
Student ID J J ~,.
Student Name • l t 1
le VIVA-VOCE Questions (In-Lab):
. What is a shell?
$Y1el' i 5 e.€,[Link].\l ~ o.n ',(\-t ex Q<e~ l' -tha.t [Link] ow5 f::ICX-.l.
co~(<l.)0; co..-t-e LJ.);-H"l \:! oo< C>~e.""o.-l t "<?i S~Ster n • l{ ad-s a.._s
b(\d(:W ~¼J eep u.e.e.r and 0nd.12.<~'in8 s~s. ~rn .
2. What is Bash Shell?
~ ;~ (-0{>0\o-'' ~ret l ~r o~ . wntc h (Y'\C?af1S 'i:l's a.
co('(\r<'£lC'd- J..tN? ' " ~ use d to l(\'\e<a.C-t w~1 h ~~
o('(?<a.~'iC\t) St,S~cY'\ •
er?
3. What is the difference when the shell is running hash (#) and ($)
charact
=) •.~rne "-ts : \n Qiasn 'cl cclQ-tS, a.~-tn; o:, ~ot\obwitlnes h<2ll
a. 'ff- on o ..Fn.e..
•
' COC\S~cieced. a c..o ('(\('COO~ [Link] ls '8 C'OC ®L
~e,ne,\\ oe~t~-. ~rre snetl _OQtton s can bQ set- <>S\<\9
ct{#-) -'21 lhe
"~ see.c, ~. c 0 ~ \o" #
Di 1c i5 £<>< \Jo."' table 0t-~ nsro", <Y Cf\(Y')Q nd ~JOS-tl'tuttOo ctnd.
s~e..c)a.\ oS>es •
4. How to display the content s of mult;pl e files at a time
'the. b~('('\{>t£f vJO.~ to d.i.S{'\.Cl~ ~ ~tet\ -1::S of: f\'\olt
~Dle
~1\$ -;5 lo~ uS"'B c.a..~ O,C(IC'(tt-Od •
5• What is a Regular Expression?
"Ce5U\O.( ~~tQ S5lc j\, ~~ (' ~ho(- \-ef-e d to ~{\Q k" O'( ~e,ic e_
~ ~en ce o-~ c ~ s """"'1-.,(: ~ne s a... sea:cc.h fl::r:(,{e~.
Course Title Linux Administration and Automa tion ACADEMIC YEAR: 2024-25
Course Code(s) 23SOCS11A/E/R Page 12 of 197
Student ID
riment #
Student Name
vided with a text file named [Link] containing lines of text with varying formats.
ou are Pro
'te a command that:
ri •
• searches for lines that ~ontam a valid email address (an email address is defined
as a string with the format localpart@[Link]).
• Extracts only the email addresses from the lines.
• sorts the extracted email addresses alphabetically.
• Removes any duplicate email addresses.
• saves the result to a file named [Link].
ere,t> - E, ,a \ 9-00ll (>O.'[email protected]"I •·(:.\ 0 '
so<.(: t
l.)(\'ict, '> [Link]• \. t_-,(.:\::
Sourse Title Linux Administration and Automation ACADEMIC YEAR: 2024-25
Sourse Code(s) 23SDCS1WE/R Page 13 of 197
Student ID
pcriment #
Student Name
ate
• Data and Results:
d.a.-la. • -{ X..t e,p~l "\ "O te::t-t
c,.tid:(CbS .
eN'OJ { . ,E:-x.~ a,~" '"~ a. so<.\Cd t:s ~ or;. vC'\~uC? eo-o:1
a.&.c:\:<a~ • ..
e.:~~<J i Fm ("t"\ 0-0-~a..-t-:ic{- •
Linux Administ ration and Automat ion ACADEMIC YEAR: 2024-25
23SDCSUA/E/R Page 14 of 197
Student 10
Student Name
• Analysis and Inferences:
cornr<'ai'd C~ •Ct err H ~ e~c:\("a.C~S ('" Qtna•l a.~ t"ess.s es
\'('\,S
,o<"'S a.('\cl ~'iPeS
~fOC"f\ a. te)( .~ ~~\e oS~ "8 [Link]:r ~'X.~SS
-tti ~ ou~u-': t'<'t oue h So< l a." d tJ ~''l fc, < ~,o C<?SS~ "9 .
'1 t\C?. c-eeu\a.l e.. ~Q ~,o " (_<l.('\ ~ 0-cl~ \JS.\C?d lo ('('([{ch d~W
e.<v,cf, l o.&.d. CC?S s -%, cv-a:ts ;-£ "eoct>d .
~i ta. tio n rrli8 n-t
[Link] ocxta. S?t-S, ~e'("\'o<rnonCC? oc:>H
'oe. ~- ro d.
t,<,0< [Link]<3 -co.n be? o&d-ed to
ho..ndle. po ~t l a.l ~~~
( -tC)(cYO.~ s.
lH,a? -t,\<? ('\~ ~OU .C\6 - 0( ~(\\ /o \~ ~ &<" 'OJ
Admi nr•stratlon and Automation ACADEMIC YEAR: 2024-25
lA/E/R Pa e 15 of 197
Student ID
Student Name
Connect to a remote system using SSH with the username student and the IP address
[Link]. After connecting, create a directory named remote_test in the user's home
directory. Provide the SSH command and the commands used on the remote system.(Thi5 lab is
ideal to perform in Redhat Academy)
Procedure/Program:
f _ssh e\\xt?nl @ \Ql... t GS• l • l 00
ACADEMIC YEAR: 2024-25
Linux Administration and Automation
Page 16 of 197
23S0CS11A/E/R
Student ID
Student Name
• Data and Results:
Toe! SS rt COC"'rt'a" d a.~ '"""e di<e c:te< t1 c.'<l? alco"
C0(<'\Cl'\Qr0.
A S\JC .te~ ~t 4aS H (OC\t'C?c.~ton to -th~ m~
-s~s~"" [Link]- "the c:<ei~,o" o~ -tW1 tt?M o~e -~~
d\<e2.c.~<~ 'i" th<?. t>SC?:~ 's hom e d,.!-<eciO•qj O<\
~
t'B'< 'O~ ~~s.~m.
Linux Administration and Automation ACADEMIC YEAR: 2024-2S
23S~llA /E/R Page 17 of 197
Studen t ID
Studen t Name
• Analysis and Inferences:
~ --n..tS e~"~ iSC? d.e.\'Y\O<\S'U'Cl.~ t...._ r-
vu.:>
i C"
I'.'!'> ~ H L>S0-8 C? 40
•")'''
CC""ed -tO a ~4C ? b tjS~e M •
c.<-ea.-tlon o~ a cl<cect-o~!J 00 +he
) \l Sh()\.l)c:.aS?S t:he
gerro"=e <;~S ~ rn a.~ -c, a..s ~uh~ n 9 o... CDC\ re~ ,o"'
•) ·n-,e <JY<'('('(1('4 ""k d'r ts. a. -\[Link]:?crlctl
d,\<ec-lot ~ f'('\!). ~B<2.m€'C\.t;- .., C\ J_~n O l< '
·) <bS ~ ~cov~d(,s 0... [Link] C,..NJ{\C'l(?l w <12 ~e access
Evaluator Remark (if Any):
Marks Secured:_ _out of so
Signature of the Evaluator with Date
• • ration and Autom ation
Linux Ad minist ACADEMIC YEAR: 2024-25
23SDCS11A/E/R Page 18 of 197