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

Computer Science :: Unix & Linux Basics

  1. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

  2. A.

     chmod -R a+x progs

    B.

     chmod -R 222 progs

    C.

     chmod -1 a+x progs

    D.

     chmod -x a+x progs

    E.

     None of the above


  3. Which command is used to display and create files?

  4. A.

     cat

    B.

     vi

    C.

     ed

    D.

     lyrix

    E.

     None of the above


  5. The second set of the three permissions (r-) indicates that

  6. A.

     group has read permission only

    B.

     other has read permission only

    C.

     owner has read permission only

    D.

     group has write permission only

    E.

     None of the above


  7. Which column contains all details of the permissions of a file when you issue the ls -l command?

  8. A.

     second

    B.

     fourth

    C.

     third

    D.

     first

    E.

     None of the above


  9. Which of the following commands is used to display your working directory?

  10. A.

     dir

    B.

     prompt $p$g

    C.

     pwd

    D.

     path

    E.

     None of the above


  11. While working with mail command, which command is used to save mail in a separate file?

  12. A.

     s

    B.

     r

    C.

     w

    D.

     d

    E.

     None of the above


  13. The command used to compare the files is known as

  14. A.

     comp

    B.

     cmp

    C.

     do

    D.

     ccp

    E.

     None of the above


  15. Which command is used to terminate a process?

  16. A.

     shutdown

    B.

     haltsys

    C.

     cancel

    D.

     kill

    E.

     None of the above


  17. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?

  18. A.

     #NAME?

    B.

     #NAME?

    C.

     #NAME?

    D.

     +(m+l).n

    E.

     None of the above


  19. The cp command uses:

  20. A.

     standard input file

    B.

     standard output file

    C.

     both input and output file

    D.

     neither standard input nor standard output file

    E.

     None of the above