If you want, you can upload your homework from a terminal window.
Suppose you have created, on your own computer, an index.html
file for your assignments for this course.
First, open two terminal windows on your computer.
In the first terminal window, go to the directory where your index.html is located.
Then type:
scp index.html perlin@access.cims.nyu.edu:public_html/index.htmlExcept that you wouldn't use "perlin". You would use your own login id. I'm just using "perlin" as an example.
Next, suppose your index.html
file contains a link to your first homework assignment that will be in a subdirectory
public_html/assignment1/
.
In particular, your index.html
will contain an html link that looks something like:
<a href=assignment1/index.html>Assignment 1</a>In the second terminal window:
ssh perlin@access.cims.nyu.edu
cd public_html mkdir assignment1
assignment1/
which contains an
index.html
and lib1.js
files for assignment 1.
In the first terminal window, the one that's not logged into your CIMS account, first go into that subfolder (don't forget this step!) and then type:
scp index.html public_html/assignment1/index.html scp lib1.js public_html/assignment1/lib1.jsNow you need to make those files publicly visible.
cd assignment1 chmod a+r index.html chmod a+r lib1.jsIf you are not sure whether a particular file or directory is publicly readable, you can do an "ls -l" command to check.
ls -l index.htmlToward the left of what this command prints out, you should see something like "-rwxr--r--".
This tells you that the file is readable by, respectively, you, your group and all others.
If you don't see three occurrences of "r", that means
you still need to do a chmod a+r
command on the file.