DOC PREVIEW
NU EECS 340 - Introduction to Networking

This preview shows page 1-2-3-20-21-40-41-42 out of 42 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 42 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

THE UNIX SYSTEMSlide 2Slide 3Slide 4Slide 5Unix ToolsShellsIntro to Unix: FilesSome basic commandsIntro to Unix: Essential CmdsOther unix commandsUsing find and grep with wildcardsPipes & redirectsText EditorsEMACSUsing emacsUsing Emacs: keyboard commandsUsing Emacs: the minibufferCommands that use the minibufferSlide 20GCC and makeSlide 22Slide 23Slide 24Slide 25Slide 26Slide 27Slide 28Slide 29Slide 30Slide 31Slide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Slide 39Slide 40Slide 41LinksTHE UNIX SYSTEMJan 20 2006Recitation 2Introduction to NetworkingUnix Tools•Shells•Useful Commands•Pipes & RedirectsShells•sh, csh, ksh, tcsh, bash, zsh•Recommend tcsh or bash for interactive use. Both have command completion, simple command line editing and simple to use history facilities.•Change logon shell using chshIntro to Unix: Files•Filesystem a single tree ( no drives )•Filenames case senstitive•Physical devices can be mounted anywhere/tmp dev etc home usrchris libmary include bin locallib include binSome basic commands• the bash shell has automatic completion, just press <TAB>• completion is used for command names and for file names– try: • pressing <tab> twice gives you all options– try:Intro to Unix: Essential Cmds •cd - change directory - cd•mkdir - make a directory - md•cp - copy a file - copy•ls - list files - dir•rm - remove a file - del•mv - move a file - move & ren•grep - expression searching•top - cpu and memory usage•who/w - who else is logged in•man - read documentationOther unix commands• where am I?– pwd• who is around?– who• where is that file?– find <path> -name <name>Using find and grep with wildcards• we can use “wildcard”characters to make searches more general• “*” is the main one, means any set of characthers• ex:– find /home/brian -name “*.ppt” : finds all powerpoint files in the account– grep human *.txt : look for the word “human” in all the files in my directory.Pipes & redirects•Pipes are used to pass the output from one Unix command as the input to another Unix command. ls | grep “mmk”•Redirects are used to pass the output of a Unix command into a file. ls > directory_listingText Editors•Crucial tools for using Unix•Two main editors–emacs–vi•Great features in both:–Syntax highlighting–Brace matching–Sophisticated text manipulation/movement–Scriptable–…EMACSJan 20 2006Recitation 2Introduction to NetworkingUsing emacs• to start emacs just “call it” typingemacs• basic editing in emacs is very intuitive– use arrows, “pg up”and “pg down”to move cursor– use del key to delete– back key to delete backwards– typing insert text at the cursor position• to edit an existing file typeemacs <name of the file>Using Emacs: keyboard commands• there are some keyboard commands you need to know• we use the following abbreviations– “C” is the “Control” key– “M” is the “Esc”key– “-” between two letters mean both have to be pressed simultaneously• Some basic commands– C-x, C-s - save the file– C-x, C-c - exit EmacsUsing Emacs: the minibuffer• if you look at your screen you see a solid bar in the bottom of your page• underneath this bar is the “minibuffer”• the “minibuffer” is used for the communication between you and Emacs - emacs prints messages there– you type text that emacs needs to perform a command – you can type commands hereCommands that use the minibuffer• C-x C-w “save as” - you type the new name in the minbuffer• C-x C-f load a new file in Emacs• C-s : search for a string– this search is incremental and goes as you search– typing C-s again will search for the next occurrence of the same string– to go back to the editing, just press any arrow key– after you go back, typing C-s twice resumes the searchGCC and makeJan 20 2006Recitation 2Introduction to


View Full Document

NU EECS 340 - Introduction to Networking

Download Introduction to Networking
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Introduction to Networking and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Introduction to Networking 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?