Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started.

Similar presentations


Presentation on theme: "1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started."— Presentation transcript:

1 1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started

2 2 © 2001 John Urrutia. All rights reserved. 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 3 © 2001 John Urrutia. All rights reserved. Logging in Log on to Windows XP workstation using default userid (CIS). No password. Click on TELNET ICON within the UNIX Utilities Group

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

5 5 © 2001 John Urrutia. All rights reserved. Logging In From Windows Programs menu  X-Win32  GUI  Provides access to graphical programs  Similar to Windows interface

6 6 © 2001 John Urrutia. All rights reserved. Changing Your Password passwd utility [ilstname@linux1 ilstname]$ passwd Changing password for ilstname (current) UNIX password: New UNIX password: Retype New UNIX password:

7 7 © 2001 John Urrutia. All rights reserved. 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 8 © 2001 John Urrutia. All rights reserved. Logging Out Type exit from the command line Close TELNET Shutdown workstation

9 9 © 2001 John Urrutia. All rights reserved. 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 10 © 2001 John Urrutia. All rights reserved. Getting Started Command prompt  Data Keys  a – z, A – Zalphabetic keys  0 – 9numeric keys  & ; | * ? ’ ” ` [ ] ( ) $ { } ^ # / \ % ! ~ special keys having 1 or more meanings

11 11 © 2001 John Urrutia. All rights reserved. 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 12 © 2001 John Urrutia. All rights reserved. Getting Started Command prompt  Command  Characters following the system prompt delimited by space  Options (generally optional)  -character(s) following command will modify how the command behaves  Arguments ( 0 to many)

13 13 © 2001 John Urrutia. All rights reserved. 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 14 © 2001 John Urrutia. All rights reserved. Getting Help man ual - online help for LINUX  There are 9 sections in the online manual  man cat  This will display help on the con cat enate utility  info – Equivalent of man  help – GUI equivalent of man plus hyperlink capabilities

15 15 © 2001 John Urrutia. All rights reserved. Help – Help – Help – Help – Help - Help Demonstration of man

16 16 © 2001 John Urrutia. All rights reserved. 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 17 © 2001 John Urrutia. All rights reserved. Listing a directory All files are located in a directory file Directory files can contain directory files To l i s t all the files in a directory file  ls

18 18 © 2001 John Urrutia. All rights reserved. Listing a directory The ls command  Syntax: optionfile list filelist all file information files with non-print files change time directory info. classifies display inode nbr. display in reverse ls –a filelist all 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 19 © 2001 John Urrutia. All rights reserved. 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 20 © 2001 John Urrutia. All rights reserved. Displaying text file contents The cat command  Syntax: optionfile list filelist show tabs and eol show eol as number output line show tabs as remove extra blank lines show non-print chrs. as cat –A filelist show 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 21 © 2001 John Urrutia. All rights reserved. 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 22 © 2001 John Urrutia. All rights reserved. Deleting files The rm command Removes links and if it’s the last one frees the storage used. (Deletes the file)  Syntax: optionfile list filelist rm -f filelist remove r/o files no prompt -i prompt before removing -r recurse sub-directories

23 23 © 2001 John Urrutia. All rights reserved. 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 24 © 2001 John Urrutia. All rights reserved. The Special Characters These character are interpreted as instructions by the shell command processor. these in filenames & ; | * ? ’ ” ` [ ] ( ) $ { } ^ # / \ % ! ~

25 25 © 2001 John Urrutia. All rights reserved. The Special Characters  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 But … If you must use them

26 26 © 2001 John Urrutia. All rights reserved.

27 27 © 2001 John Urrutia. All rights reserved. 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

28 28 © 2001 John Urrutia. All rights reserved. Help – Help – Help – Help – Help - Help Demonstration of joe


Download ppt "1 © 2001 John Urrutia. All rights reserved. Chapter 2 Getting Started."

Similar presentations


Ads by Google