The Command Line Interface: Network and System Administration
The Command Line Interface: Network and System Administration
November24,2016
LCH:A,DanHastings
Introduction
Commandlineisfun!Beingabletousecommandlinebasicallyallowsyoutotalktoyour
computerdirectly,noextracolorsanddistractions.
Commandlinemakestasksmuchmoreefficientandsimple.
andmoretimeactuallydoingajob.ThejobsthataremostimpactedbyCLIarerolessuchas:
techsupportspecialists,systemadministrators,andprogrammers.Thelistgoeson.Whyisitso
important?
1. Simplicity
Interface
Security
Resources
Moreoftenthannot,theGUIgetsoverwhelmingandconfusing.Everythingisespecially
confusingwhenswitchingfromoperatingsystemtooperatingsystem.
OneofthebestfeaturesoftheCLIisthefactthatitssosimple.Itsjustawindowthat
youopenandtypecommandsinto.Howmuchsimplercanitget?Youcancustomizethetext
andbackgroundcolorssoyouwonthavetostrainyoureyes.CLIissimplicityatitsfinest.
Alongwithsimplicityissecurity.ManyGUIsrequirethousandsoflinesofcoding,andit
allgetsprettycomplex.Withcomplexity,though,comestheproblemofsecurity.Themore
complexanythingis,themorelikelyitistohavemistakes.Thosemistakescouldleadtohuge
problemswiththesecurityofyourprivateinformation.Whenyoustripawaythecomplexities,
youreleftwiththeCLI,andthatsaboutassecureasitgets.
BecausetheCLIissosimple,itdoesntusethatmuchofthecomputersresources.
Realisticallyspeaking,youreallyonlyneedtotypetousetocommandline,therewouldbeno
needtodownloadallofthedriversandprogramsthatcomewithaGUI.
2. Stability
AlthoughWindowsbasicallyhasthesameCLIoneverysingleoperatingsystem,their
GUIsareworldsapart.Ashardwaregetsupdated,sodoessoftware.Withfeaturesand
applicationsofeachGUIsodifferent,youcanbetthattheonethingthatwillstaythesameisthe
CLI.Stabilityisavitalpartofworkefficiency.
Whywastehours,potentiallydays,tryingtomasteranewGUI(thatsjustgoingtobe
replacedbythenextbigupdate),whenyoucanlearnthestandardandeverfaithfulCLI?Sure,
somemay
add
totheCLI,buttheywillnevertakeaway.
3. Efficiency
Whenworking,youalwayswanttobethemostefficientthatyoucanbe.TheCLIoffers
efficiencybecauseyoucandomanythingswithjustonelineoftext.Itsveryeasytolearnand
memorizecommands,butitsreallyhardtomemorizeclickinganddraggingamouse.
OS
Windows
NameofCLI cmd,DOS,Command
Mac
Linux
Terminal
Terminal,bash
ClickonSpotlightand
searchforTerminal
SearchforTerminal
fromtheDash,search
forTerminalinthe
applicationfolder,
defaultedkeyboard
shortcutisCtrl+Alt+T
Prompt
AccessingCLI StartMenu>Search
Bar>Typeincmd
CLIWindow
(orCommand
Prompt)
Sample dir
displaysalistof
Command filesandfolders
chmod
changes
clear
clearsthe
accesspermissions
terminalscreen
(oftenusedifaccessing
publicservers)
CLI Preferences
WhichinterfaceIwouldusetoperformcertaintasks(GREENISYES,REDISNO):
Task
CLI
GUI
Why?
a.Copyafile
Copyingafileiseasy
withGUI,justCtrl+C.
TheproblemIhave
withCLIisthatI
alwaysneeda
destination,soImnot
actuallyjustcopyinga
file.
b.Copyafilebetween
folders
CLItakesthecakefor
thisbecauseitsSO
easytojustcopyafile
aspecifywhichfolder
youwanttomoveitto
withinthesameparent
folder.
c.Copyafilebetween
drivers
CLIalsotakesthecake
forthisbecauseitsjust
aseasyasmoving
betweenfolders.Itgets
alittlehardertryingto
rememberfilepaths
andwhichfolder
youreactuallyin,but
itgetsbetter.
d.Createafolder
Onelineisallyouneed
tomakeanewfolder.
Youreallydontneed
toclickamilliontimes
tomakeanewfolder.
e.Renameafileor
folder
CLImakesrenaming
easybecauseitsthe
samecommandas
moving(mv).Youjust
havetotypethe
command,thecurrent
filename,andthenthe
newnamethatyou
want
f.Deleteafileor
folder
Personally,Iwould
deletefilesandfolders
withGUIbecause
deletingfilesgets
trickywithCLI.With
GUI,Itrashit,andI
emptyrecycle.With
CLI,Icandelete:a
directory,anempty
directory,anda
directorywithallofits
contents.Itgetsalittle
hardtodifferentiate.