DISCUSSION and LAB 0 Cover: 1. Logging Into the System Login: Password: (trouble logging in : ask the Edlab monitor for help) 2. Start a Terminal Terminal Icon (on the bottom console) 3. List Files elnux0> ls elnux0> ls -al 4. Make a Directory elnux0> pwd (/nfs/elsrv4...../jdoe) elnux0> cd cs377 (this is a course directory) elnux0> pwd /courses/cs300/cs377/cs377 elnux0> mkdir lab0 elnux0> ls lab0 elnux0> cd lab0 elnux0> pwd 5. Editing a Simple File pico lab0.txt (ALWAYS SUBMIT A FILE WITH THIS NAME) Contents: ___________________________________________________ Name: John Doe Course: CMPSCI 377 This is the undergraduate level course on Operating Systems. It would cover the basics of OS design. Write three four lines of anything you feel like. Use your imagination. :) ___________________________________________________ You are welcome to use other editors (which are more powerful) like emacs vim but learn them on your own :) 6. Copy and Move stuff Around (cp, mv and rm) cp hello.txt hello_copy.txt mv hello_copy.txt new_hello_copy.txt 7. How to Submit assignments ? Only accept text format. (ascii text) Also accept postscript format html or any other format will give zero credit Only Electronic submissions entertained. 8. Logging in remotely (telent disabled use ssh) ssh elunux1.cs.umass.edu -l jdoe Putty client for Windows (do a google search) 9. How to move files between machines ? scp or sftp scp Usage: scp from to (does not do file listing) E.g.: scp hello.txt jdoe@elnux1:hello_dest.txt sftp Usage: sftp to_where 10. Windows clients pscp and psftp respectively http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Also see UNIX HELP LINKS ON THE COURSE WEB PAGE 11. The man command man ls man mkdir _____________________________________________________ 12. Lab 0 TO MAKE SURE YOU KNOW HOW TO SUBMIT LABS/HWKS 1. login to an Edlab machine. 2. Follow the steps above to familiarize yourself with the commands (ls, mkdir etc.) 3. Create directory lab0 (in your cs377 directory) (you would have already done so if you followed the steps above) 4. Create file using pico. contents: Your name Course name few lines on whatever you feel like writing 5. In future assignments you wld. be required to create directories in your cs377 course directory There wld. be a file named labx.txt or hwx.txt where x is the assignment number (x is zero for this lab.) 6. Passing this lab is a pre-reqisite for this lab.