C687: Introduction to UNIX and PDB Files

The aim of this tutorial is to familiarize you with UNIX and to introduce you to Protein Databank (PDB) files.

Part 1: Login and Familiarization with UNIX Windows

Duration: 10 minutes
  1. Login to the workstation
  2. Open a UNIX window (shell) by clicking on Desktop-Unix Shell with left mouse button. A prompt should appear in the window.
  3. Move the cursor to the bar at the top of the window. Hold down the left mouse button and drag the mouse. The window should move.
  4. Move the cursor to the corner of the window frame. Hold down the left mouse button and drag the mouse. The window should change size.
  5. Move the cursor to the bar at the top of the window. Hold down the right mouse button and drag the mouse to Minimize. The window is converted to an icon. Click on the icon with the left mouse button. The window now reappears. Similarly, try the Maximize, Restore, Move, and Size commands. Also, try clicking on the symbols in the upper right hand corner of the window to iconize (minimize) and maximize the window size.
  6. Open up more windows. Practice moving them around, changing size, etc. until you are comfortable with these functions.


Part 2: Directories and Simple Text Files

Duration: 15 minutes
  1. Move the cursor into one of the windows. This is now the active window. Type pwd [note that you must also press after each command]. The name of the present working directory should be displayed. This should be your home directory.

  2. Type each of the following commands and observe the results:
    1. mkdir newdir1 (creates a directory named newdir1)
    2. mkdir newdir2 (creates a directory named newdir2)
    3. ls (to list the contents of the directory)
    4. ls -l (to display a long listing of the contents of the current directory)
    5. ls -al (to display a long listing of all contents of the current directory, including files that start with the "." character)
    6. cd newdir1 (changes the present working directory to newdir1)
    7. pwd
    8. ls -al
    9. cd .. (changes back to the parent directory)
    10. pwd
    11. ls -al
    12. cd newdir2 (changes the present working directory to newdir2)
    13. pwd (confirm that you are in the newdir2 directory)
    14. cd ../newdir1 (changes the present working directory to newdir1 - i.e. up to parent directory {..} then back down to newdir1)

  3. Create some simple text files in the directory newdir1:
    jot newfile1
    This starts the jot editor and creates a file named newfile1. jot works like rudimentary common Mac or PC word processing programs. Type a few lines (e.g., your favorite poem, pretein sequence, or political manifesto), save, and quit.

    jot newfile1 (reopens the existing file). Edit this file, save, and quit.

    ls -al

    Use jot to create 1 or 2 more short text files in the newdir1 and newdir2 directories (use a unique name for each new file).

    Practise using the multiwindowing capabilities of the SGI by changing to one directory in one window and changing to different directories in other windows.


Part 3: Telnet, ftp, and Netscape

Duration: ~10 to 15 minutes

  1. telnet is a networking tool that allows you to use a local computer (the computer with the keyboard & monitor that you are currently using) to access a remote computer (a second computer that does the compute processing and send the results to the local computer). For example, if you are using pchem01 as your local computer, you can telnet to pchem02 and login to that computer. All subsequent commands that you type will be interpreted by the CPU of pchem02. You will now be able to read and write data using any directory on a disk that is crossmounted on pchem02.

    Type telnet pchem## to telnet to a remote computer (where pchem## is a different computer from your local computer). Login, then determine which directory you are in. Make sure that you understand the difference between being logged in to a particular machine and using a directory on a particular disk. Note that you can use telnet to log into any computer in the world that is attached to the internet and on which you have an account. Terminate the telnet session by typing exit.

  2. ftp (file transfer protocol) is another networking tool that allows you to transfer files between two computers. The two computers must be connected to a network, and you must be able to login to both computers, but the computers do NOT have to share any resources.

    Type ftp pchem##, to ftp to/from a remote computer (where pchem## is a different computer from your local computer). Login, then type the following commands:

    1. pwd (lists the present working directory on the computer that you ftp'ed TO)
    2. ls (displays the file list on the computer that you ftp'ed TO)
    3. cd newdir1 (changes the present working directory on the computer that you ftp'ed TO)
    4. pwd
    5. ls
    6. !pwd (lists the present working director of the computer that you ftp'ed FROM)
    7. !ls (displays the file list of the computer that you ftp'ed FROM)
    8. lcd newdir2 (changes the present working directory on the computer that you ftp'ed FROM)
    9. !ls (displays the file list of the computer that you ftp'ed FROM)
    10. put filename where filename is the name of a file on the computer that you ftp'ed FROM, listed by the last command. put transfers the file from the computer that you ftp'ed FROM to the computer that you ftp'ed TO.
    11. ls (lists the files on the conputer that you ftp'ed TO) get filename where filename is the name of a file on the computer that you ftp'ed TO, listed by the last command. get transfers the file from the computer that you ftp'ed TO to the computer that you ftp'ed FROM.
    12. !ls (displays the file list of the computer that you ftp'ed FROM)
    13. quit

      Verify that you have transferred a file from the newdir1 directory to the newdir2 directory, and that you have transferred a file from the newdir2 directory to the newdir1 directory.

      If you have time, see the ncftp web page.

    14. Netscape is a World Wide Web browsing program.
      Initiate netscape by typing netscape or netscape & (the "&" allows you to continue working in the window from which you started netscape). This tutorial assumes a basic familiarity with netscape and the web.

      Go to the following web site: http://www.molvis.indiana.edu/
      Bookmark this site.


Part 4: PDB Files

Duration: 20 to 25 minutes

In this section you will go to the PDB web site, and learn how to find a PDB file and copy it to your own directory.

  1. Go to http://www.rcsb.org/pdb. Choose SearchFields: advanced search.
  2. Use the browser to search for PDB files relevant to certain compounds. Try a few searches. Finally choose a small protein whose structure is known and search for it.
  3. Fetch one of the entries that matches your seach request. Only the first informational lines ("header") of the PDB file is displayed at this stage. To obtain the entire text, click on Send Entire Text.
  4. Select File-Save As to save the PDB file in your directory. Choose an appropriate directory and filename in the dialog box.
  5. Go to a separate UNIX window and check that the file is there. Use the jot editor to examine the file's contents.
  6. Back in the Netscape window, go to the PDB homepage and select About the PDB General Information or WWW User Guides. This page is a lengthy guide that describes all the information given in PDB files.
  7. With the PDB Documentation guide displayed in the Netscape window and your PDB file displayed in your jot window, spend some time investigating the information in the PDB file. Try to understand the general structure of the file and the relevance of the information. Don't worry too much about the details of the experiments described in the header lines. Pay particular attention to the ATOM lines (giving the atom labels and coordinates) and also note the following sections:


Part 5: More UNIX Commands

Duration: 20 to 25 minutes
See the UNIX Command Quick List web guide. Practice the following commands (use the name of your PDB file in place of filename:

Read the notes about System Security. Then type ls -al to view the security modes of your files.

See also the Typing Shortcuts.


Part 6: Ending your UNIX Session

Duration: ~5 minutes
  1. Clean up your home directory: delete any files and directories that you no longer need, using the rm command. You should get into the habit of doing this at the end of each session.
  2. Type exit in each UNIX shell to close the shell.
  3. In the toolbox (in the top left corner of the screen), click on Desktop and Log out. OR position the cursor in the background area of the screen, Click & hold the right mouse button, and select Log Out. If you do NOT log out of a UNIX system, other people can use your UNIX account. To ensure security, ALWAYS LOG OUT!

Back to  |  C687 Spring 1999  |  Courses & Instruction  |  MolViz Home  |
Send comments to chemvis@indiana.edu
Last updated: 01/23/2001