Example: air traffic controller

Basic Introduction to UNIX/linux

Basic Introduction to unix /linuxClaude Cantin Computing Support GroupInformation Management Services BranchNational Research CouncilMay 27, 20182 This page intentionally left document was produced by Claude Cantin of the National ResearchCouncil of Canada. Reproductions are permitted for non-profit purposesprovided the origin of the document is CantinNational Research Council of Canada4 History of printing:DateCopiesMarch 2003200 March 2001200 June 1999200 November 1997200 July 1996200 November 1995150 March 1995150 February 1994150 October 1993100 August 199375 February 199375 November 199235 September 199240 February 199250 December 199150 April 199150 September 199040 January 199040 Table 1: History .. : Berkeley System Distribution .. XENIX .. linux .. System V (formerly known as AT&T System V) .. History (continued) .. The unix Operating System .. Multi-tasking, Time Sharing .. Multi-user .. Network Capabilities.

3 This document was produced by Claude Cantin of the National Research Council of Canada. Reproductions are permitted for non-profit purposes provided the origin of the document is acknowledged.

Tags:

  Linux, Introduction, Basics, Unix, Basic introduction to unix linux

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Basic Introduction to UNIX/linux

1 Basic Introduction to unix /linuxClaude Cantin Computing Support GroupInformation Management Services BranchNational Research CouncilMay 27, 20182 This page intentionally left document was produced by Claude Cantin of the National ResearchCouncil of Canada. Reproductions are permitted for non-profit purposesprovided the origin of the document is CantinNational Research Council of Canada4 History of printing:DateCopiesMarch 2003200 March 2001200 June 1999200 November 1997200 July 1996200 November 1995150 March 1995150 February 1994150 October 1993100 August 199375 February 199375 November 199235 September 199240 February 199250 December 199150 April 199150 September 199040 January 199040 Table 1: History .. : Berkeley System Distribution .. XENIX .. linux .. System V (formerly known as AT&T System V) .. History (continued) .. The unix Operating System .. Multi-tasking, Time Sharing .. Multi-user .. Network Capabilities.

2 Portability .. Flexibility .. Software Available .. Virtual Memory .. Case Sensitivity .. unix Philosophy .. Exercises .. 132 File File and Directory Names .. Length .. Conventions .. Structure of Directories, Files .. Permissions/File Access Modes .. chmod: Change Mode (Permissions) .. Exercises .. 20iiiCONTENTS3 Tour of the File : Root .. : Commands .. : Devices .. : Management .. Home Directories .. : Libraries .. : Temporary Directories .. : Directories .. : Administration .. : System Mailboxes .. : Spooling Areas .. : Temporary Directory .. : Directories .. : Berkeley Binaries .. : Demonstration .. : Include Files .. : Local Programs .. : More Binaries .. : Shareable Directories .. 25/usr/share/lib/dict: Dictionary .. 25/usr/share/lib/Insight: Documentation .. 26/usr/share/doc: linux Documentation .. 26/usr/share/lib/spell: Speller .. 26/usr/share/lib/terminfo: Terminal Database.

3 26/usr/share/manand/usr/share/catman: Manuals . : Temporary .. Exercises .. 274 Input/Output Redirection .. <: Input Redirection .. >,>>: Standard Output .. >,>&: Standard Diagnostic (Error) Output .. |: Pipes .. Pipes and Redirections .. : Background Processing .. (Wildcards) .. : Any Character(s) .. [,]: List of Characters .. ?: Any Single Character .. {,}: Alternatives (except Korn Shell) .. \: Escape .. Shell/Job Control .. : list background jobs .. : suspend a job .. : send a job in the backgroup .. : bring a job in the foreground .. : kill a job .. Sample session .. C Shell .. : Search Path .. Tenex Shell .. Bourne Shell .. PATH .. history .. alias .. Korn Shell .. : Search Path .. history .. Other Miscellaneous Commands .. Bash Shell .. : Search Path .. history .. Exercises .. 465 Basic File Permissions .. Passwords .. Root Password.

4 SSH .. TCP Wrappers .. Exercises .. 516 Commands A Command is a File .. Syntax .. Login Related Commands .. Logging On .. Changing Password .. Logging Out .. Help .. : Manual Pages .. Manuals on CDs .. File system Commands: Directories .. : Change Directory .. : Make Directory .. : Remove Directory .. : Print Working Directory .. : Copy .. : Move .. File system Commands: Files .. : Listing .. : Copy .. : Move .. : Link .. : Update .. : Remove .. : Concatenate .. : Browser .. : Header .. : Tail End .. : Word Count .. : Difference .. : Type of File .. Printer Commands (Berkeley;lpr/lprm) .. : Line Printer .. : Line Printer Queue, Statistics .. : Line Printer Remove .. Printer Commands (System V;lp/cancel) .. : Line Printer .. : Line Printer Queue, Statistics .. : Line Printer Remove .. Printer Commands ( linux ;kprinter) .. User Related Commands.

5 : Who is On .. am i,whoami: Who Am I .. Other Miscellaneous Commands .. : Display Date .. : Clear the Screen .. Exercises .. 767 ed Editor .. Accessinged.. Moving Within a File .. Finding a Pattern .. s Substitute .. c Change Line .. a Append Text .. i Input Text .. Current Line .. p Print Line(s) .. d Delete .. w Write .. q Quit .. vi Visual Editor Introduction .. Invokingvi.. ,commandandinputmodes .. vi visual Editor vi mode.. Moving the Cursor .. ^f Forward One Screen .. ^b Backwards One Screen .. G End of File .. x,d Delete Character .. dd Delete Line .. yy Copy Line in buffer .. p Put Buffer .. u Undo .. (dot) Repeat .. vi visual Editor command mode.. :q Quit .. :w Write .. :r Read .. :num Line Number .. /string/ Finding a Pattern .. n Next .. :set all.. vi visual Editor input mode.

6 I Insert Mode .. a Append to Character Mode .. A Append to Line Mode .. r Replace Character .. R Replace Characters .. cw Change Word .. Other Editors .. Emacs.. Exercises .. 908 Electronic Mail at NRC .. Internetnode: Machine Naming Convention .. Mail Forwarders .. Mail Folders .. Signature Files .. Mail Aliases .. : Multi-purpose Internet Mail Extensions .. : Forwarding Mail .. : I m away from my desk .. Securely Accessing POP/IMAP Mailboxes .. SSH tunneling of email from unix to unix .. SSH tunneling of email from a Windows application toUNIX .. : bring remote mail to local system .. 101 Manualfetchmail.. 103 Automated/daemonfetchmailmode .. The Berkely (BSD) Mail Interface .. Sending Mail .. 104~rfilename: Read Filename .. 105~v: Invoking the Visual Editor .. Reading Mail .. 106n: Next .. 106p: Print .. 106num: Print messagenum.. 107s: Save .. 107 Sending a file to a printer.

7 107h: Header .. 107d: Delete .. 107r: Reply .. 107s: Forward .. 108~m: Incorporating current message .. 108q: Quit .. Configuring Mail Behaviour .. Mail Folders .. 109 Creating a Folder .. 109 Reading from a Folder .. , a special folder .. Mail Aliases .. : Multi-purpose Internet Mail Extensions .. : ELectronic Mail .. Sending Mail .. 110 Standalone Mode .. 110 Within the Interface .. 112 Batch Mode .. Reading Mail .. 112n: Next .. 114s: Save .. 114p: Printing to a printer .. 114d: Delete current message .. 114viiiCONTENTSr: Reply to sender .. 114f: Forward .. 115q: Quit .. Configuring Mail Behaviour .. Mail Folders .. 118 Creating a Folder .. 118 Reading from a Folder .. 118 Changing Folders .. Mail Aliases .. : Multi-purpose Internet Mail Extensions .. 122 MIME andelm: receiving messages.. 122 MIME andelm: sending messages.. The Pine mail interface .. Sending Mail .. 123 Standalone Mode .. 123 Within the Interface .. 126 Batch Mode.

8 Reading Mail .. 126n: Next .. 128s: Save .. 128p: Printing to a printer .. 128d: Delete current message .. 128r: Reply to sender .. 128f: Forward .. 129q: Quit .. Configuring Mail Behaviour .. Mail Folders .. 131 Creating a Folder .. 131 Reading from a Folder .. 131 Changing Folders .. Mail Aliases .. : Multi-purpose Internet Mail Extensions .. 133 Sending MIME messages .. 133 Receiving MIME messages .. Exercises .. 135 CONTENTSix9 Commands Location Commands .. : Where Is .. : Which Program .. : Find .. : find files .. Process Commands .. : Process Status .. : Kill Process .. Verifying System Behaviour .. : Disk Space .. : Directory Usage .. : Show Top Processes .. : System Activity Report .. : Virtual memory .. Exercises .. 15010 Solutions to Introduction .. File System .. Tour of the File system .. Shells .. Security .. Commands I .. Editors .. Electronic Mail .. Commands II .. 168A vi Quick Reference169B Bibliography173xCONTENTSList of Tables1 Printings.

9 unix variants on the market.. Redirections and Pipes.. Sun, SGI and linux man page sections.. Tools to read CD manual set.. Summary ofviCommands.. 85xixiiLIST OF TABLESList of History of unix .. unix Systems .. Structure of File System .. kprinter interface .. : Expert User Level Menu.. Menu.. Interface.. Content .. Menu (incoming messages) .. Menu (outgoing messages) .. : Sending Mail.. Menu.. BOOK menu structure .. Menu .. 13412 LIST OF FIGURESC hapter 1 IntroductionThis course is intended for people not familiar with the UNIX/linux operatingsystem, but familiar with other computer systems such as MS Windows, DOSor VMS. It is meant as an Introduction for beginners to help them understandconcepts behind the UNIX/linux operating system. Intermediate users mayfind the course useful as a to 2003, most of the command examples used throughout the textwere performed using a Silicon Graphics O2, running IRIX But sinceSeptember 2003, the hands-on portion of the course is done using the linux (SuSE , then ) operating system, which means most commands are nowdone with linux .

10 SGI systems running IRIX, Sun systems running Solaris,Hewlett-Packards running HP/UX, IBM RS/6000s running AIX and mostPCs (and other architectures) running linux use most of the commands de-scribed in this manual. They use the same Basic commands, although someof the options used may vary slightly between the different specific cases, the book uses commands based on linux . The distribu-tion used was SuSE version and : This book refers to various unix derivatives running on worksta-tions .The author s definition of workstation includes systems such as theSun Microsystems SPARC station family, the Silicon Graphics PersonalIRIS, Indigo, Indigo2, Power Series, Challenge, Power Challenge, Onyx,Power Onyx, Indy, O2, Octane, Origin and Altix families, the IBM34 CHAPTER 1. INTRODUCTIONRS/6000 series, the HP 9000 model 700 and 800 families, the Com-paq AXP families (systems running True unix ), and 500+ MHz PCsrunning one of the linux distributions. Although most sections refer to unix in general, some refer to a specificarchitecture.


Related search queries