Name:

    Basic navigation commands

  1. What command will show the current directory?
  2. What command will list the contents of the current directory?
  3. What command will delete a file?
  4. What does execute permission do on a directory?
  5. show how to list the group membership of user jander81
  6. how can a user tell what their username is, without looking at the prompt?
  7. represent rw-rw-r-- in octal:
  8. convert 400 to symbolic permissions
  9. using octal mode and the chmod command, show the command which will remove non-owner ability to view contents of the following file:
    -rw-r--r--   1 jeremy  unixadm      3212 Dec 14 10:33 .profile

  10. Now show the symbolic-mode version of chmod that will allow everyone to be able to read and write to the file used in the previous question:
  11. the vi editor

  12. what are four keystrokes that will move a user from command to insert mode?
  13. What keystroke will move a user from insert to command mode?
  14. in command mode, what keystroke will delete a character?
  15. in command mode, what is the command to delete a word?
  16. what command will copy the current line into the buffer?
  17. what keystroke will paste the contents of the buffer to the line AFTER the cursor?
  18. what keystroke will paste the contents of the buffer to the line BEFORE the cursor?
  19. starting in command mode, how would a user save the current file?
  20. how would a user save and quit in a single command?
  21. how would a user quit from vi WITHOUT saving changes?

Extra Credit: (2 points) Figure out how to display the hostname of the machine you're currently logged into, wihout referring to the shell prompt: