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

Computer Science :: Unix & Linux Basics

  1. Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?

  2. A.

     find -mtime +365 | rm

    B.

     grep (/usr/*) - mtime + 365 | -ok rm

    C.

     find -name - mtime + 365 / - ok rm

    D.

     find /user/* (-mtime + 365 - a - atime +365 ) - OK rm {} ;

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following commands is used to summarize the disk usage?

  4. A.

     chkdsk

    B.

     fdisk

    C.

     du

    D.

     disk

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which command is used to sort the lines of data in a file in alphabetical order?

  6. A.

     sort

    B.

     sh

    C.

     st

    D.

     sort -r

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. If a file has read and write permissions for the owner, then the octal representation of the permissions will be

  8. A.

     1

    B.

     6

    C.

     5

    D.

     3

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

  10. A.

     copy programs/wb misc/wb

    B.

     cp programs/wb misc

    C.

     tar programs/wb misc/wb

    D.

     copy a:programs/wb b:misc/wb

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which is the earliest and most widely used shell that came with the UNIX system?

  12. A.

     C shell

    B.

     Korn shell

    C.

     Bourne shell

    D.

     Smith shell

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The seventh field of /etc/password is

  14. A.

     password

    B.

     login

    C.

     shell

    D.

     home

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which command is used to display the end of the file?

  16. A.

     head - r

    B.

     tail

    C.

     eof

    D.

     bof

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which command is used to create a directory?

  18. A.

     crdir

    B.

     md

    C.

     mkdir

    D.

     cr

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which command is used to display the device name of the terminal you are using?

  20. A.

     who

    B.

     ls

    C.

     tty

    D.

     stty

    E.

     None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum