basicsys@mars~>pwd /home/cs/segel/basicsys basicsys@mars~>cd lec1 basicsys@mars~/lec1>ls lec1m.txt old basicsys@mars~/lec1>cd old basicsys@mars~/lec1/old>ls F1 F2 lec1e.txt lec1e.txt?y lec1m.txt lec2 P1 P2 students basicsys@mars~/lec1/old>cd .. basicsys@mars~/lec1>ls lec1m.txt old basicsys@mars~/lec1>date Sun Oct 28 15:55:00 IST 2012 basicsys@mars~/lec1>echo abcd abcd basicsys@mars~/lec1>echo -n abcd abcdbasicsys@mars~/lec1>echo "abcd\nefgh\nab" abcd\nefgh\nab basicsys@mars~/lec1>echo -e "abcd\nefgh\nab" abcd efgh ab basicsys@mars~/lec1>echo "abcd" abcd basicsys@mars~/lec1>echo -e "\aabc\a" abc basicsys@mars~/lec1>echo -e "\aabc\a" abc basicsys@mars~/lec1>echo -e "\001" basicsys@mars~/lec1>echo -e "\001\002\003\004" basicsys@mars~/lec1>cat F1 abcd dddd 1234 dshfksdh basicsys@mars~/lec1>cat -n F1 1 abcd 2 dddd 3 1234 4 dshfksdh basicsys@mars~/lec1>cat F2 abcd def ghx basicsys@mars~/lec1>cat -s F2 abcd def ghx basicsys@mars~/lec1>cat -s -n F2 1 abcd 2 3 def 4 5 ghx basicsys@mars~/lec1>cat -n -s F2 1 abcd 2 3 def 4 5 ghx basicsys@mars~/lec1>cat -sn F2 1 abcd 2 3 def 4 5 ghx basicsys@mars~/lec1>cat -ns F2 1 abcd 2 3 def 4 5 ghx basicsys@mars~/lec1>cat P1 pwd ls date basicsys@mars~/lec1>P1 -bash: ./P1: Permission denied basicsys@mars~/lec1>chmod u+x P1 basicsys@mars~/lec1>P1 /home/cs/segel/basicsys/lec1 F1 F2 F5 lec1m.txt morning old P1 P1.1 P1.2 P1.3 P1.4 Sun Oct 28 21:56:07 IST 2012 Instructions to be able to run programs --------------------------------------- Do the following just once for the whole course: 1. login to mars 2. write: pico .bashrc 3. then using copy/paste add the following 3 lines to the end of the file .bashrc PS1="\u@\h\w>" set -C PATH=$PATH:. (do not add spaces in the above 3 lines!!!!) 4. exit from pico using ctrl+X and save the file 4. write: logout 5. then login again using telnet mars.netanya.ac.il Instructions on how to run a specific program --------------------------------------------- 1. using pico create a file. for example do pico P2 then write inside the file two commands, for examle pwd date then exit pico and save the file 2. write chmod u+x P2 3. run the program P2 by writing P2 Instructions on how to register to the course. ---------------------------------------------- in order to be able to register to the course, run the following command (just one time for the whole semester) ~basicsys/register you can run the above command from any directory. then enter your id number and name and exit. For example after typing ~basicsys/register and then giving id as 11111111 and name as udi rotics the following was seen on the screen: basicsys@mars~>~basicsys/register Hello you called the basic systems registeration program You need to call it in order to be able to submit exercises. You need to call this program just once. Please enter your id number (9 digits): 111111111 Please enter your name (first-name and last-name): udi rotics You entered, id: 111111111 name: udi rotics OK to update your details: (y/n)? y Your details were sent for update. It will take several days Until your details will be updated, bye. Instructions on how to submit exercises ---------------------------------------------- In exercise 1 you have to prepare 4 files, their names are P1.1 P1.2 P1.3 P1.4 after you prepared the files and tested them, you need will submit them for check (you have to submit all 4 files in one submit command). To submit the files for check you write the command ~basicsys/submit from the directory that contains the 4 files P1.1 P1.2 P1.3 P1.4 Then you will be asked for exercise number (write there 1 and not ex1). Then you will be asked for the lonin name of your partner, if you don't have a partner write the login name of yourself there). Here is an example of the screens I got when I did ~basicsys/submit from the basicsys login name basicsys@mars~>~basicsys/submit Hello you have called the submit program Enter the exercise number: 1 Hello you have called the submit ex1 program. Note that you can submit files only once. Do you want to continue (y/n)? y Enter the login name of your partner (if you do not have a partner then enter your login name): basicsys Your user id is: basicsys your partner user id is: basicsys OK to continue (y/n)? basicsys You have to enter y or n y The files that you have to submit are : P1.1 P1.2 P1.3 P1.4 Your file list is: P1.1 P1.2 P1.3 P1.4 Recall that you can submit exercises just once!!! OK to submit your files (y/n)? y Your files where submitted successfully. Bye.