Linux LPI 117-101 # 6 Of 9

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Tobyyy
T
Tobyyy
Community Contributor
Quizzes Created: 10 | Total Attempts: 1,384
Questions: 57 | Attempts: 126

SettingsSettingsSettings
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

    Correct Answer
    A. Foo reads bar as stdin, pipes output to foobar
    Explanation
    Common Redirection Operators
    Command >file : Redirects standard output of command into the file
    Command>>file : Append the standard output of command into the file
    Commandfile : Redirects the standard Error into the file
    And Pipe (|) is used to combine the command, in piping outout of first command goes as
    input to the second command.
    Answer A is correct because foo command takes input from the bar file and sends the
    standard output to foobar command.

    Rate this question:

  • 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 .

    Correct Answer
    D. The command Certkiller receives its stdin from the stdout of test.
    Explanation
    Common Redirection Operators
    Command >file : Redirects standard output of command into the file
    Command>>file : Append the standard output of command into the file
    Commandfile : Redirects the standard Error into the file
    And Pipe (|) is used to combine the command, in piping outout of first command goes as
    input to the second command.
    Answer D is correct because test command takes input from the Bill file and sends the
    standard output to Certkiller command.

    Rate this question:

  • 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?

    Correct Answer
    tee
    Explanation
    tee command redirect output to a file while still piping it to another
    program.
    Example: set | tee set.out | less : In example, output from set is written to file set.out
    while also being piped to less.

    Rate this question:

  • 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

    Correct Answer
    A. Myprog > file1.out 2>&1
    Explanation
    Common Redirection Operators
    Command >file : Redirects standard output of command into the file
    Command>>file : Append the standard output of command into the file
    Commandfile : Redirects the standard Error into the file
    And Pipe (|) is used to combine the command, in piping outout of first command goes as
    input to the second command.
    When we executes the command it generates the standard output as well as standard error
    and displays in standard output (Terminal Window) is default. When we redirect the
    standard error as well as standard output into the file, it will not send any output into the
    terminal window.
    myprog >file1.out 2>&1 : Where & works as a Logical AND Operator.

    Rate this question:

  • 5. 

    What command can be used to print out system boot messages?

    • A.

      Bootm

    • B.

      Bmsg

    • C.

      Messages

    • D.

      Dmesg

    Correct Answer
    D. Dmesg
    Explanation
    dmesg command prints the boot messages, you can check which
    devices are detected by your kernel or not from the boot log messages.

    Rate this question:

  • 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

    Correct Answer
    B. Redirects the stderr to the same location as the stdout.
    Explanation
    Common Redirection Operators
    Command >file : Redirects standard output of command into the file
    Command>>file : Append the standard output of command into the file
    Commandfile : Redirects the standard Error into the file
    And Pipe (|) is used to combine the command, in piping outout of first command goes as
    input to the second command.
    When we executes the command it generates the standard output as well as standard error
    and displays in standard output (Terminal Window) is default. When we redirect the
    standard error as well as standard output into the file, it will not send any output into the
    terminal window.

    Rate this question:

  • 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

    Correct Answer
    A. Snuffy
    Explanation
    Export sets the shell variable named TEST to snuffy.

    Rate this question:

  • 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)

    Correct Answer
    tee
    Explanation
    I want to show you one example, set | tee set.out | less. Here set
    command generates the output and gives as an input to tee command. tee command
    saves the output of set into set.out as well piping the output to less.

    Rate this question:

  • 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

    Correct Answer
    D. Ls >> result
    Explanation
    > will save the output to result
    >> will append the output to result
    >& will copy the output to result

    Rate this question:

  • 10. 

    What syslog.conf facility represents the cron daemon?

    • A.

      Crond

    • B.

      Daemon

    • C.

      Cron

    • D.

      Crontab

    Correct Answer
    C. Cron
    Explanation
    You can see in /etc/syslog :
    Cron.* /var/log/cron
    This line represents that cron related all log messages will write into /var/log/cron file.

    Rate this question:

  • 11. 

    What syslog.conf facility represents kernel processes?

    • A.

      User

    • B.

      Proc

    • C.

      Daemon

    • D.

      Kern

    Correct Answer
    D. Kern
    Explanation
    kern facility represents the kernel processes, in first line of

    /etc/syslog.conf file, you can see kern.* /dev/console, this means all kernel related log
    messages will send to /dev/console.

    Rate this question:

  • 12. 

    What syslog.conf facility represents Unix to Unix copy?

    • A.

      Ucp

    • B.

      Copy

    • C.

      Uucp

    • D.

      Uuc

    Correct Answer
    C. Uucp
    Explanation
    Facility in /etc/syslog.conf can be auth, authpriv, cron, daemon, kern,
    lpr, mail, mark, news, security, syslog, user, uucp and local0. Where uucp facility
    represents Unix to Unix copy.

    Rate this question:

  • 13. 

    What syslog.conf facility represents user authentication processes?

    • A.

      Auth

    • B.

      Proc

    • C.

      User

    • D.

      Login

    Correct Answer
    A. Auth
    Explanation
    auth facility represents the user authentication processes, and
    authentication related logs will send to /var/log/secure.

    Rate this question:

  • 14. 

    What syslog.conf facility represents user processes?

    • A.

      Auth

    • B.

      Proc

    • C.

      User

    • D.

      U

    Correct Answer
    C. User
    Explanation
    user facility represents the user processes Example:
    User.* /var/log/userlogs : It sends all user processes logs into /var/log/userlogs file

    Rate this question:

  • 15. 

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

    • A.

      Mark

    • B.

      Stamp

    • C.

      Time

    • D.

      Tstamp

    Correct Answer
    A. Mark
    Explanation
    You can see the timestamps on every log files this timestamps is
    genereated by mark facility.

    Rate this question:

  • 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

    Correct Answer
    A. Syslog.conf
    Explanation
    /etc/syslog.conf is the main log configuration file reads by syslogd
    service. Which logs system messages on unix system.

    Rate this question:

  • 17. 

    What syslog.conf facility represents login processes?

    • A.

      Proc

    • B.

      Login

    • C.

      User

    • D.

      Auth

    Correct Answer
    D. Auth
    Explanation
    auth is the facility which represents the login processes. Either local
    login or remote login, auth facilitiy traps the logs and writes into /var/log/secure file.

    Rate this question:

  • 18. 

    What syslog.conf facility represents the line printer?

    • A.

      Ptr

    • B.

      Linep

    • C.

      Lpr

    • D.

      Lprinter

    Correct Answer
    C. Lpr
    Explanation
    Facility in /etc/syslog.conf can be auth, authpriv, cron, daemon, kern,
    lpr, mail, mark, news, security, syslog, user, uucp and local0. Where lpr is the
    facility for line printer.

    Rate this question:

  • 19. 

    What daemon controls the syslog?

    • A.

      Syslog

    • B.

      Syslogd

    • C.

      Logd

    • D.

      Sys

    Correct Answer
    B. Syslogd
    Explanation
    Syslogd provides two system utilities which provide support for system
    logging and kernel message trapping. Support of both internet and unix domain
    sockets enables this utility packages to support both local and remote logging.

    Rate this question:

  • 20. 

    What syslog.conf facility represents mail processes?

    • A.

      Proc

    • B.

      Daemon

    • C.

      Mail

    • D.

      Smtp

    Correct Answer
    C. Mail
    Explanation
    Facility in /etc/syslog.conf can be auth, authpriv, cron, daemon, kern,
    lpr, mail, mark, news, security, syslog, user, uucp and local0. Where mail facility
    represents the mail processes . By default mail logs are send to /var/log/maillog file.

    Rate this question:

  • 21. 

    What syslog.conf facility represents user processes?

    • A.

      Auth

    • B.

      Proc

    • C.

      User

    • D.

      U

    Correct Answer
    C. User
    Explanation
    user facility represents the user processes Example:
    User.* /var/log/userlogs : It sends all user processes logs into /var/log/userlogs file

    Rate this question:

  • 22. 

    What syslog.conf facility represents httpd processes?

    • A.

      Http

    • B.

      Daemon

    • C.

      Smtp

    • D.

      Proc

    Correct Answer
    B. Daemon
    Explanation
    daemon facility represent the httpd processes.

    Rate this question:

  • 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

    Correct Answer
    C. Kern.warning /dev/console
    Explanation
    /etc/syslog.conf is the syslog configuration file, where we specified the
    facility and priority to send the facility related log messages to specified file.
    kernel.warning /dev/console : this line sends the warning related to kernel into
    /dev/console.

    Rate this question:

  • 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

    Correct Answer
    B. Kern.warning /dev/console
    Explanation
    /etc/syslog.conf is the syslog configuration file, where we specified the
    facility and priority to send the facility related log messages to specified file.
    kernel.warning /dev/console : this line sends the warning related to kernel into
    /dev/console.

    Rate this question:

  • 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

    Correct Answer
    B. Mail.err /dev/console
    Explanation
    Syntax of /etc/syslog.conf is :
    facility.priority : Where facility represents facility of service and priority represents the
    level of logs to store eg, info, err, emerg etc.

    Rate this question:

  • 26. 

    What syslog.conf facility represents Usenet news?

    • A.

      Usenet

    • B.

      News

    • C.

      Uunet

    • D.

      Net

    Correct Answer
    B. News
    Explanation
    news represents Usenet news example:
    Uucp,news.crit /var/log/spooler This line represents the logs of news to redirect into the
    /var/log/spooler log files.

    Rate this question:

  • 27. 

    You have just added the following line to your syslog.conf file:            lpr.info /dev/console. But, line printer messages are not being sent to the console.            What is most likely the problem?

    • A.

      After modifying the syslog.conf file, the syslog daemon needs to be restarted.

    • B.

      The entry is formatted incorrectly

    • C.

      The syslog daemon reads it configuration information from the syslogd file

    Correct Answer
    A. After modifying the syslog.conf file, the syslog daemon needs to be restarted.
    Explanation
    syslog is the daemon, which reads /etc/syslog.conf configuration file.
    After changing the configuration of syslog.conf you should restart the syslog service.
    # service syslog restart

    Rate this question:

  • 28. 

    What syslog.conf facility represents miscellaneous daemons?

    • A.

      Misc

    • B.

      Proc

    • C.

      Kern

    • D.

      Daemon

    Correct Answer
    D. Daemon
    Explanation
    daemon facility represents the miscellaneous daemons like httpd,
    vsftpd etc

    Rate this question:

  • 29. 

    What will the command "kill -HUP 1354" do?

    • A.

      Kill the process 1354 destructively

    • B.

      Kill the process 1354, allowing cleanup of memory

    • C.

      Restart the process 1354, re-reading it's config files

    • D.

      Restart the process 1354, resetting it's associated modem

    Correct Answer
    C. Restart the process 1354, re-reading it's config files
    Explanation
    kill command is used to terminate the processes by default it sends the
    TERM signal. When you send the -HUP signal, it will restart the process by reading
    the original configuration file.

    Rate this question:

  • 30. 

    To keep a process running after you logged out, you start it with the command:

    • A.

      Nohup

    • B.

      Fg

    • C.

      Live

    • D.

      Sh

    Correct Answer
    A. Nohup
    Explanation
    nohup : run a command immune to hang-ups, with output to a
    non-tty, to keep the process running after you logged out.

    Rate this question:

  • 31. 

    What will the command "kill -HUP 1354" do?

    • A.

      Kill the process 1354 destructively

    • B.

      Kill the process 1354, allowing cleanup of memory

    • C.

      Restart the process 1354, re-reading it's config files

    • D.

      Restart the process 1354, resetting it's associated modem

    Correct Answer
    C. Restart the process 1354, re-reading it's config files
    Explanation
    kill command is used to terminate the processes by default it sends the
    TERM signal. When you send the -HUP signal, it will restart the process by reading
    the original configuration file.

    Rate this question:

  • 32. 

    You have backgrounded a job called big Certkiller . When you type jobs and the            command line it comes back with the following info.            jobs            [1] Running job1            [2] - Running big Certkiller            [3]+ Stopped job5            Type the command any switch(es) that would bring big Certkiller to the foreground.

    Correct Answer
    fg %2
    Explanation
    when you enter the command it runs on foreground, which means you
    can type the commands after completing only, this is called foregroup but when you
    run the command in background, it allows to run multiple commands on same shell.
    bg jobid: which runs the jobs in background
    fg jobid: Which runs the jobs in foreground.

    Rate this question:

  • 33. 

    What is the result of the command:# kill 9 13459

    • A.

      Kill PID 13459 with a signal 15

    • B.

      Kill PID 13459 with a signal 1

    • C.

      Kill PID 13459 with a signal 9

    • D.

      None of the above

    Correct Answer
    D. None of the above
    Explanation
    Kill usage is:
    kill [ -s signal | -p ] [ -a ] [ -- ] pid ...

    Rate this question:

  • 34. 

    When executing a command that produces output to the screen, you get an exit codeof 0. Choose the best description of what has happened

    • A.

      The program executed properly

    • B.

      The program encountered an error

    • C.

      The program requires more input

    • D.

      The program has returned standard input

    • E.

      The program terminated with a syntax error

    Correct Answer
    A. The program executed properly
    Explanation
    when you executes the program, it returns the exit code either 0 or
    1-255. If returns the exit code 0 it means program executed successfully it it returns
    non-zero values it means error occurred during executing the program.

    Rate this question:

  • 35. 

    What will the command "kill -HUP 1354" do? Select all the apply

    • A.

      The same as kill -9 1354

    • B.

      The same as kill 15 1354

    • C.

      The same as kill -15 1354

    • D.

      The same as kill -SIGHUP 1354

    • E.

      The same as kill -1 1354

    Correct Answer(s)
    D. The same as kill -SIGHUP 1354
    E. The same as kill -1 1354
    Explanation
    kill command is used to terminate the processes by default it sends the
    TERM signal. When you send the -HUP signal, it will restart the process by reading
    the original configuration file. It is same to -SIGHUP and -1 signal. If you want to
    display all the signal avaialbles just use the kill -l command.

    Rate this question:

  • 36. 

    Which of the following commands sends an unclean and immediate kill signal to processID (PID) 1555?

    • A.

      Kill 1555

    • B.

      Kill -1 1555

    • C.

      Kill -2 1555

    • D.

      Kill -9 1555

    • E.

      Kill -15 1555

    Correct Answer
    D. Kill -9 1555
    Explanation
    -9 is the powerfull signal, which sends an unclean and immediate kill
    signal to process ID.

    Rate this question:

  • 37. 

    When the kill command is given with only the PID number of the process to kill (asin 'kill 1234'), this corresponds to which type of kill signal?

    • A.

      2 (SIGINT)

    • B.

      1 (SIGHUP)

    • C.

      9 (SIGKILL)

    • D.

      3 (SIGQUIT)

    • E.

      15 (SIGTERM)

    Correct Answer
    E. 15 (SIGTERM)
    Explanation
    When you send the kill command it by default sends the TERM signal.

    Rate this question:

  • 38. 

    What is the disadvantage of using the command kill -9 ?

    • A.

      A core dump file will be created.

    • B.

      It affects the entire process group.

    • C.

      It makes excessive use of system resources.

    • D.

      The action can be blocked by buggy or malicious processes.

    • E.

      The affected process is unable to clean up before exiting.

    Correct Answer
    E. The affected process is unable to clean up before exiting.
    Explanation
    While killing the process, we can send the signal. By default kill
    command sends the TERM signal, to send -9 signal
    #kill -9 PID
    While killing the process using -9 signal it unable to clean up before exiting.

    Rate this question:

  • 39. 

    The process big Certkiller is out of control, and efforts to cleanly stop it fail.You have executed a ps command and it displays the following info            PID TTY TIME CMD            3541 pts/0 10:10:10 big Certkiller            3558 pts/0 00:00:00 ps            What command should you type to absolutely stop the runaway process?

    Correct Answer
    kill -9 3541
    Explanation
    While killing the process using -9 signal it unable to clean up before exiting. When you
    use the -9 signal, it sends the sigkill signal. Other Avaialble signals are:
    1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
    5) SIGTRAP 6) SIGABRT 7) SIGBUS 8) SIGFPE
    9) SIGKILL 10) SIGUSR1 11) SIGSEGV 12) SIGUSR2
    13) SIGPIPE 14) SIGALRM 15) SIGTERM 17) SIGCHLD
    18) SIGCONT 19) SIGSTOP 20) SIGTSTP 21) SIGTTIN
    22) SIGTTOU 23) SIGURG 24) SIGXCPU 25) SIGXFSZ
    26) SIGVTALRM 27) SIGPROF 28) SIGWINCH 29) SIGIO
    30) SIGPWR 31) SIGSYS 34) SIGRTMIN 35) SIGRTMIN+1
    36) SIGRTMIN+2 37) SIGRTMIN+3 38) SIGRTMIN+4 39) SIGRTMIN+5
    40) SIGRTMIN+6 41) SIGRTMIN+7 42) SIGRTMIN+8 43) SIGRTMIN+9
    44) SIGRTMIN+10 45) SIGRTMIN+11 46) SIGRTMIN+12 47) SIGRTMIN+13
    48) SIGRTMIN+14 49) SIGRTMIN+15 50) SIGRTMAX-14 51) SIGRTMAX-13
    52) SIGRTMAX-12 53) SIGRTMAX-11 54) SIGRTMAX-10 55) SIGRTMAX-9
    56) SIGRTMAX-8 57) SIGRTMAX-7 58) SIGRTMAX-6 59) SIGRTMAX-5
    60) SIGRTMAX-4 61) SIGRTMAX-3 62) SIGRTMAX-2 63) SIGRTMAX-1
    64) SIGRTMAX

    Rate this question:

  • 40. 

    What command or option will allow a program to continue operations after theinvoking user has logged out of the system? Type just the answer.

    Correct Answer
    nohup
    Explanation
    nohup : run a command immune to hang-ups, with output to a
    non-tty, to keep the process running after you logged out.

    Rate this question:

  • 41. 

    You wish to see the processes that are taking up CPU resources and their PIDnumbers. Type in the command that would do this including the options/argumentsto cause a refresh every second.

    Correct Answer
    top -d 1
    top -d1
    Explanation
    Explanation:
    The top programs provides a dynamic real-time view of a running system. It can
    display system summary information as well as a list of tasks currently being
    mananged by the linux kernel.
    -d interval : Delay Time : Specifies the delay between screen updates and overrides the
    corresponding value in one personal configuration file or th startup default.

    Rate this question:

  • 42. 

    You wish to start a process and run it in the background. The binary executable ismybinary, and it's in your path. Type in the command in its simplest form to dothis.

    Correct Answer
    mybinary &
    Explanation
    Process can start either in foreground or in background. By default
    commands executes on foreground. Running the process in foreground allows only
    one command can enter at a time because we will get the shell to type another
    command until fininshing the current command. But background process allows to
    run the more than one command at a time.
    To run the process in background just append the & at the end of the command.
    Example:
    # find / -name passwd >result &

    Rate this question:

  • 43. 

    You wish to know what the previous runlevel the system was in. Type in thecommand to show this.

    Correct Answer
    runlevel
    Explanation
    runlevel command displays the current and previous runlevel.
    Example:
    [root@server1 ~]# runlevel
    N 3
    [root@server1 ~]#
    Which means Currenct runlevel is 3 is runlevel is not changed.
    Standard Runlevel
    0 - halt (Do NOT set initdefault to this)
    1 - Single user mode
    2 - Multiuser, without NFS (The same as 3, if you do not have networking)
    3 - Full multiuser mode
    4 - unused
    5 - X11
    6 - reboot (Do NOT set initdefault to this)

    Rate this question:

  • 44. 

    Regardless of the version of Linux, which of the following help start and stopservices on demand? Select two.

    • A.

      Xinetd

    • B.

      Inetd

    • C.

      Samba

    • D.

      Nfs

    • E.

      Amd

    Correct Answer(s)
    A. Xinetd
    B. Inetd
    Explanation
    xinetd performs the same function as inetd: it starts programs that
    provide Internet services. Instead of having such servers started at system
    initialization time, and be format until a connection request arrives, xinetd is the
    only daemon process started and it listens on all service ports ofr the services listed
    in it's configuration file.

    Rate this question:

  • 45. 

    Exhibit, output:            prompt> Certkiller app            [1]+ Stopped Certkiller app            prompt>            Which of the following commands will resume executing the stopped process while            allowing the user to continue to type commands at the command prompt?

    • A.

      Bg Certkiller app

    • B.

      Continue Certkiller app

    • C.

      Exec Certkiller app

    • D.

      Fg Certkiller app

    • E.

      Certkiller app &

    Correct Answer
    A. Bg Certkiller app
    Explanation
    Process can start either in foreground or in background. By default
    commands executes on foreground. Running the process in foreground allows only
    one command can enter at a time because we will get the shell to type another
    command until fininshing the current command. But background process allows to
    run the more than one command at a time.
    To run the process in background just append the & at the end of the command.
    Example:
    # find / -name passwd >result &
    We can suspend the jobs running in foreground by pressing ctrl+z shortcut. As well as
    can resume the suspended jobs either in background or foreground.
    #fg %jobid : Runs the job in foreground
    #bg %jobid : Runs the job in background
    or
    #fg command
    #bg command

    Rate this question:

  • 46. 

    What option can be used with the shutdown command to cancel a pendingshutdown?

    • A.

      Shutdown -c

    • B.

      Shutdown -x

    • C.

      Shutdown -n

    • D.

      Shutdown -u

    Correct Answer
    A. Shutdown -c
    Explanation
    shutdown brings the system down in a secure way. All logged-in uers
    are notified that the system is going to down, and login blocked.

    Syntax: shutdown [time]
    #shutdown -c : Which cancel the shutdown process.

    Rate this question:

  • 47. 

    You want to do a system shutdown, but you don t want the shutdown to occurimmediately. You want the system to wait 60 seconds before doing the shutdown.What option can be used with the shutdown command to wait 60 seconds beforestarting theshutdown?

    • A.

      Shutdown -t 60

    • B.

      Shutdown -w 1

    • C.

      Shutdown -c 60

    • D.

      Shutdown -t 1

    Correct Answer
    A. Shutdown -t 60
    Explanation
    shutdown brings the system down in a secure way. All logged-in uers
    are notified that the system is going to down, and login blocked.
    Syntax: shutdown [time]
    #shutdown -c : Which cancel the shutdown process.

    Rate this question:

  • 48. 

    What option can be used with the shutdown command to send a warning messagealerting users that the system will be shut down?

    • A.

      Shutdown -k

    • B.

      Shutdown -w

    • C.

      Shutdown -a

    • D.

      Shutdown -c

    Correct Answer
    A. Shutdown -k
    Explanation
    shutdown brings the system down in a secure way. All logged-in uers
    are notified that the system is going to down, and login blocked.
    Syntax: shutdown -k message : Which sends the warning messages to all logged-in users.

    Rate this question:

  • 49. 

    What option can be used with the shutdown command to reboot the system?

    • A.

      Shutdown -r

    • B.

      Shutdown -y

    • C.

      Shutdown -c

    • D.

      Shutdown -b

    Correct Answer
    A. Shutdown -r
    Explanation
    shutdown brings the system down in a secure way. All logged-in uers
    are notified that the system is going to down, and login blocked.
    shutdown -k message : Which sends the warning messages to all logged-in users.
    shutdown -r time : Which reboots the system
    shutdown -t time -h: Which halt the system after shutting down.

    Rate this question:

  • 50. 

    Given the following output:          prompt> myapp[1]+ Stopped myappprompt>Which of the following commands resume executing the stopped process while allowing the user to continue to type commands at thecommand line.

    • A.

      Bg myapp

    • B.

      Continue myapp

    • C.

      Exec myapp

    • D.

      Fg myapp

    • E.

      Myapp &

    Correct Answer
    A. Bg myapp
    Explanation
    Jobs running on foregroud can suspend by pressing ctrl+z. Then
    suspended job can be run either in foreground or in background. To run in
    foregroud, fg command and to run in background bg command.
    Or
    bg job id
    fg job id

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Feb 07, 2009
    Quiz Created by
    Tobyyy
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.