CIS 2101 Homework Assignment #11

Name:
Email:

NOTE: To copy and paste in the Unix environment the following may be used:
  1. What shell are you currently using? How did you determine this? (1pt)

  2. What is the purpose of the .bshrc file in your home directory (in your own words)? (1pt)

  3. What is the purpose of the .user.bshrc file in your home directory (in your own words)? (1pt)

  4. Show the last five entries in your shell's history. What command did you use to get this output? (2pts)

  5. How can you repeat the last command you entered? (1pt)

  6. How could could you repeat the 9th command you entered? (1pt)

  7. Create a command alias named "ltl" that will run "ls -lhrt" when entered in your shell. What command did you enter to do this? (2pts)

  8. How would you create a custom prompt that would display the current time followed by your username? (1pt)

  9. How would you make it so that the prompt you created in the previous question will be available every time you log in? (You do not need to make this change, just explain how it would be done.) (1pt)

last updated: 07 Oct 2020 14:14