280 likes | 434 Views
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.
E N D
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. • Click on TELNET ICON within the UNIX Utilities Group
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
Logging In • From Windows Programs menu • X-Win32 • GUI • Provides access to graphical programs • Similar to Windows interface
Changing Your Password • passwd utility [ilstname@linux1 ilstname]$ passwd Changing password for ilstname (current) UNIX password: New UNIX password: Retype New UNIX password:
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 Out • Type exit from the command line • Close TELNET • Shutdown workstation
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
Getting Started • Command prompt • Data Keys • a – z, A – Z alphabetic keys • 0 – 9 numeric keys • & ; | * ? ’ ” ` [ ] ( ) $ < > { } ^ # / \ % ! ~special keys having 1 or more meanings
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
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)
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
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
Help – Help – Help – Help – Help - Help • Demonstration of man • Demonstration of yelp
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
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
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
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
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
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
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
Topics • Logging In • Logging Out • Getting Started • Getting help • Listing contents of a directory • Displaying and creating text files • Deleting files • The special characters
The Special Characters • These character are interpreted as instructions by the shell command processor. • these in filenames & ; | * ? ’ ” ` [ ] ( ) $ < > { } ^ # / \ % ! ~ Do not use
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
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
Help – Help – Help – Help – Help - Help • Demonstration of joe