0% found this document useful (0 votes)
63 views18 pages

UNIX Unit 2 Notes

Unix unit 2 notes

Uploaded by

Akash Shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
63 views18 pages

UNIX Unit 2 Notes

Unix unit 2 notes

Uploaded by

Akash Shukla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
ish Lith disedory Conferfs. 2 disectoxien ond jile is dee se aa jE __ This Command ix red to display a Sint o Context poo dlivecto oie : Lin opfions ib ton provide ingoaredion abot the. a a ig Oa Bt) jile * Pexmissions ; dates Q\. ig cweadic SN RII ns a BR | cece to Dist your Z tm fs Lipo Cawgument ceeseeeO oe : When ne aE: in wed — xe _ binding will be of ? Beatie cinnest — Aixechipiies pote 4 = ear yng disedovie., not. otis de. in Sre_divedny, = += = long i tk igenalin_oon, TJ the_file iso ink an oven (—>) ___preceda_tne pathname gp} the inked _do_dife. - nike Unix die Syston m2 Cee . ae TT allous the uber, — oxen che : dies io bebonaing do them and usthoud “inrnging on > secant .. oho. die Fass nomen gh ob _olfsibutes thal 1 oneal — in, = ———————. Oe , ~ateial : - oy oe - dingo _ file “olhibdes sy et Ligh O Apec si, clicecdy aii lad ps eee sida lila gsi Rai Dijoed _ elisa = isle nnirlo-ieotea stl tila a ) hi - ‘ing Ft Abibudes ee as nee eS Pe te ceed a ted fe oti alt dno gf ald filenames in pel, «lech — nef combine __ ee eee re ee i ‘lst Nes in Shs oa ede + File_type ond Rexmisions e Links HK Fik Fik_Oumeahip > se ss ici lta cecal __When you cvede a _site eau become —_fa_Quonen. Gvery owners aHached” de “a _ group : Saal ik 2 Seven wea may bon a Ain oup_,—_but the _ prvi teges 0, He group aia 3 by the Owner of ae and“ nef by the Sep membuns- Peres dic _Ayplem administrator coecden a une _accourd, fe Aas do ousign thee parameters ouster __@ The_uper-id (UID) - both" its name L-_numesic_eepresoia = ee both its nome 4 _numenie_ve presenta A Fk peseninion © = a , file has sed of Permissions a4 f with it, which “determine whe Conde what wth e Je. si is — Siew —file Rolls hos —_jollosipg odHribeten 2 1G Cine Ramin > The -Biynen’s pile bab actions the a P — ——_poypem — on te giles @ Carp Poumision > Th grips ckdewmine shat SS EE » uber, who 1b Q member ai erase ae ee on She Inene axe Shyee 3 ie Pemi sions os the chase gh vaend 2" To" Knows the _pexrniasion al use te” =) command. 1 kek wily fy |w [xy Jo ]x | ee eet Fite type —Reoner —Soyoup—_@hen Uso. F oh -l [pasa __ > fr lid un onl Oe u-y--t-- | olih SINS june2S 8240) etc | passudl we he tes) -\ ta lete] pomuid >for up ane = -aw- = fas SiS jun 25_ Ai goal cu de he =by —> fos weday ile ae sg A ae —urrite (us) 2 be “+ The unile + pommiaion alloy fhe urea to : modi}, Ane contents a She dile: * The unite __penmiasion on divector oll uae te edit Codd ox clelete) the — Contrts ga dlivectosi» g * “The oral he (or—tonife _penmitvon ia 2° ee ee = $e execute _ permission ollus wren to a —____execde oy _yun the file. aqetiess age bs + The execute _permisien on divectory allows a users to _accem_diles ox _aubdivectorien. Bis cie, —_* The —ecfol__velue fot Srecute _penmisnion wt. Pexmisnion state FNS ad Directory pian Read _| User van open and Read | User_con List files premt in Bt dhe _conkest oh odie divectory ondconnat read file ig aie. eg dixectory + ~— +— as — = _ is Wythe | User con modify comtorks | Uner con odd or cfolete as yy. pile. = Gace Ne ae So divecky a Grecute | User con un _execdoble | inex con wae cd commend iss __ hie Reg psig ie ch con ge through the et divecdory, = TO td wand Ceevory--) © Cubed veproreddon ( 664) : < k Chanping Fille Poxenivators_ icc dd alonds Joe changing Mode > on Coonmand _ inn gon c anging Mode go : * —Thia command _is ued! te __ change _penntimions “ean ee es ond —_clirecfovio is eae ae et. — be. command _"chmad” 0094 be used with oifher p Hew —Calso Kraan as Symbolic) ox _pumbes Cali» p ——_Krown os _ Octal) 0 “nef the _ponmirrian ws aes a yt = oa. Symbolic Mocle @x___Textual Re presonfadian po Abalite Mode ar Ocha! Represedation —__@_ $ chal _ge=w0_ fads TT yemoven the _ wre _poamitsan Je ganup “ond adhe — —G_ A chunedl_tpos r—_fctah as — ____IF _Keepn the stad _peamunions ond aemmeven other _ ce ing a, 4 Perrnimsions Description Sa No Perri Wsiows 001 % ae Souls permission O10 2 =w- Write arly —_poxmimnion amt 3 = WX e e 2 u g-- 5 y-x 6 > BR Direcliny Permian ; ae a It js _porrible drat 0 jile canna be aceeihedk_ cede = dhxough it thor reach _Penmission _ondl__con_be_ Hern ove! - when id is tans _profected . ae Gejaubt sen | diseddony axe eee Bik, 022 - oe oa = The Pde neven be tani fcble hy group ond ofl Ss ry hos __torife__pexmimion ite ; a eats hob every Uden _t0in_remay ce ine dhe'= ofiree foie noe oe e > ty a — Herne a beatdown — gh companests cs ethown’ % “The base command é » options! > Opfional 1 Shot modify the behavidr of ‘chown’ car Diner nnunguol ge The ned nat and mall se fic ite, —_nas.gxoup+ “IF ‘newgroup’ ia omitted, EA ol, She when ih changed pistes File(s)! > The file ox giles Jos which _ouanership in to _be ee changels 2 pin fn Gated 2 ‘ hie ales as mua £3,9 ce ehown roaster filet-text| gas 2 chore cnittand Sms =This Command _i _dos te ov multiple dies on _Yeunsively by using void _Opsion oe » Using, vosioun pions, usend coun efficiently. Mange _Occexs __pearsiaions and enhance Phe _eessiy —p) their file System ‘ os usd od enhire dived SS _—__—_§__—_— = ‘option’ > Additional ophans wed Foy. moiieon + —(aeoup. Nome’ > “The _group _jyou iat: Jo assjon the a ‘Eide Name! > “The Forged direcbery | fife. ce + fe Example 2 —sute_chye {ante a ce. ee SOLS EER oe eee ya Procens > = as pi vsti —________A__rocen is the —_inafance of computor program Bo Trot is being executed by _@ne “ ve Bias . ae Systern Gy UNIX _Openoting Gystero A _ Process __h__ progam Shot iy cumrectly under —9___exeuution: oa” active _pyogran oem _be Known ok Proven ie ete * A Siocon _is__saidl 4s _be _pbsxn when pxggrom storks execulien and _sermnins alive ons Sons os She ——proprarm fs active ond _ Often execubian is _Camplede, —Jhe _prows in pail do ties = oe Prop ea s aieiiss sib No: Paes is ae 1 PONCE a ee - as ay Thvead| Bs a Poh Kennef in __2esponsibhe dys the management pf} she proed Tk dedermines She time _anc__priorihion “Shoat ose alloca de proces so that mone than one proce con shane eee CPU ret 2 The _ghuk cobain teenperany data BS | Auch op _Junchion parameter, veh orldyen & vosioble > Prowm _Struchne = — “Precem. Stobug 3 big a ome il ie _ Procers ome do ionpostasd Jo _ gel p— dene so —UNTx fran _towexal_cmmands thal enable i pte examine PBL ond modi, heir Atade- = The most Prequectly ured command ts ‘ps whiche 5 p Prins ow the _Procdma _staua for _pyotes i Ss re Mou system. i ree TU p> Coch “System hax _a__sfight | differ) vesaten ol dhe ps See 508 Ts hating em me oe Bp Sysken_V _Memien (POSIX) and — dhe Berktles Newion. a Se ah ce. ” |_ Full Listing housing AM pyorem (uren | Proce of Uren PID of eoch procen u and __aysiem) _pyocenen TTY TIME cmp te ee: i oe sit One O6o2 ets. 00: 003.00 QP. System pancoues (eon -A) 3 Ja dxom dhe procemes 0 __UsOn _geninabes pet aii of —Suslern —_pxocemea Keep sunning alll the _fime__and Mast _ them __one cat __oractoted —_yrith Oy = conballing. te enmindl hey One _Apaiined luring _Aystem Alaship anc! same ——$| them Stout when the Aystem poe Indo muti user eis. ai © —Thae Proceve aro Tien Abeta because Spy ane Called wilt specific sea Aivom_0_uson + Slo int fem se u $ ps -e , 2 Wiis 7 ee Og ee O34 hed ae ¢ Wiss _ init =2 5970S Caronle OLGs gh i Pa DO eee pos tem/i2 20704 a => Mechsinn of Procom Creat There axe thee clibnct phases in dhe cxeabin ol o-pc Be Ord tikes ee ee call, ee Own image Neus _ Foam» cr hild © Wait) + The panesd thon —execudes Me wait system coll te inait” or the. child 42 completes oTt picks up dhe exi} shah. of the “chilel and with ite ofhen uncon 20g ead wait dor fre child Jo Yunning thd! pared proces Ornate the ten} and tae ay 9 me ee isGe a __A_pxocens. a a ee. a woces eon he in uning tks _extcutisre These. Afuter__ provide value informa fin orbouf the — pro ems ancl _bebavisk 4 DYOCEMCA , Qidips _in ee: Te manggemenf _anch Link : btoden ane = GC_ Grated = Tn this _atade Dror id__newsy crealed s_ ond ja not _—s hy a L.¢ 2 ° inthis tare proces is Cxecuting in ube modes The onan _ Memory. A_bloked state whene_in_fhe oa a Proves fs Owalting on event ond swsopped _ Jo_ _Secondamy Storage. “ Asseep in, Memayy A “blloked tad phone in fbi a proces i wailing for on aot footie. Gnd 1a cunt inthe main pemapy. = ore obese pe A oe after _cyecdion in not immed jofel, pul Be “inks Ready Note. _ + —Twotead ik js put to cyeafed! state + “This % —_dow 5 thot uv _crocte a proton without enough Memory available do yun ‘ a Then __if_con move __Jo__yeady fa wun _in_memany ee OF Rend do_yun _ Swapped Cee bared on Phe —Onnilabe rnemoyys P= Now, uber th “osntien th _memorly , bared or the Be Acheduling ue roe ty Ken mode. Ox tude mode es ee requisemala: —Tntoaupts Tn bebween trill __zend the _ayastem _ indo _Meep Abate. 2 __When __the _pyaten finish _enecudisn , if imvekes a oe ext oo coll and i ae _inffo erin 2 ea NO eon 6 alt tag yale ond ‘ ny — 9) — jobs or Pxocos sunning _Almsbfanecushy. Tes ce + Hou _rnany, ~ 05 alt on athich Proce axe sunning conn + —Fenmirafe — either _ O_misbehaving or _ unwanted proten + Modify, dhe _priouit 0. paocwk * [To push st nen ife gad xeauired proces be | + “Tp bring required _process__fo_.th png — ond se ¢ So Se cel i AM the proonen created i ee gl ne s axe called! eg mre Procens-r Job» = is abso Known os _TAterachive _procen. os Lhen User pass ca cammand do shell, dhe sholl 7 +¥ebuildds ond senda it to the enna Jor “excafion Sekgnipy the _exeushion 9}. one proce the _usen ahold _ “ dhe Kernel uni copied tien of the provess. Oe cote Commend con yun sing _execudinn — older one The __procesa hich con withod- ing the Boih ox Kain 0k back gamnd _pyocers._ p> Background proce Juke inpd from a _gile_,_praces the wibhow —_hhalding — ¢__dexmin Ond write _oudpd en other _ fie: as Sie canes Ge enh iy Oe a eB iscsh 0 aldetast shes ey Jasdiog cl Aeaxhing of dile af confot from lens dike Soe

You might also like