Linux LPI 117-101 # 6 Of 9

57 Questions | Total Attempts: 105

SettingsSettingsSettings
Please wait...
Linux Quizzes & Trivia

Linux lpi testing


Questions and Answers
  • 1. 
    What does the command "foo < bar | foobar" do?
    • A. 

      Foo reads bar as stdin, pipes output to foobar

    • B. 

      Foo and bar are fed to foobar as stdin

    • C. 

      Foo's output is sent to bar, output is written to foobar

    • D. 

      None of the above

  • 2. 
    In the command 'test < bill | Certkiller '.
    • A. 

      The stdout from the command Certkiller is saved to the file test.

    • B. 

      The stdout from the command test is saved to the file Certkiller .

    • C. 

      The command Certkiller receives its stdin from the stderr of test.

    • D. 

      The command Certkiller receives its stdin from the stdout of test.

    • E. 

      The command bill receives its stdin from the contents of the file Certkiller .

  • 3. 
    You are writing a script to automate some tasks. You would like to be able to have alog of everything that you see printed to your console, yet you want to be able to seethe output on the console as well.What textutils command would typically be used to accomplish this?
  • 4. 
    You need to have all the output from the executable myprog written to a text lognamed file1.out. This program must not send any output to the console. Which ofthe commands listed will accomplish this?
    • A. 

      Myprog > file1.out 2>&1

    • B. 

      Myprog > file1.out 1>&2

    • C. 

      Myprog > file1.out 1> /dev/null

    • D. 

      Myprog 1&2> file1.out

    • E. 

      Myprog 1> /dev/null > file1.out

  • 5. 
    What command can be used to print out system boot messages?
    • A. 

      Bootm

    • B. 

      Bmsg

    • C. 

      Messages

    • D. 

      Dmesg

  • 6. 
    What is the result of the following command?command > file1.out 2>&1
    • A. 

      Redirects stderr to file1.out

    • B. 

      Redirects the stderr to the same location as the stdout.

    • C. 

      Redirects stdout to the screen and stderr to file.out

    • D. 

      Redirects all the output to the same location as the stderr

  • 7. 
    You set a variable's value with the command "export TEST=snuffy" and then after           executing the following script file, you type the command "echo $TEST".           scriptfile1           #!/bin/bash           USER=certkiller           TEST=$USER           What is the variable's value that is returned?
    • A. 

      Snuffy

    • B. 

      Certkiller

    • C. 

      Empty

    • D. 

      Variable undeclared

    • E. 

      TEST

  • 8. 
    You wish to send the output of a command to standard output (stdout) and save it toa file. The command to use is ______________. (Do not specify arguments)
  • 9. 
    In order to append the output of ls to a file called result, which of the following commandlines would you use?
    • A. 

      Ls > result

    • B. 

      Ls >& result

    • C. 

      Ls &> result

    • D. 

      Ls >> result

  • 10. 
    What syslog.conf facility represents the cron daemon?
    • A. 

      Crond

    • B. 

      Daemon

    • C. 

      Cron

    • D. 

      Crontab

  • 11. 
    What syslog.conf facility represents kernel processes?
    • A. 

      User

    • B. 

      Proc

    • C. 

      Daemon

    • D. 

      Kern

  • 12. 
    What syslog.conf facility represents Unix to Unix copy?
    • A. 

      Ucp

    • B. 

      Copy

    • C. 

      Uucp

    • D. 

      Uuc

  • 13. 
    What syslog.conf facility represents user authentication processes?
    • A. 

      Auth

    • B. 

      Proc

    • C. 

      User

    • D. 

      Login

  • 14. 
    What syslog.conf facility represents user processes?
    • A. 

      Auth

    • B. 

      Proc

    • C. 

      User

    • D. 

      U

  • 15. 
    What syslog.conf facility is used to create timestamps in log files?
    • A. 

      Mark

    • B. 

      Stamp

    • C. 

      Time

    • D. 

      Tstamp

  • 16. 
    What is the name of the configuration file used by the syslog daemon?
    • A. 

      Syslog.conf

    • B. 

      Syslogd

    • C. 

      Slog.conf

    • D. 

      System.conf

  • 17. 
    What syslog.conf facility represents login processes?
    • A. 

      Proc

    • B. 

      Login

    • C. 

      User

    • D. 

      Auth

  • 18. 
    What syslog.conf facility represents the line printer?
    • A. 

      Ptr

    • B. 

      Linep

    • C. 

      Lpr

    • D. 

      Lprinter

  • 19. 
    What daemon controls the syslog?
    • A. 

      Syslog

    • B. 

      Syslogd

    • C. 

      Logd

    • D. 

      Sys

  • 20. 
    What syslog.conf facility represents mail processes?
    • A. 

      Proc

    • B. 

      Daemon

    • C. 

      Mail

    • D. 

      Smtp

  • 21. 
    What syslog.conf facility represents user processes?
    • A. 

      Auth

    • B. 

      Proc

    • C. 

      User

    • D. 

      U

  • 22. 
    What syslog.conf facility represents httpd processes?
    • A. 

      Http

    • B. 

      Daemon

    • C. 

      Smtp

    • D. 

      Proc

  • 23. 
    Which of the following syslog.conf entries would cause kernel error messages to besent to the system console?
    • A. 

      Kern warning console

    • B. 

      Kern.error console

    • C. 

      Kern.warning /dev/console

    • D. 

      Kern error console

  • 24. 
    Which of the following syslog.conf entries would cause kernel warning messages tobe sent to the system console?
    • A. 

      Kern.console warning

    • B. 

      Kern.warning /dev/console

    • C. 

      Kern.warning.console

    • D. 

      Kern warning console

  • 25. 
    Which of the following syslog.conf entries would cause mail error messages to be      sent to the system console?
    • A. 

      Mail error console

    • B. 

      Mail.err /dev/console

    • C. 

      Mail. error console

    • D. 

      Mail.err.console

Back to Top Back to top