CIS 210 Homework Assignment #2

Due: Wednesday, Mar 26, 2008, by 2PM

Name:
Email:

NOTE: To copy and paste in the Unix environment the following may be used:
  1. Name two commands you can use to determine the machine you are currently working on. Copy and paste the output of one of the commands below. (2pts)

  2. Name two commands you could use to figure out if other users are logged into your machine. (2pts)

  3. What command tells you which version of Unix you are working with? Using this command, cut and paste the command and its output below. (1pt)

  4. Show the command that you would use to display the current Julian day and its output. (1pt)
  5. What command would you use to determine the machine name and full domain name of where you're currently logged in? Hint: Use the hostname command. You'll have to look up the correct option to use. Copy and paste the command and its output below. (1pt)

  6. What are the values for the following environmental variables in your shell (1pt):
    • HOME:
    • LOGNAME:
    • SHELL:

  7. Create a new environment variable in your shell named "VIRGA" and give it the value of "777". Enter the command you used to perform this action.(1pt)

  8. Remove the "VIRGA" environment variable you created in the previous question. Enter the command you used to perform this action.(1pt)

last updated: 24 Mar 2008 15:31