270 likes | 426 Views
Marvin Simkin http://simkin.asu.edu. Get Ready to Race!. Teams of two (or three) One person works the computer Other person raise hand when done. Go To This Web Site http://zotline.com. A program. In English: Calculate the area of a rectangle 5m by 10m
E N D
Get Ready to Race! • Teams of two (or three) • One person works the computer • Other person raise hand when done
A program • In English: • Calculate the area of a rectangle 5m by 10m • Store the result where I can use it later • Call it “LAWNSIZE” for future reference • Computer language: • LAWNSIZE = 5 * 10
The Power of Unix • Automation • Use the keyboard not the mouse • Commands in files
Secure Shell – Warning DANGER!
Secure Shell – Success! Type This /export/home4/msimkin/shared/setup
$ echo "Hello, world."Hello, world.$ Type This:
$ /usr/bin/lslib$ /usr/bin/cat > ./hiecho "Hello, world."[control-D]$ /usr/bin/lshi lib$ /usr/bin/cat < ./hiecho "Hello, world."$ /usr/bin/chmod 755 ./hi$ ./hi Type This:
Variable name PWD /export/home4/msimkin/shared/msimkin Value stored in this variable Variables A variable is a place to store some info
$ cat > ./heyecho "Hey, $1"echo "What’s up?"[control-D]$ cat < ./heyecho "Hey, $1" echo "What’s up?" $ chmod 755 ./hey$ ./hey bud Type This:
X, Y, Z,A0.9961,14.671,12.409,20.3191,1.6958,24.077,80.1797,11.501,15.133,32.7960,14.565,6.2765,12.6589,15.011,6.1656,11.7052,12.376,7.1086,12.6402,4.9692,15.413,70.8833,10.468,7.9641,10.0428,0.9109,16.076,70.5855,10.315,11.851,20.1297,7.0747,5.1924,5 Columns Rows Example Data File
$ /usr/bin/passwdpasswd: Changing password for msimkinEnter existing login password: New Password: Re-enter new Password: Change your password