How to use unix to start a unix session




Дата канвертавання27.04.2016
Памер12.45 Kb.
How to use UNIX
To start a UNIX session:

  1. On the lab machines, go to:
    Start Menu  Internet Tools  _Unix – Telnet & SSH  unix.ic

  2. Login using your username/password that you use to login to the machines in the lab.

  3. You should see a prompt similar to unix%

If you would like to use a UNIX session at home, download an SSH client. I like putty. After starting the SSH client:



  1. If it starts with a window asking for the host name, enter unix.ic.ucsc.edu. Port 22 is fine.

  2. If your SSH client starts with a prompt, type ssh unix.ic.ucsc.edu

  3. Type in your username and password that you use to login the machines in the lab

  4. You should see a prompt similar to %>

This means you are now logged into your home directory using the UNIX operating system. On the lab machines, if you double click the “ home directory” icon, you will see the list of files in your home directory.


At the %> prompt, type ls and hit return.

You will now see the same list of files in your home directory but using the UNIX interface. You’re accessing the same place, just looking at it with a different interface.


UNIX commands that are helpful (these are case-sensitive):

ls – list of files in the current directory

pwd – print working directory (helpful to see where you are in the directory structure)

cd - changes directory e.g. cd public_html will change to the directory where you’ve been storing your webpages.

exit – close your connection.


How to use FTP
FTP (File Transfer Protocol) is used to copy files from your machine to your home directory. This means you will be able to access them from the machines in the lab.
On your machine, download a SFTP client. The S means it uses a layer of security. I really like CuteFTP because it has a nice graphical interface.

  1. If you use a graphical FTP client, enter unix.ic.ucsc.edu as the hostname.

  2. You should see a list of file folders on YOUR machine on the left side.

  3. On the right side should be a list of file folders in your HOME DIRECTORY.

  4. You can navigate through both folder lists similar to windows explorer. Dragging a file from the left side and dropping it on the right side copies a file from your machine to your home directory. Dragging and dropping the other way copies it from your home directory to your machine.

If you are using a non-graphical version of an ftp client (like psftp)



  1. Start your client. Either type the hostname (unix.ic.ucsc.edu) if you get a window asking for it, or type open unix.ic.ucsc.edu

  2. Login using your username/password you use to login to the machines in the lab.

The following commands are used for ftp:



lcd – change directory on your home machine, e.g. lcd c:\projects

cd – change directory in your home directory, e.g. cd public_html

put – copy a file from your machine to the home directory, e.g. put cmps80v.shtml

(Please note, this copies a file from the current directory on your home machine (that you’ve gotten to using lcd) to the current directory in your home directory (that you’ve gotten to using cd)



get – gets a file from the home directory and puts it on your machine, e.g. get lab1.wrl

close – exit

How to submit your final project
Zip up your project on your machine using your favorite zip program.

FTP to your home directory

Copy your zip file from your machine to your home directory.

Close FTP.

Start a UNIX session

Type ls and hit return.

Make sure your zip file is there.

Type submit cmps080v-ap.f08 proj your-zip-file where “your-zip-file” is replaced with the name of your zip file.



Type peek cmps080v-ap.f08 proj to make sure your zip file was transferred correctly.

Peek no longer works, but if you didn’t get an error when you tried submitting, it worked.



You’re done!


База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка