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

Computer Science :: Unix & Linux Basics

  1. Which command is used to remove the read permission of the file 'note' from both the group and others?

  2. A.

     chmod go+r note

    B.

     chmod go+rw note

    C.

     chmod go-x note

    D.

     chmod go-r note

    E.

     None of the above


  3. Which of the following commands is used to display the directory attributes rather than its contents?

  4. A.

     ls -l -d

    B.

     ls -l

    C.

     ls -x

    D.

     ls -F

    E.

     None of the above


  5. Which of the following files will displayed by this command cat *ch*

  6. A.

     patch

    B.

     catch

    C.

     .ch

    D.

     All of the above

    E.

     None of the above


  7. The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:

  8. A.

     0

    B.

     755

    C.

     744

    D.

     555

    E.

     None of the above


  9. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

  10. A.

     tty ^c

    B.

     stty intr ^c

    C.

     stty echoe

    D.

     stty echo ^a

    E.

     None of the above


  11. Which of the following is not a communication command.

  12. A.

     write

    B.

     mesg

    C.

     mail

    D.

     grep

    E.

     None of the above


  13. Which of the following keys is used to move the cursor to the end of the paragraph.

  14. A.

     }

    B.

     {

    C.

     |

    D.

     $

    E.

     None of the above


  15. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?

  16. A.

     cat emp[!0-9]

    B.

     more [emp][!0-9]

    C.

     cat emp[x-z]

    D.

     cat emp[a-z]

    E.

     None of the above


  17. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

  18. A.

     tee

    B.

     tr

    C.

     sort

    D.

     grep

    E.

     None of the above


  19. Which command is used to remove a file?

  20. A.

     remove

    B.

     rm

    C.

     mv

    D.

     del

    E.

     None of the above