Introdctn to Operating Systems
Introdctn to Operating Systems EECS 678
Popular in Course
Popular in Elect Engr & Computer Science
verified elite notetaker
This 31 page Class Notes was uploaded by Melissa Metz on Monday September 7, 2015. The Class Notes belongs to EECS 678 at Kansas taught by Doug Niehaus in Fall. Since its upload, it has received 7 views. For similar materials see /class/186781/eecs-678-kansas in Elect Engr & Computer Science at Kansas.
Reviews for Introdctn to Operating Systems
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 09/07/15
Productivity Tools Editors DrDougas Niehaus Sivasankar Ponnambalam Some Common Editors ed vi vim elvis ni amp variants of vi pico very similar to pine emacs xem acs an extension of em acs Focus on xem acs an extension of em acs vim Vi Editor What is it A sophisticated text editor to write code notes input to text formatting systems What it is NOT A text formatting program It does not justify margins It does not center titles etc Using VI to create amp edit a file Start a session vim filename indicates the file is empty Type in the text you want Save and Exit go to last line mode by pressing escapeEsc key and then colon once and type wqa VI Modes of Operation Command mode Input mode Last Line model Command Line Mode com Command Mode g RETURN Last LineMode IiAa00 rR ESCAPE Input Mode VI Command Mode h Move the cursor to the left one character position j Move the cursor down one 3 line EMJuggle k Move the cursor up one line Move the cursor to the k right one character position w Move the cursor forward one word b Move the cursor back one word VI Input Mode A Append at the end of the current line a the characters typed in will be inserted after the current cursor position Ifrom the beginning of a line i the characters typed in will be inserted before the current cursor position 0 in a new line above the current cursor position 0 mode in a new line below the current cursor position VI Last Line Mode Usually used to enter commands that start with Typing puts vi in Last Line mode It moves the cursor to the last line You have to enter the rest of the command and press return VI Saving amp Exiting Escw saves the current file Escwqa saves and quits Escq Quits without saving Vl Getting Help Eschep lt commandgt Lists all vi commands Escbd To delete buffer used often to get out of help Xemacs It is not just an editor Xemacs is quite similar to emacs and everything in this presentation works for both It is an All in One Program You can write code compile debug and usethe command line from within emacs Screenshot of xemacs E m 5p 52119 in um spa m1 XEmacs 211 quot20 Mlnutes to lekoquot solarlsZ6 of Mon Jun 21 1999 on gold Copyright C 1935 1993 Free Software Foundation Inc Copyright C 1990 1994 Lucid Inc Copyright C 1993 1997 Sun uiorosystems Inc All Rights Reserved Copyright C 1994 1996 Boardof Trustees vhiversity of Illinois Copyright C 1995 1996 Ben W1 macsscratch Lisp L w eeeeTop eeeeeeeeeeeeeeeeee rrrrrxa OK I m ready Talk to me Xemacs Knowing the Regions Main Window has name of current buffer Buffers display area for code or text Mode line displays useful info about buffer name of file current mode et al Minibuffer Echo Area Comm and Line used to enter commands path names file names from kevboard Xemacs Screen Shot Emacs indemmml ununmam puma w3cn39m 11111111 I Transltlanal I A 33333 NW 33 33333333mmmmn33333333331 333 gt g 1331 33313313333 Hm quota gnaw 131117 lt1 Judex mm 1 2 ZUUAU127 1s 55 13 3331333 233 s 3 I lt1333agt 3313 ms m Hume 2313 ltm13gt ltlmk 331 styleshee 3333 3333quot WP extI255 133 13333 3331 l ltlmk 331 1 tylesheet 3333 3m 3w textcs 133 13333 333w 1 3 gt 39 canscahrsernumher 33g 31 gt I lt1quot Banner 33 where we glve the 1313 af the Current 2313 33gt ltd1v 33311333333 gt 31313 wldth ux 331133333335 133313331 13g33133h1uegt ltm a 3131 when 33 332332 3mg 3133 3313341333 Dvervlew mm ltdgt ltm lt31313gt ltd1vgt lta3v 3a navgat3an gt lt3 133 1ndex 133111 3 lt3 133 1 1 gt 1313 3gt lt3 hm 3313331 1 53133313 lt3gt lt3 hat 3 a3331333333343331333733333 my Pmectslt gt lt3 133 1mm 1 a n3 3gt lt3 hm 11313313 1 1 lt 3th usefu L I ltd1vgt lt3 333133333331 I lt33 mm 1333 122 Xemacs Commands All commands are invoked by starting with Control key Meta key ALT key on modern keyboards In rare cases ALT does not exist or does not work then escape key used in 2 stroke sequence Commands are echoed in the minibuffer Examples Cx gt hold control key down and press x Esc gt Press Esc key release it then press ly gt hnlrl Alt knv r lnwn and nrnec y Xemacs Getting Started Starting Xem acs xemacs ltfienamegt amp or xemacsamp Quit C x C c Prompts user about unsaved files Moving between buffers C x C b lists current buffers Place cursor on buffer and hit 39f39 to select that buffer C x b changes to a specific buffer Bailing out of confusion C 9 Aborts current command Opening files Xemacs Open a file for editing in XEmacs using the quotFilequot menu instead The key combination C x C f can be used the command line at the bottom of the XEmacs window should now display the prompt Find file Type in the full filename with path or Hit Enter and list of directories and files will be displayed and select directory or file by hitting Enter or f on the filedir when the cursor is on it Buffer List C X C b Junns Butters M ane Mamup nm HTML Insen d 4 PW E Ra lttshlegt mm r gatan gt nan mm Evervlew ltagt yll us yllshu lt a chedule hml Schedule ltagt aectrhandautspraect7ndex hml aectslta neanaleaaea mm Dacuments ltagt l ahehanaanelahaeanaex hml gt Lshsltfagt efu illnks hml gt Lmksltagt 4 n harder bgcalarb1uegt Elle manenaehanezmae1aeeesAAawwanaex html hamenehauszanaIlassesAAE manemneaeh drarlhfa h e musmus aaeanagea 1179 Died maneeaeanageaaaaeanagea 9 Dddmages MEI Dlxed manecddmages 5 name 339 Dlred hame x Dacuments 5551 uneq hamenehausDacuments7 xscreensaver ems Fundamental manenaenana xscxeensavez x nlehaus Bu 5 Dlxed hamenehaus n Fundamental manenaehanamperf a nates ftp 232A Dlxed nehausttp 1th kn ean fclassesAABnates we menaeea 291 Dlxed manenaenane mpAnaenaeea x m 3191 Died manenaenanamp lt Euf er new 392 fer Menu x Entry 2181 naked naehaneeea am kn ean Halaeaeem I x claaaeam 2733 Died naenanaerep 1th kn edu e1aaaea 5 lap Interacmun e h 1883 efs a I am 178 c mplet sum 0 1w L lt w hp naehanemp am kn e an Llst an tput an Fundamental 9 Campletlan Shell Damn EI m at aver a wlndaw File Related Commands C x C s Saves the file in the current buffer C x s Saves all files in buffers that need saving C x C w Saves the current buffer to a new file Prompts for the new file name at the XEmacs command line C x Cf Loads the file you name or creates a new file by that name if it does not already exist C x d Runs directory edit which lists the files in the current directory To select a file move the cursor to that file and type f C x l Inserts a file at the point where the cursor is Prompts for the name of the file to be inserted C x C c Quit XEmacs Prompts user to save any files that need saving Xemacs Moving cursor Cf right arrow Moves the cursor to the right C b left arrow Moves the cursor to the left C n down arrow Moves cursor to the next line C p up arrow Moves cursor to the previous line C a Moves the cursor to the start of the line C e Moves the cursor to the end of the line C v Page Down Scrolls down one screen at a time M v Page Up Scrolls up one screen at a time Xemacs Moving cursor C B moves back by one character C F moves forward by one character M a moves to the beginning of sentence M moves to beginning of paragraph M moves to end of paragraph M g lt numbergt moves to start of that line M lt Home moves cursor to top of the file M gt End moves cursor to bottom of the file Xemacs Editing C space sets the mark Movement of cursor to another location defines region between them C w deletes current region saved in kill buffer ring of delted segements C y yanks front killed segment into current position M y replaces this with previous segment in the kill ring Good way to retrieve mistakenly deleted text V U Windows C x1 Make current frame the only frame C x 2 Split current frame horizontally C x 3 Split current frame vertically C x 0 delete the current frame not buffer Works on any frame try Cx 3 then Cx 2 C x 0 Move cursor to next frame Mouse click easier with more than 2 frames Active mini buffer is on the list Editing Commands C d Deletes the character the cursor is on Del Deletes the previous character M d Deletes the next word M Del Deletes the previous word C k Deletes the rest of the line M k Kills the rest of the sentence C y Brings back yanks what was just killed M y replaces text provided by Cy with previously deleted text Editing Commands C 9 Cancels whatever command is currently issued M Sets a mark in the text C w Wipes out everything from the cursor to where you set the mark and puts that text in a kill ring M w Copies everything from the cursor to where you set the mark and puts it in a kill ring C x u Undo C x C x Takes you to the place you set the mark M lt line numbergt Takes you to the specified line number Editing Commands C k deletes to the end of the line Do it twice to include newline Do it several times as a quick way to copy lines You delete them where they are and immediately replace them then C y to put them someplace else as well C x x lttaggt yanks a region into a named buffer register eg C x x a C x g lttaggt yanks it into current position Editing Commands M string replace M d M b delete a word forward and back M M CM u make a word lowercase Capitalized and UPPERCASE respectively More Good Stuff C x Cf on a directory lets you browse Place cursor on a directory entry f open the file or directory o open the file in the other window 1 open the file and make it the only frame These work on buffer list entries too M x gdb runs GDB under Xemacs Xemacs Language Modes Adapts to languages syntax highlighting Parenthesis balancing Auto indent Format Xemacs Help help for current mode C h m Apropos search on an input keyword Lists all commands or words where keyword occurs C h a Help Menu
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'