Introduction to Unix Assignment:

We are going to be using panther over the course of the semester, so it is a very good idea to get comfortable with it as soon as possible. This assignment needs to be done on panther because its goal is to get good connectivity to panther.

Download your tools of putty (windows), and filezilla (both mac and windows). You can use the course setup page to find these.

You will now be following instructions to build a file, and then you will give that file to me through moodle. I called the file filename in my instructions, but you can call it whatever you like; however you have to be consistent and use that other name whenever you see filename.

 

Use putty or mac terminal to log into panther. You should be able to log in using your Adelphi universal password.

Create a folder for your classwork called csc271 (mkdir csc271)

Go into that directory with cd csc271

make a file that contains the date

date > filename

Next, you will create a bunch of files and directories and then add a listing of those files to that same filename.

BE CAREFUL!! If you forget the second >, it will OVERWRITE YOUR FILE. (in which case, just redo the two commands that include >)

Add the contents of your original file:

Choose a word that you will try to find inside your file (and it should exist in your file) and echo it into the file you are building:

Next, you will grep the file you created to find all the lines that have a certain word (and you can choose the word). Add that grep to the file.

Finally use ed to change one line in the file and append the entire file

When you view (more) filename, you should see:

  1. date
  2. listing of all 3 files and the hwk1 folder
  3. contents of your file
  4. grep search of your file
  5. your file changed

This filename file needs to get back onto your computer so it can be uploaded to moodle. Use SFTP (filezilla) to transfer it back to your own computer. Then upload it to moodle's Intro to Unix assignment.

Here is a movie showing you how to copy your filename file from panther to your own computer so that you can upload it to moodle. If you have trouble with the first assignment uploading, I will not mark it late.