ESE355 Lab - How to Get Started


In the lab, all your work will be done on SUN Solaris workstations. Solaris is SUN's UNIX. If you know nothing about UNIX, it will be a good idea to find some online UNIX tutorials. Searching "unix tutorial" in google.com, you will get a lot of websites. I recommend you M.Stonebank's and ISU's. Because I did not check all of these websites, you could find a better one. Please kindly email me your discovery if you do.

First Time Login - Step By Step

  1. Login one of computers.
  2. After the CDE Graphical User Interface starts up, if there are some windows pop up asking to choose "AGREE" "OK" "Cancel"..., click "Cancel" button to close these windows
  3. Open a terminal: Click mouse right button -> Tools -> Terminal.
  4. Change your password(recommended): type "passwd" in a terminal, then click Enter key, follow the prompts to change it.
  5. Run the command
      ../../first_time
    One file named ".cshrc" is copied to your home directory, which will set the environment for the tools you are going to use.
  6. Close the terminal.
  7. Open a new terminal. Now you are ready to use the tools.

Get Ready to Work In 15 Minutes

You are expected to finish this section to know some basic UNIX commands in 15 minutes and pass a quiz. If you have experience on UNIX, you can skip this section and go to the quiz now.

  • Using the Common Desktop Environment (CDE)
  • Using CDE is very similar to using MS windows. Click the right button of your mouse, you will see the menu. At present the tools/applications we are interested in are Terminal, File Manager, Text Editor. Open each of them to see how they work. Take advantage of your experience on MS Windows.

    I have to tell you that people working on UNIX don't use windows stuff so much. They do most of their work in terminals. Opening a terminal and entering come commands is the first choice when they want to do something. Because it is faster and more convinient.

  • Command Line Usage
  • Open a terminal. Run following commands(in bold only).

    1. s0xx$  cd ~
      Enter your home directory. "cd" means change directory. "~" denotes your home directory.
    2. s0xx$  pwd
      "pwd" means print working directory. It helps you to know which directory you are working in. Here, the directory showed by pwd is your home directory, which means you are the owner of this directory. In this directory, you have right to handle your files as you want. You can read files, create new files, modify exist files, delete files..., even you can set your files unreadable to others.
    3. s0xx$  ls
      "ls" is the short for list, listing the file in the directory. Do you see any files? It is said one files has been copied to my home directory. But, why I can not see it? ...
    4. s0xx$  ls   -a
      "ls -a" means "list all files". Now you see some files beginning with a dot(.). They are known as hidden files and usually contain important program configuration information. They are hidden because you should not change them unless you are very familiar with UNIX!!!
    5. s0xx$  pwd
      Remember where you are. We are going to move to somewhere else.
    6. s0xx$  cd  ..
      cd means "change directory". ".." means parent directory. Please note there are a space between "cd" and "..". You have entered the upper level directory of your home directory.
    7. s0xx$  pwd
      Now you see the change.
    8. s0xx$  ls
      You see a lot of directories beginning with "ee355". They are all students' home directories of ee355.
    9. s0xx$  cd  ..
      Go up again.
    10. s0xx$  pwd
      This is TA's home directory.
    11. s0xx$  ls
      Let's see what TA has.
    12. s0xx$  ls  -l
      Try again with an argument. You see more information about files.

      r, w, x are the flags for the rights to Read, Write, Execute. From the list, you find you have right to read most of TA's files, but you cannot write/modify/delete them.
    13. s0xx$  cd    ~
      Let's go back to you home directory. "~" means home directory.
    14. s0xx$  pwd
      Display your home directory here. You will use it soon.
    15. s0xx$  cd   /user3/ee355
      Using another way to enter TA's home again. "/usr3/ee355" is the absolute path of TA's home.
    16. s0xx$  pwd
      Let's check it.
    17. s0xx$  cd   students/ee355XXX
      Go back to your home directory. REPLACE ee355XXX with your home directory name.
    18. s0xx$  dtpad   &
      dtpad is an X-windows text editor. I believe it is the fastest way for beginners to start their work on UNIX. Later, you might choose vi or emacs/xemacs. "&" enable you to continue using the terminal while dtpad is still running. You can use command "dtpad test &" to edit a new file named "test". Write something now, then save it as file named "test". Close dtpad window.
    19. s0xx$   mkdir   tmpdir
      mkdir means "make directory". You have create a new directory named "tmpdir" in your homedirectory.
    20. s0xx$  ls  -l
    21. s0xx$  cp  test  tmpdir/testnew
      cp is the short for "copy". Format: "cp SOURCE_FILE TARGET_FILE".
    22. s0xx$  cd   tmpdir
    23. s0xx$  ls   -l
      You are in ~/tmpdir/ or /usr3/ee355/students/ee3550XX/tmpdir.
    24. s0xx$  mv   testnew   test
      mv means move. Here we "move" file testnew to current directory, but rename it to test. format: "mv SOURCE_FILE/PATH TARGET_FILE/PATH"
    25. s0xx$  ls   -l
      To see the change of the file name.
    26. s0xx$  rm   test
      rm means "remove". You've deleted the file named test in tmpdir directory.
    27. s0xx$  ls   -l
      To see the change.
    28. s0xx$  cd  ..
      Go back to your home directory. You can use "cd ~" or "cd" also.
    29. s0xx$  rmdir   tmpdir
      rmdir = remove dir. Delete an empty directory.

    In summary, you need to know following commands:

    Quiz On Basic UNIX Usage

    Copy a quiz file to your directory, answer the questions, generate the answer file, then submit the answer to the grader. You can make it done like this:

    1. create a new folder/directory named "quizdir" in your home directory, and enter the directory "quizdir".
    2. Copy file "~ee355/quiz/question" to the "quizdir" directory, change the file name to "answer_ee355XXX" from "quiz". Here "ee355XXX" is your user name.
    3. Edit file "answer_ee355XXX", answer the questions in the file, SAVE YOUR ANSWERS, close your Editor.
    4. Copy your answer file to ~ee355/quiz_answer/. Before copy, make sure your file name is changed to answer_You_Login_User_Name. So No one will send the files with the same name to TA.
    5. Delete the file you edited, which is in directory "quizdir".
    6. Delete the directory "quizdir". Now your home directory is "empty" if use "ls" to see the content.
    7. Report to your TA