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

Computer Science :: Unix & Linux Basics

  1. Which set option is used with vi editor to display line numbers on screen?

  2. A.

     nm

    B.

     nu

    C.

     ic

    D.

     li

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which command is used to print a file?

  4. A.

     print

    B.

     prn

    C.

     pg

    D.

     lp

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which command will be used with vi editor to replace single character under cursor with any number of characters?

  6. A.

     s

    B.

     S

    C.

     a

    D.

     i

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following set options is used with vi editor to ignore case while searching for patterns?

  8. A.

     ic

    B.

     ai

    C.

     sm

    D.

     ts

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which command is used to list out all the hidden files along with the other files?

  10. A.

     ls -l

    B.

     ls -x

    C.

     ls -F

    D.

     ls -a

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?

  12. A.

     chmod 761 note

    B.

     chmod 671 note

    C.

     chmod 167 note

    D.

     chmod 4=rwx, g=rw note

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The chmod ugo+rw note command can be represented in octal notation as

  14. A.

     chmod 555 note

    B.

     chmod 666 note

    C.

     chmod 444 note

    D.

     chmod 333 note

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?

  16. A.

     ls -F -x

    B.

     ls -l

    C.

     ls ~ x

    D.

     Ip

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which command is used with vi editor to search a pattern in the forward direction?

  18. A.

     /

    B.

     ?

    C.

     //

    D.

     ??

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following commands is used to assign executable permission to the owner of the file named "note"?

  20. A.

     chmod g+x note

    B.

     chmod u+w note

    C.

     chmod u+x note

    D.

     chmod ugo+x note

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum