CIS 2101 Homework Assignment #2

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 and the option to display all information for that 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 each):
    • HOME:
    • USER:
    • SHELL:

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

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

last updated: 02 Sep 2014 13:30Last modified: Thu Oct 14 15:13:34 EDT 2010