Professional Documents
Culture Documents
Date:_
Practfcoul2
Aim aloraînq wih nnub Amd init e
Soluhions
GRuB Oroce
axuh Ataads Y he nandest acXDAum9anol unied-
a0ot Laade
EAa neAu baot Ame opehatinqAyslem loade a t Red
Ha 2 entasrageyou to use as he dafault hat laades
fastead Lela
ub eena a much mare plabaxahe raphfeak Ineskace-
At baot ne apesale n the Aameashtaa ging uaua
bakic chnice betuer uhich instaled behnel J
un
proce
Init Proce u Steps as ollas
0Lniialfgalian
Re Serípt
Run leel
Sitoinq aa Ocmd shudhinsa down.
AtT tude
Page No:
Date
AEtude
Page No
Date:
Pacical
Aim Batic lfnuk Comaamds
Salufan
A clixectanu contemd uou knou uindauus uau mauld-
kns dhat-he coranaanddis i used to at the cantedd a
a dixekan To i u , he e Lammand fa ed o i out
ilea aad dfrectaies AHLibuhe A commomoA
Dpions
A-Hiddem le heqia idh a dot Lese ane celaia
hiddemle in eeh dice.ckaaha namalycdant Bhau up
n he lisn Tae - a oplfanLa) 1Mats al Hhe biddemles
alonq with he othesila
8-Ib"h°Atanada go humom xeadnble 4axmat uwhich iln
displayLile sige in eadye-undesatanad orenat ie M_ox
M gar Ka omd for Due to this the size e4le
in am easy-to- undesstamd rmat
-f hia eommomd w mask alldhe erecukabie lex
uith*amd lit Abe directones wh 2 chaactes at he end
dou cam reueAse the odes eHheles uthhe -
evehse) opfon uth he names soxtedinevense AsCl caltahiag
Aequemte
-B The -2oemstre)_apdion lith_audirectmie amd
Subdiecdaies laa director ttee he hauenaal e
Ahe direct hee iadone ecsaiuely hese axe na
Sub dhe ctoies elt,
ATHturte
Page No
Date:
AHTtude
Page No
Date_
Ophians
>WC Printa the aurmbgs s lines in a les
wcw PMnt tiae nuabes a uaxdp in a 4tle
2C c Pisplays Ahe count et chaathess aama le
wempzini8 Ahe Count o ehakacteky aona ale
w-Linlk anly he leangla dheAae longes Mne io
a ile
Atf tuce
OUTPUTS:
rootgattt-VirtualBOX: /hone/attt
. xt Ptctur
ocument . txt fule
oot@aiit-virtualBox: /home/atit#
rootgalit-virnuainor: /home/elt
rootatit- vir
Lus lBox :/howe/at ttM
test
root@atit-virtualBox: /hone /atits nkdir
oot@aiit -VirtualBox : /hone/aiita ls
Downli file4.txt
ftle2.txt Ptctures Tenplates Vldeo5
file1.txt file3.txt Hustc
root@ai it-VirtualBox: /hone/aiit
Terminal
roetailit-VirtuelBox /heme/eit
hore/ali 1
roatgl
VituaiBo
w r l e 3 , tat
/homs/alit
E
Te jhore jat i i
tualhoxi/honejsttts cal
t 22 23 2425 26 27
29
Salutfaa
1Su he su coraonaand A wed ox adicating Ahat he we
a o ust amd has all he pesaissiansk
ArTHudel
Page No
Date
ArEtude
OUTPUTS:
root@alit-virtualB ox: /home/ailit a
atitaattt-VirtualBox: $ su
oot8alit-virtualBox:
assw /hone/alltw
rootgalitvirtualsox /home/alitaE
root@aiit.VirtualBox: /home/aiit# ps
ID TTY TIME CHD
1995 | ts/ 00:00:00 Su
1996 | pts/0 00:00:00 bash
2005 pts/0 00:00:00 ps
oot¢aiit-VirtualBox: /hone/atit#
root@alit-VirtualBox: /home/alit a
root@aiit-virtualBox:/home/atit# ls txt
Tenptates
file1. txt
Tle2.txt file4. Pctures Vtdeo
ts
root@aiit-virtualRov. Ih rm Tile4.txt
ontaai i+ eelE"
root@alit-virtualBox: /home/aiit a
VILTeS
root@aii&-VirtualBox: /home/ait
root@allt-virtualBox : /home/atitz df
Ftlesystem
udev
IK-0 LoCKS
40S852
Used Avallable Uses Mounted on
7Oev
9 20 1332 98588 28 /run
Tmprs
'dev/:
sdas 219412 7304728 1420648 BA%
tmpfs 498588 498588 O % /dev/shm
tmpfs 5120 5116 1% /run/lock
498SB8 498588 Ox /sys/Ts/cgroup
tmpts
d po O100snap/bare/s
/dev p Pcrel8/2246
o 100 POrel8/19
dey/loop3 224256 224256 1804/66
/dev/loop5 66432 66432 o 100% snan 1514
/dev/loop4 224256 224256 0 100% /snap/gnome-3-34-1804/72
/dev/loop7 52352 52352 0 100% /snap/snap store/518
/dev/toopo o6810 06810 0 100x Isnap/gtk-common-thenes/1519
/dev/lLoop8 52224 52224 0 100% /snap/snap store/547
/dev/ loop10 33280 33280
100x snap/snapo/13640
/dev/toop 31872 31872 0 100% /snap/snapd/ 11036
/dev/s 524272 524268 1% /boot/eft
tmpfs 97 16 6 99660 1% /run/user/1000
root@atit-virtualBox: /home/alit#
ities Terminal Nov 17 10:56
root@ait-virtualBox: /home/Jait
root@aiit-virtualBox: /home/aiit# echo "hello world
hello world
root@aiit-VirtualBox : /home/aiits
root@ailit-VvirtualBox: /home/ailit
l="ls
root@allt-virtualBox: /hone/aiit# alias -
rootdatlt-vtrtua
total
lBox: /hone/alltw
nwxxrX at atlt 4096 NOV 10 14:16 oesktop
drwxr- xr-x 2 attt atlt 4096 NoV 10 14:10 DOCUMen
drwxr-xr-x 2 atit atit 4096 Nov 10 14:10 Downloads
rW-- 1 root root B Nov 17 08: 52 file1. txt
ailit@alit-virtualBox: -
0ot@atit-VirtualB0x : /home/atlt# ps
ots/0
1408 pts/0 08:0
00: 00:00 bash
1701 pts/0 00:00:00 ps
oot0atit-virtualBOx:/home/atit# ktll 1408
oot(gaiit-virtualBox: /home/aiit# kill 1407
Session terninated, killing shell. . . root @aiit-virtual Box :/hone/ai it# .killed
Termina
LLtgatL-VLtddtBoX**9
root@alit-virtualBox /home/ait
rooteaiit-virtualBox: /hone/aiit# grep this filez. txt
thi is file2.txt
rootatit-virtualBox: /hone/aiit#
root@elit-VirtuelBox /home/elit a
RX errors dropPped
TXpackets 778
overruns ane
bytes 84a57 (84.4RB)
TX errors0 dropped 8 carrter o
0 overruns coll1stons
Lo: flags-7leUP.L00ACK RUNNN tu o10
net 0.0.1ne tnas 300.0 chos
neto
RX packets 263 bytes 22054 ( 2 2 . 6 K8)
X errors o dropped o O v e u n s e
packets 263Oppeo
bytes 2205* . 5
o overruns 0
Car rter 0 coltlslons 0
Co
rootgaiit- virtualBox: /hone/aiit#
root@alit-VirtualBox: /home/ait
root@aiitVirtualBox: /home/aiit# man ls
root@alit-VirtualBox: /home/aiit aE
LS(1) User corimands LS(1)
NAME
ls list directory contents
SYNOPS
1s [OPTION].. .
[EILE]...
DESCRIPTION
List information about the FILES (the current directory by default) .
entries if none of -cftuvsUX nor --sort is speci-
Sort
fied.
alphabet ically
Mandatory argunents to long options are mandatory for short options
too.
-a, -- ll
do not tgnore entries starting wt th
-A, -almost-all
do not list implied . and
- author
-b, -escape
print C-style escapes for nongraphic characters
Solulfon
Totmduchion
The V edito ia the moat populag amd claic tect edtr
in the Linux 4arail Belgu ase sanme reona whích make-
a widely use Lditax
Aaauailable in almost el tinus Distaibudfon
4 worea alang he 20omeacbeoss dijesemt platama
Ditibwliana.
Operalion Mades
wo_mode
1 Commaad Made oThi mode emaelep you to penon
acnainialrative taahs use Auch as àaving the ea, eacecutins
the Comma.cucdssvfns e csar ysnain) amd pasting-
he lines o worda as wel od 4indingand eplacinq
| T h i onadeuhaBeves yov ype t ftepreted
Commaond
Siynax
ilenamg NEJ> ox L4ilename ExsriN
youpeci on cigkagile them the edior wald ope it
to you o editlse yau Cam Cxeate
example
vi-test
vf Edtting Commands
Ke Combinationa Funcfonss
nset at Cunsax go@)nto inse mode
Wte alte cuhoy gees tato focest oacdle
wite a the emd e ne (goes fno nsetoode)
SC Tehminate ingest made
Undolast chamge..
Undo a chamgeb to Ahe endire line
Inset a blone liae below the uhem line hen stot
O Insext a blama llne obore 4he_cwnent line hen tatt iaset omo
dd Delete line
3dd Delete 3lines
Delete Lonteats line ates Ahe eubsox amd inscat ne he
D Delete Conhes o line ate he CAuso
d Delete word.
Ldu Delele u wood
Chamg Dvd:
Delete CumseY at the chanactes
X Blambspace.
Replace chahacAeA.
OuehwdLe chahackens omehsay oowosro.
S Aubstkute one choaaades ndeh cwnsox Continue o inset
S bubstitute emdire line amd bagto to Insent at Aa baginnng s
Chamge CAse o indiutdual_chshaches
Capy nd ase
ReyCambinalfaa Eunckions
Y Copies h cumeat line-
Copfes he Cubhet ward om dhe chosactes Me
JOwes-Case wussor o n undil tae emd dhsws
P Pla he Copied teoct akter the cush
P Pua the tamked teoct kehore the csor
SAing ad closins he le
ley Combinakon funcHons
Shit zz >Save Ahe 4le md ouite
:w Savet h e ile but keep i opem.
QulQult withou Soaving
Qut ced
wa Soue theie amd 9it
close all le
OUTPUTS:
root@aiit-virtualB8ox: /home /aiit# touch pracs
root@attt-VirtualBox: /hone/atit# vi pracs
root@aiit-Virtualßox : /hone/aiit# chrnod +x pracs
root@aiit-VirtualBox: /home/aiit# /pracs
welcone
PID TTY TIME CMD
1423 pts/0 00:00:00 su
00:00:00 bash
1424 pts/0
2032 pts/0 00:00:00 bash
2033 pts/0 00:00:00 ps practicals test
Desktop tlel.txt MusiC
Documents file2.txt Pictures Public Videos
Downloads file3. txt pracs Tenplates
1K-blocks Used Available Usex Mounted on
Filesystem 465852 465852 0 % /dev
udev
tmpfs 99720 1 3 3 6 98384 2% /run
/dev/sda5 9219412 7558144 1173232 87%
498588 498588 0% /dev/shn
tmpts
tmpfs S120 4 5116 1% /run/lock
tmpfs 498588 498588
0%/sys/fs/cgroup
/dev/loopo 128 128 O100% /snap/bare/5
/dev/loop1 S6832 S6832
100% /snap/core18/2246
224256 224256 0 100%/snap/gnome-3-34-1804/72
Idev/loop2 66432 66432 0 100% /snap/gtk-connon- themes/1514
/dev/loop5
/dev/loop3 224256 224256 100% /snap/gnome-3-34-1804/66
0 100%/snap/gtk-comnon-themes/1519
/dev/loop4 66816
S6832
66816
S6832 0 100% /snap/core18/1988
/dev/loop6
Tdev/loop8 52352 52352 O100% /snap/snap-store/518
0 100%/snap/snapd/11036
/dev/loop7 31872
52224
31872
s2224 o 100% /snap/snap-store/547
/dev/loop9
33280
/dev/loop10 33280
524272 524268
100%snap/snapd/13640
1% /boot/eft
/dev/sda2
tmpfs 99716 60 99656 1% /run/user/1000
complete
root@aiit-virtualBox: /hone/aiit#
echo "welcome"
ps
mkdir practicals
ls
df
echo "complete"
Pracdica-10
Aimhetina P addaes amd caanecting o intenaek.
root@aiit-VirtualBox: /home/aiit#
root@aiit-virtualBox: /home/aiit#