How to use the lab machines without being in the lab


--------------------

On Mac, find utilities and open a terminal.

you can use ssh to log in to machines in 121 

ssh your_id@th121-6.cs.wm.edu

You can use the lab machine to compile your programs.

To copy a file from 121 to your computer, try the following:

scp your_id@th121-6.cs.wm.edu:/home/your_id/cs303/ll.c  .

To copy a file from your local machine to 121, try:

scp ll.c your_id@th121-1.cs.wm.edu:/home/your_id/cs303/

You can edit your program locally, and then scp to the machine in 121.

-------------------------

Putty On Windows, you may try Putty: https://www.putty.org/

https://www.putty.org

xshell is also a convenient ssh tool on  PC.(like putty)

it support multiple tabs.

https://www.netsarang.com/en/free-for-home-school/

  free to student. 

fetch is a FTP and SFTP client on MAC which is an alternative to  terminal ssh, scp.  if you want to fetch the file, modify it and send it back, since edit any kind of file and the changes will automatically be saved back to the server.

http://fetchsoftworks.com/fetch/

free to student.

-------------------------

-----------------------------------------------------------------------------



Learn to use the following Linux commands:

>mkdir cs303
This will make a directory named cs303

>cd cs303
This will put you in the directory of cs303

Now you can use your editor (such as emacs) to edit your file, e.g.,
>emacs square.c &

Inside emacs, you can use Ctrl x followed by Ctrl s to save the change to your file. Use Ctrl x followed by Ctrl c to exit emacs.

>ls
This will show your files in the current directory

>ls -l
This will show your files in the current directory with more information about each file

>cd ..
This will let you get out of the current directory

>pwd
This will show you which directory you are in now.

https://www.youtube.com/watch?v=2FiQSLdnBqA

https://www.youtube.com/watch?v=BMGixkvJ-6w

https://hcc.unl.edu/docs/connecting/basic_linux_commands/