1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Linux quiz questions

Discussion in 'Shell Script' started by tejasthacker, Aug 28, 2010.

  1. tejasthacker

    tejasthacker New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    PLEASE HELP ME WITH THIS QUESTIONS, I AM NOT POSTING MY WHOLE HOMEWORK BUT ONLY THE QUESTIONS WHICH I AM NOT SURE ABOUT.


    1)What command will set the permissions to 744 on the file /home/fred/.bash_logout
    Choose one answer.
    a. chmod a+r,g+r,o+r /home/fred/.bash_logout
    b. chmod u+rwx g+r o+r /home/fred/.bash_logout
    c. chmod u=rwx g=r o=r /home/fred/.bash_logout
    d. chmod u=rwx,go+r /home/fred/.bash_logout
    e. chmod u=rwx,g=r,o=r /home/fred/.bash_logout

    2)True or False: The following if statement will evaluate to true.
    val=`expr 15 + 3`
    if [ $val -eq 18 ]
    Choose one answer.
    a. True
    b. False

    3)In your bash shell, which environment variable stores the prompt that your shell displays at the command line?
    Choose one answer.
    a. PROMPT
    b. DISPLAY
    c. PS1
    d. SHELL
    e. None of the above

    4)what is run level 2 defined as for Fedora Linux?
    Choose one answer.
    a. single user mode plus networking
    b. user definable system state
    c. multi-user mode, with remote file sharing, processes, and daemons
    d. None of the above

    5)What does a router do?
    Choose one answer.
    a. matches information in the routing table with the data's destination IP address and broadcasts incoming data to all networks
    b. matches information in the routing table with the data's destination IP address and sends incoming data to the correct network
    c. matches information in the routing table with the data's destination IP address and holds the data until delivery is requested
    d. matches information in the routing table with the data's source IP address and sends incoming data to the correct subnet
    e. matches information in the routing table with the data's destination MAC address and broadcasts incoming data to all networks

    6)True or False: The kernel is just like any other process and can be killed by root
    Choose one answer.
    a. True
    b. False
     

Share This Page