Assignment: #assessment3 Due: 11/18/02018 Points: 7

Specification

  1. Every command-line must contain _____.
    1. a command name
    2. at least one option
    3. at least one argument
    4. a re-direction operator
  2. The dash - character when used on a command-line indicates _____.
    1. the end of the command-name
    2. the start of an option or options
    3. the end of the option list
    4. an argument placeholder
  3. Which command is used to send a broadcast message to all logged-in users? _____
    1. mail
    2. write
    3. mesg
    4. wall
  4. Which command is used to get documentation/help on commands? _____
    1. touch
    2. man
    3. help
    4. what
  5. Which option(s) are used on the id command to have it print user names only? _____
    1. -n
    2. -u
    3. -n -u
    4. -g
  6. Which one of the following is not a valid Unix command? _____
    1. foo
    2. who
    3. id
    4. touch
  7. False or True. Executing mesg n blocks all messages including those sent by root.
    1. false
    2. true
  8. False or True. Some Unix commands support a -v option that cause them to run in verbose-mode. _____
    1. false
    2. true
  9. False or True. You cannot be logged into the same Unix system more than once. _____
    1. false
    2. true
  10. Which command is used to see the permissions on a file? _____
    1. cat
    2. echo
    3. ls
    4. touch
  11. The LOGNAME for super-user is .
  12. The command can be used to delete a file.
  13. Enter the command-line to display the last 5 lines of the /etc/passwd file.
  14. Given the synopsis:    foo [-a] file ...    answer the following.

  15. the -a option is optional _____
    1. false
    2. true
  16. at least two arguments must be specified _____
    1. false
    2. true
  17. the command name can process multiple files _____
    1. false
    2. true