introduction to unix
DESCRIPTION
Introduction to UNIX. Lecture 4. Computing Environment. PC vs. UNIX Many PCs use a version of the Microsoft Windows operating system (either 95/98/ME or NT/2000/XP). - PowerPoint PPT PresentationTRANSCRIPT
Lect 4 P. 1
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Introduction to UNIX
Lecture 4
Lect 4 P. 2
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Computing Environment
• PC vs. UNIX
– Many PCs use a version of the Microsoft Windows operating system (either 95/98/ME or NT/2000/XP).
– UNIX is an operating system used primarily on workstations. There are versions for Personal Computers. LINUX is a version of UNIX.
Lect 4 P. 3
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
UNIX
• Originally written by programmers for programmers at Bell Labs.
• Often is the operating system of choice for high-performance engineering workstations.
• Original (and still common) user interface is the "UNIX command line", although graphic user interfaces (GUIs) are available.
• Names of UNIX commands tend to be a little cryptic or strange.
Lect 4 P. 4
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
UNIX Command Line Interface
• We will use the "UNIX command line" user interface for much of the work in this class.
• The availability of some limited graphic user interface capabilities is provided by special terminal emulation software.
• Emulator runs on the PC and makes the PC system act like an "X-Windows" terminal.
• Simple Secure-Shell terminal emulation can also be used.
Lect 4 P. 5
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Some Simple UNIX Commands
Simple Command UNIX MS/DOS
List files in directory ls dir
Delete a file rm file del fileDisplay contents offile on screen
cat file type file
Display contents offile on screen
more file more < file
Print workingdirectory
pwd pwd
Change directory cd /path/new cd \path\new
Lect 4 P. 6
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Your Computer Accounts
• Each student actually has two separate computer system accounts:– One for the personal computers (in HI 324)– One for the UNIX system (SGI IRIX)
• Each account is established only for the duration of the current quarter (i.e., the files stored under your Autumn Quarter's account(s) are gone)
Lect 4 P. 7
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Your User ID and Default Password
• The User ID for both of your computer accounts is simply your OSU email ID.
• The default password for both accounts is:– The first letter of your last name– The first three digits of your SSN in reversed
order– Your entire first name
• Written as one "word" in all lowercase
Lect 4 P. 8
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Figuring out Your ID & Default Password
• So, as an example of a User ID and a default password, let's suppose:– Your name is "Woody Hayes"– Your SSN is 987-65-4321– Your OSU email address is [email protected]
• Then, Wayne Woodrow "Woody" Hayes would logon as:– User ID: hayes.1– Password: h789wayne
Lect 4 P. 9
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Default Logon for PC Systems in HI 324
• Your UNIX "default" password:– The first letter of your last name– The first three digits of your SSN in reversed
order– Your entire first name
• Another possible default password:– Just your University ID (your 9-digit SSN)
• Attempt both of these methods and if neither work speak to the lab facilitator at the desk in 324 or your instructor.
Lect 4 P. 10
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Logging On to a PC in HI 324
Windows XP Logon
• Press “Ctrl - Alt - Del”, if so instructed
• Fill in the new window with– Your User ID – Your Password (watch case)– The Domain (ENGR1)
Lect 4 P. 11
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Logging On to the PC
User Name
Password
Domain
hayes.1
h789wayne
ENGR1
Lect 4 P. 12
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Changing Your Password on the PC (Press Ctrl -- Alt -- Del)
Windows XP Security
Login Information
CancelChange Password
Log Off
Lect 4 P. 13
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Changing Your Password on the PC
Domain
User Name
Change Password
Old Password
New Password
Confirm New Password
Lect 4 P. 14
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Logging On to the SGI UNIX System
• On the PC --– Click on Start
• Go to Programs Submenu– Then go to Exceed Submenu
» Then go to Exceed (Task) and Click
Lect 4 P. 15
Engineering H192 - Computer Programming
Winter Quarter Gateway Engineering Education Coalition
Today's Assignment – E3
• In assignment E3, you are asked to logon on to the UNIX system and try a few commands.
• In Part A, write down the command you typed for each of the seven steps.
• In Part B, choose an editor program and type in the given computer program.
• UNIX editor choices include:– vedit (or vi) – pico– emacs (X only)