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

Computer Science :: Unix & Linux Basics

  1. Which of the following is not a filter command?

  2. A.

     sort

    B.

     wc

    C.

     grep

    D.

     cat

    E.

     None of the above


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

  4. A.

     oct

    B.

     of

    C.

     od

    D.

     cd

    E.

     None of the above


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

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


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

  8. A.

     cdir

    B.

     chdir

    C.

     changedir

    D.

     cd

    E.

     None of the above


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

  10. A.

     ls | ws - c

    B.

     ls | wc - w

    C.

     ls | wc - l

    D.

     ls | wc

    E.

     None of the above


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

  12. A.

     wc - r

    B.

     wc - w

    C.

     wc - c

    D.

     wc - 1

    E.

     None of the above


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

  14. A.

     128

    B.

     126

    C.

     16,382

    D.

     2,113,658

    E.

     None of the above


  15. LILO

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


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

  18. A.

     - - recompile

    B.

     - - rebuild

    C.

     - - generate

    D.

     - - execute

    E.

     None of the above


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

  20. A.

     /sbin/usrquota

    B.

     /sbin/edquota

    C.

     /sbin/quotaon

    D.

     /sbin/quota

    E.

     None of the above