1 / 28

Chapter 2

Chapter 2 . Getting Started. Topics. Logging In Logging Out Getting Started Getting help Listing contents of a directory Displaying and creating text files Deleting files The special characters. Logging in. Log on to Windows XP workstation using default userid (CIS). No password.

ramiro
Download Presentation

Chapter 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 2 Getting Started

  2. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  3. Logging in • Log on to Windows XP workstation using default userid (CIS). No password. • Click on TELNET ICON within the UNIX Utilities Group

  4. Logging In • Insure that the TELNET HOST address is 172.16.37.231 – Linux1 • Log in to Linux System using a userid of the form: ilastname where i is your first initial and lastname is the 1st seven letters of your last name. • Initial password is your SCCID, BUT you should immediately set a password by using the passwd command

  5. Logging In • From Windows Programs menu • X-Win32 • GUI • Provides access to graphical programs • Similar to Windows interface

  6. Changing Your Password • passwd utility [ilstname@linux1 ilstname]$ passwd Changing password for ilstname (current) UNIX password: New UNIX password: Retype New UNIX password:

  7. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  8. Logging Out • Type exit from the command line • Close TELNET • Shutdown workstation

  9. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  10. Getting Started • Command prompt • Data Keys • a – z, A – Z alphabetic keys • 0 – 9 numeric keys • & ; | * ? ’ ” ` [ ] ( ) $ < > { } ^ # / \ % ! ~special keys having 1 or more meanings

  11. Getting Started • Command prompt • Control Keys • éê Scolls through line commands • çè Positions cursor within the command line • Delete and backspace - erase previous character • Ctrl+ • w – delete word to the left • h – delete Character to the left (same as delete) • u – delete line to the left • c – terminates the current task

  12. Getting Started • Command prompt • Command • Characters following the system promptdelimited by space • Options (generally optional) • -character(s) following command will modify how the command behaves • Arguments ( 0 to many)

  13. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  14. Getting Help • manual - online help for LINUX • There are 9 sections in the online manual • man cat • This will display help on the concatenateutility • xman– GUI equivalent of man • yelp– GUI equivalent of man plus hyperlink capabilities

  15. Help – Help – Help – Help – Help - Help • Demonstration of man • Demonstration of yelp

  16. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  17. Listing a directory • All files are located in a directory file • Directory files can contain directory files • To list all the files in a directory file • ls

  18. Listing a directory • The ls command • Syntax: option file list ls –a filelistall file information –b files with non-print –c files change time –d directory info. –F classifies / * @ –i display inode nbr. –r display in reverse

  19. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  20. Displaying text file contents • The cat command • Syntax: option file list cat –A filelistshow tabs and eol –E show eol as $ –n number output line –T show tabs as ^I –s remove extra blank lines –v show non-print chrs. as ^M

  21. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  22. Deleting files • The rm commandRemoves links and if it’s the last one frees the storage used. (Deletes the file) • Syntax: option file list rm-ffilelist remove r/o files no prompt-i prompt before removing-r recurse sub-directories

  23. Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters

  24. The Special Characters • These character are interpreted as instructions by the shell command processor. • these in filenames & ; | * ? ’ ” ` [ ] ( ) $ < > { } ^ # / \ % ! ~ Do not use

  25. The Special Characters • But … If you must use them • Quote the characters to cause the command line interpreter to treat them as normal text. • Precede each special character with a backslash • Enclose the text in single quote marks • Precede non-print chars. with Cntl+v

  26. Hey joe what do you know? [myname@linux1 myname]$ joe myname • Starts in insert mode • Use cntl+K H for help • Toggles on and off

  27. Help – Help – Help – Help – Help - Help • Demonstration of joe

More Related