Home / Computer Science / Unix & Linux Basics :: section-1

Computer Science :: Unix & Linux Basics

  1. What command is used to display a file contents in octal form?

  2. A.

     oct

    B.

     of

    C.

     od

    D.

     cd

    E.

     None of the above


  3. What command is used to assign executable permission to all of the files named "report"?

  4. A.

     chmod ugo + x report

    B.

     chmod u + x report

    C.

     chmod ugo + rw report

    D.

     chmod ugo + r report

    E.

     None of the above


  5. What command is used to change the working directory?

  6. A.

     cdir

    B.

     chdir

    C.

     changedir

    D.

     cd

    E.

     None of the above


  7. What command is used to count the number of files in the current directory by using pipes?

  8. A.

     ls | ws - c

    B.

     ls | wc - w

    C.

     ls | wc - l

    D.

     ls | wc

    E.

     None of the above


  9. What command is used to count just the number of characters in a file?

  10. A.

     wc - r

    B.

     wc - w

    C.

     wc - c

    D.

     wc - 1

    E.

     None of the above


  11. How many class A, B and C network IDs can exist?

  12. A.

     128

    B.

     126

    C.

     16,382

    D.

     2,113,658

    E.

     None of the above


  13. LILO

  14. A.

     stands for Linux loader

    B.

     is the Linux boot loader

    C.

     is a tool used to boot the Kernel on x86 hardware

    D.

     All of the above

    E.

     None of the above


  15. How can you rebuild the RPM file to include the new patches?

  16. A.

     - - recompile

    B.

     - - rebuild

    C.

     - - generate

    D.

     - - execute

    E.

     None of the above


  17. What command is used to set user and group quotas?

  18. A.

     /sbin/usrquota

    B.

     /sbin/edquota

    C.

     /sbin/quotaon

    D.

     /sbin/quota

    E.

     None of the above


  19. NIS

  20. A.

     is Network Information Service

    B.

     is a simple directory service whose main purpose is to allow remote authentication of systems on local network systems

    C.

     was formerly known as yellow pages

    D.

     allows configuration-such as password and group files

    E.

     None of the above