Psy 422 - Assignment 1

Activate your account on shrike.depaul.edu

If you are currently a student, you have a shrike account already. If you do not know how to log into your shrike account (if you do not know your password) you must go to an ID Services office to change your password and activate your account. Next week you will be creating a web page on your shrike account, so you must activate your account before next week.

Use Unix utilities to answer the following questions.

First telnet (or ssh) into your account on sheu-hp.psy.depaul.edu. For each question, give (a) the answer and (b) the commands you used to get the answer. (Hint: You can cut and paste the command and its output into a file to print out and turn in. Hint#2: remember that you can use the history list to see what commands you have run, or to repeat them.)

  1. What is the largest file in your home directory?

    Hint: man sort

  2. Extensive documentation for various packages can be found in /usr/share/doc. There is a separate directory there for each package. Which of these subdirectories contains the largest pile of documentation (takes up the most disk space)?

    Hints:

  3. Does the word "FUBAR" occur in all lower-case letters anywhere in the source file of this web page? (The web page that you are reading right now). If so, how many lines contain at least one lower-case FUBAR?

    Hints:

  4. Create a bash shell script called "fix-terminal-type" that will change your terminal type to vt100 and export the terminal type as an environment variable so that your login window will display properly. It will only need to be a few lines. You can use "my-first-bash-script" as a model to help you figure out what to do.

    Hint: pico might be easier to use than vi

  5. How many words are there in the file /etc/hosts? (Count any string of non-space characters as one word, and do not ignore case. dog, Dog, and "dog should all get counted as different words.)

    Hints:

  6. Which non-hyphenated English word occurs with the greatest frequency in the file /etc/httpd/conf/httpd.conf, and how many times does it occur?

    Hints:

  7. How many times does that word occur if you ignore case - in other words if you count uppercase and lowercase together?

    Hint:

Readings for Next Week