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

Computer Science :: Unix & Linux Basics

  1. What command is used to copy a file?

  2. A.

     tar

    B.

     cpio

    C.

     cp

    D.

     copy

    E.

     None of the above


  3. What command is used to display your current working directory?

  4. A.

     path

    B.

     pwd

    C.

     prompt $p$g

    D.

     dir

    E.

     None of the above


  5. What command is used with vi editor to move the cursor to the left?

  6. A.

     h

    B.

     k

    C.

     j

    D.

     i

    E.

     None of the above


  7. What command do you use to add routes to a Linux router?

  8. A.

     addroute

    B.

     route

    C.

     netstat

    D.

     net

    E.

     None of the above


  9. Which of the following command is used to mount NFS filesystems?

  10. A.

     nfsmount

    B.

     knfsd

    C.

     mount

    D.

     All of the above

    E.

     None of the above


  11. To build a modularized kernel, the kernel-headers and kernel-source packages must first be installed. Where will you find the kernel-headers and kernel-source?

  12. A.

     /usr/local

    B.

     /usr/src/linux

    C.

     /usr/sre/redhat

    D.

     /usr/bin

    E.

     None of the above


  13. After you have compiled your kernel, what do you have to edit to boot your new kernel image?

  14. A.

     /boot/lilo.conf

    B.

     /etc/conf.modules

    C.

     /etc/named.boot

    D.

     /etc/lilo.conf

    E.

     None of the above


  15. To create an installation boot floppy disk from Linux (or another Unix) machine, what command could you use?

  16. A.

     fdisk

    B.

     fsck

    C.

     dd

    D.

     rawrite

    E.

     None of the above


  17. You just added a new user, kara, to the system. What group is kara added to by default?

  18. A.

     root

    B.

     kara

    C.

     group

    D.

     user

    E.

     None of the above


  19. What are the appropriate Hex codes for setting Linux swap and Linux native partition types in fdisk?

  20. A.

     82 and 83

    B.

     92 and 93

    C.

     63 and 64

    D.

     82 and 85

    E.

     None of the above