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

Computer Science :: Unix & Linux Basics

  1. Which of the following files contains information related to password aging?

  2. A.

     Shadow

    B.

     password

    C.

     profile

    D.

     All the three

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which command will be used with vi editor to replace text from cursor to right?

  4. A.

     r

    B.

     R

    C.

     s

    D.

     S

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following commands is used to rename a file?

  6. A.

     rename

    B.

     remove

    C.

     mv

    D.

     ren

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is not a filter?

  8. A.

     cat

    B.

     grep

    C.

     wc

    D.

     sort

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

  10. A.

     copy programs/wb misc/wbx

    B.

     cp programs/wb misc/wbx

    C.

     tar programs/wb misc/wbx

    D.

     copy a:programs/wb b:misc/wbx

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which command is used to list all the files with extension .lst?

  12. A.

     ls -l *.lst

    B.

     ls lst*

    C.

     ls *.*

    D.

     ls *[lst]

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which option is used with the chmod command recursively to all files and sub-directories in a directory?

  14. A.

     -1

    B.

     #NAME?

    C.

     #NAME?

    D.

     -R

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which command is used to change directory to the name beginning with a 'p'?

  16. A.

     cd p

    B.

     cd p?

    C.

     cd p*

    D.

     cd [p]

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following is invalid filename?

  18. A.

     shutry

    B.

     TRY

    C.

     trial

    D.

     my .file

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which commands is used to assign executable permission to all of the files named "letter"?

  20. A.

     chmod ugo+r letter

    B.

     chmod ugo+rw letter

    C.

     chmod u+x letter

    D.

     chmod ugo+x letter

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum