COP 3353: Midterm Review Checklist of Topics Covered Thisisalistoftopicsintendedasachecklisttohelpyourecallwhattopicsandcommandshavebeencovered.General Concepts ● Know the basic components of the Unix OS (kernel, shells, file system, utilities/commands)o Kernelo Themastercontrolprogramo Schedulestasksandswitchingtoprovidemultitaskingandmulti-useroperationo Managesresourceso Shello Interpretsusercommandso Passesusercommandstothekernelforexecution(executesprograms)o FileSystemo Informationorganizedasfilesandspecializedfilescalleddirectorieso Utilitieso SoftwaretoolsprovidedaspartoftheOS.Oftencalledcommands● Know the meaning of terms like executable, process, daemono Executableo AprograminaformthatcanbeexecutedbytheOSo Processo Theactivationorinstantiationofanexecutableo Daemonso Processesspawnedbythekernel(OS)toperformtasksonbehalfofOStomanagesystemresource●There are multiple varieties of Unix, including commercial and freeware versions. (Be able to name some)o Commercialversionso SunOS,Solaris,SCOUnix,Aix,HP/UX,Ultrixo Freelyavailableversiono GNU(Gnu’snotUnix)&FreeSoftwareFoundationo Linux(LinusTorvaldscreatedforPCs),NetBSD,FreeBSD●Know what an SSH program is, as well as how to use it to log into a unix system, likeyour CS accounto SSH(SecureShell)o UseanSSHclientprogramtoconnecttoCSmachines-FSUrecommendssecureshellssho UseSSHClienttoconnectto"shell.cs.fsu.edu" username: newacct password:newacct●Know what a shell program iso Beabletonamesomeofthedifferentunixshellso Differentshells sh:Bourneshell,(S.R.Bourne,goodscriptingcapabilities) csh:Cshell,(UCBerkeley,closertoCsyntax) ksh:Kornshell,(DavidKorn,betterinteractivity) bash:Bourne-againshell(builtonshwithmorefeatures) tcsh:Tshell:(Tenexshell)similartoCshell,defaultonLinux/Intelinstallations,defaultonCSaccountso Beabletouseasimplecommandshell,liketcsh(thisistheoneonyourCSaccountbydefault)Files / Pathnames ●Know how to recognize files and directories in a unix systemo Files(areinblacktext)o Awelldefinedrepositoryofinformation Programorcomponentofaprogram Arbitrarytext Anexecutable(binarytext)o Specialfilescalleddirectoriescontainorpointtootherfileso StructureofDirectories(areinbluetext)o Hierarchicallystructuredlikeaninvertedtreeo /isthestartingdirectoryor“root”●Know how to form unix pathnameso Absolutepathnames /home/lister/ships/Starbug /bino relativepathnames Supposecurrentdirectoryis“home”,then: rimmer/Hologramwouldrefertothesamefileas: /home/rimmer/Hologram● Know what directory is "root"o Absolute/●Know the symbols to use in a pathname, for referencingo Specialsymbolsforcurrentdirectoryandparento “..”referstoparentdirectory(thedirectory“above”)o “.”iscurrentdirectoryo yourownhomedirectoryo ~/isshorthandfortheabsolutepathtoyourownuserdirectoryo anotheruser'shomedirectory●Know how to handle special characters in filenames (like spaces, or other charactersthat already have other unix meanings)o Filenamescancontainanycharactersexcept“/”,butitisrecommendedthatyouuseupperorlowercaseletters,numbers,andthecharacters“-”“.”o Forexamplealthoughafilenamecouldcontainaspaceorspaces:o confusing nameo commandsusingthiswouldnotworkcorrectlyunlessyoutelltheshelltonotbreakanargumentatthespacesbyquotingthefilename.o rm “confusing name”●Know how to use basic unix wildcards in filenames/paths, for use in unix commands.These include:o *o anasterisk“*”matchesanynumberofcharactersinafilenameo con*willmatchcon,condor,constant.exeo *.cwillmatchallfilesthatendin.co rm*willremoveallthefilesinadirectoryo ?o a“?”matchesanysinglecharacterinafilenameo b?twillmatchbit,bot,bat.Itwillnotmatchbtorbooto []o squarebrackets“[]”willmatchanyoneofthecharactersinthebrackets.Ahyphen“-”canbeusedtomatchanyofarangeofconsecutivecharacters. [bhr]atwillmatchbat,hatandrat chap[5-8].cwillmatchchap5.c,chap6.c,chap7.candchap8.cFormat of Unix commands ● Know the general form of unix commands (command_name, flags, parameters)o CommandstypicallyrefertoaUnixprogramlocated,forexample,in/usr/bino Structureofacommandistypically:commandname [flags] [parameters]o Flagso Commandsmayacceptoneormoreflagso Flagsstartwith“-”andareseparatedfromotherflagsandparametersbyoneormorespaceso Individualflagsmaybecombinedunderasingle‘–’o Parameterso Parametersareoftenfilenamesand/orpathnameso Commandsacceptoneormoreparameters,separatedbyspaces● Know how to activate the help menu for any command (i.e. the help parameter on commands)o mano Manpages,shortformanualpages.o AllUNIXandunix-likeOShavethisdocumentationapplication.o Similartohelp,isselfcontainedforeachcommand.o Command --helpo Allcommandhaveahelpmenuthatcanbeaccessed.o
View Full Document