- Find and open the Terminal application on your lab machine. (Click here to view an image of the application icon).
- You will need to use a minimum of Linux commands to navigate to your submission directory. These commands are:
-
pwd prints the full path to your current directory, e.g.
bash-3.2$ pwd
/nfs/harper/hc1/gabri
-
ls, the list command prints the contents of the specified location (with no arguments it prints the contents of the current directory), e.g.
bash-3.2$ ls
Documents Desktop ...
is the same as (where we have specified the full path to a directory):
bash-3.2$ ls /nfs/harper/hc1/gabri
Documents Desktop ...
-
cd, the change directory command allows navigation of the directory tree, e.g, let's descend into the Documents directory:
bash-3.2$ pwd
/nfs/harper/hc1/gabri
bash-3.2$ ls
Documents Desktop ...
bash-3.2$ cd Documents
[We are now in directory Documents, let's list the contents]
bash-3.2$ pwd
/nfs/harper/hc1/gabri/Documents
bash-3.2$ ls
file1.txt
[Oops, our lab directory is not here, we had actually saved it on the Desktop]
bash-3.2$ cd ..
[ ".." refers to the parent directory of the current one]
bash-3.2$ pwd
/nfs/harper/hc1/gabri/
[We are back to the home directory]
bash-3.2$ cd Desktop
bash-3.2$ ls
Lab1
[We found the lab1 directory, let's make sure it contains our files]
bash-3.2$ ls Lab1
lab1.rkt
[Great, we are ready to submit. To learn more about these commands (or any others) type in man commandname . Press the key q when you are done reading about a command to exit its manual. A quick list of Linux commands can be found here]
- We will now copy this directory to your home directory of your CS account, using the
scp (secure copy) command
scp -r Lab1 ursa.cs.uchicago.edu:~/
-r specifies that the directory will be copied recursively, while ~specifies the home directory of your CS account. To read more about the scp command type man scp at the terminal window.
- We will now connect remotely to your CS account using the
ssh (secure shell) command:
ssh ursa.cs.uchicago.edu
You will be authenticated using your CS account password.
- Once logged in, we are by default located in the home directory. A simple list of its currents content should show the lab directory we have copied here in step 3:
bash-3.2$ ls
Lab1
bash-3.2$ ls Lab1
lab1.rkt
- We are now ready to submit this directory using the
hwsubmit command:
bash-3.2$ hwsubmit cmsc10500lab Lab1