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

Computer Science :: Unix & Linux Basics

  1. Which of the following commands is used to get directory one level up?

  2. A.

     cd

    B.

     cd ..

    C.

     cd/

    D.

     chdir

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

  4. A.

     count p

    B.

     wc

    C.

     wcount

    D.

     countw

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

  6. A.

     rm *

    B.

     rm -r *

    C.

     rm all

    D.

     rm *.*

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following commands is used to change the working directory?

  8. A.

     cd

    B.

     changedir

    C.

     chdir

    D.

     cdir

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of the following commands is used to view your file 24 lines at a time?

  10. A.

     pg

    B.

     cat

    C.

     lp

    D.

     /p

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which shell's wild-cards is used to match a single character?

  12. A.

     *

    B.

     ?

    C.

     [ijk]

    D.

     [!ijk]

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.

  14. A.

     .exrc

    B.

     .profile

    C.

     lastlogin

    D.

     .mbox

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?

  16. A.

     copy wb ../misc collect ../misc mon ../misc

    B.

     cp wb collect mon ../misc

    C.

     copy wb collect mon /misc

    D.

     tar wb collect mon /misc

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The command chmod 761 note is equivalent to

  18. A.

     chmod 167 note

    B.

     chmod u=rwx, g=rw, o=x note

    C.

     chmo a =761 note

    D.

     chmod 4=7, g=6,0 =1 note

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The commonly used UNIX commands like date, ls, cat, etc. are stored in

  20. A.

     /dev directory

    B.

     /bin and /usr/bin directories

    C.

     /tmp directory

    D.

     /unix directory

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum