15/11/2016
Introduction to Linux le system and command interface - WhileNetworkingWhileNetworking
INTRODUCTIONTOLINUXFILESYSTEMAND
COMMANDINTERFACE
Youaremostwelcometothispost.
Reallythankstoyouforyourinterestinthistopics.:)
Inthispostwewilldiscussabouttheverybasicoflinux,thatmeanslinuxfilesystemandsomeofitscommand
interface.
INTRODUCTIONTOLINUXFILESYSTEMANDCOMMANDINTERFACE
Nowyoucanhavequestioninyourmindthat,therearesomanyoperatingsystems,Sowhatistheneedtouse
theLinuxOperatingsystem?
>>Itissecure,whichmeansyoucancustomizeitssecurity.
>>Asitisanopensourcesoftware,youcancustomizeiteasily.
>>ItisfasterthanWindows
>>Lighterandeasy
>>Itisvirusfreeoralmostvirusfree
>>Likeotheroperatingsystem,itdoesntcrushsomuch.
>>Thehardwarerequirementissolow.
>>ItisgreatforMultiuserandMultitaskingsystem.
LetshaveasmalldescriptionaboutthefilesystemofLinux:
http://whilenetworking.com/2016/05/19/linux- le-system-and-command-interface-cli/
1/4
15/11/2016
Introduction to Linux le system and command interface - WhileNetworkingWhileNetworking
Generally,Linuxfilesystemsare:ext2,ext3,ext4,xfs,birtFS,jfs
Ontheotherhand,windowsfilesystemsare:
NTFSandFAT32
Inthecaseofdriveletter:
Windowshas:C,D,,Z
Linuxhas:
TheSATAdevicearemarkedas:sdx1,sdx2,.sdx15wherex=a,b,c,d
TheDVDdevicearemarkedas:sr0/dvd
TheUSBdeviceismarkedas:sdx1wherex=a,b,c,d
LinuxInstallationsystem:
IfyouareplanningtoinstallLinux,thenyoucandothisin3waysgenerally:
>>Dualboot:HereinthisbootsystemyoucaninstallLinuxoperatingsystemandotheroperatingsystem,like
windows.Inthiscaseatthestartingofoperatingsystem,youmayneedtochoosetheoperatingsystem,you
wanttorun.
>>Singleboot(OnlyLinux):inthisbootsystem,youcanonlyinstalltheLinuxoperatingsystem.
>>VirtualBox:Inthissystem,youcanuseLinuxvirtually.Supposethat,youareusingwindows,youdontwant
tousethedualboot,soyoucanjustusevarioustypesofvirtualizationsoftware.Somepopularvirtualization
softwareareVMware,Virtualboxetc.
Yes!learnsomethingabouttheLinuxfilesystem.NowwelllearnaboutthebasicofLinuxCLIsystem.
[ece@localhostDesktop]$
1234
Letsseetheindication.IveopenCLImodeinLinux.Andafteropening,itshowsthis.Soforyourbetter
realization,Iveindicatedallthepartsas1,2,3,4.Here,
1>>Istheusername.InmyPCtheusernameisece.
2>>Hostname.
3>>Thecurrentlocationoftheuser,inmycase,thecurrentlocationisDesktop.
4>>Thesignindicatesthetypeoftheuser.Generally,$indicatesregularuserand#indicates
rootuser.
InLinux,therearemainly3typesofuser.Theyare:
http://whilenetworking.com/2016/05/19/linux- le-system-and-command-interface-cli/
2/4
15/11/2016
Introduction to Linux le system and command interface - WhileNetworkingWhileNetworking
1.RootorAdminuser.
2.Systemuser(service(mail/ftp/games)cantlogin
3.Regularuser(Student,Guestetc.)
WorkingwithCLIinLinux.
Letstypethefollowingcommand:
[ece@localhostDesktop]$chshl
Thiswillreturnthis:
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/tcsh
/bin/csh
Nowletstryanothercommand.Suppose,youwanttoworkonlyintheCLImode.Soyouneedtopress
Ctrl+Alt+F6
NowyouwanttoworkinGUIorGraphicalUserInterface.Soneedtopress,
Ctrl+Alt+F1
Ifyouwanttologinasrootuser,thenafteropeningCLImode,justwritesuroot.
Example:
[ece@localhostDesktop]$suroot
Password:<Enteryourpassword>
[root@localhostDesktop]#
http://whilenetworking.com/2016/05/19/linux- le-system-and-command-interface-cli/
3/4
15/11/2016
Introduction to Linux le system and command interface - WhileNetworkingWhileNetworking
Lookattheexamplecarefully.The$signchangedto#,whichmeansyoucanbeabletologgedinasaroot
user.
NowletsplaywithCLImode.
Ctrl+l>>ItwillcleartheCLIscreen
Ctrl+Shift++++>>Itwillincreasethescreensize.
Ctrl+>>>ItwillreducethescreensizeofCLI
Ctrl+Shift+t>>Openanewterminal
Alt+F2>>Itwillopenagnometerminal.
Thatstheendofthissession.Hopethatyoualllikedit.Thanksforbeingwithus.
http://whilenetworking.com/2016/05/19/linux- le-system-and-command-interface-cli/
4/4