hw1 - COMPUTER SCIENCE 50100 Computing for Science and...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMPUTER SCIENCE 50100 Computing for Science and Engineering FALL 2014 DRAFT ASSIGNMENT # 1 (35 points) August 27 Due Wednesday, September 17 at 11:30 am This assignment covers through Section 2.2 of the class notes. 0. (Required) Be reminded that the evident use of outside material in your solution without including a written acknowledgment of the source is cheating . Read all the course policies in the syllabus, and state that you have done so . 1. (your convenience) If you are running Linux or OS X, you can communicate from the com- mand line with scholar or any other Unix machine without entering passwords by doing the following: First, see whether you already have the file ~/.ssh/id_rsa.pub on your computer. If not, create such a file by entering the following command on your machine $ ssh-keygen -t rsa and hitting return 3 times. Then, append the contents of this file to the file scholar:~/.ssh/authorized_keys . Further information is available from http://rcsg-gsir. imsb-dsgi.nrc-cnrc.gc.ca/documents/internet/node31.html . 2. (2 points) Give a Unix glob that matches all file names consisting of at least one character followed by a digit from 0 through 3 followed by a period followed by exactly 3 characters. 3. (3 points) Write a bash script clean.sh that moves files in the current directory with names ending in ~ , .aux , or .log to the hidden directory ~/.Trash . First announce the move by printing the message “ Moving the following files to ~/.Trash: ” and then, on the next line, list the files. Redirect error messages to the bit bucket ( /dev/null ) using the operator 2> ”. Here is an example: $ mkdir ~/.Trash 2> /dev/null
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern