Home / CSE / Unix :: Section 2

CSE :: Unix

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

  2. 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


  3. 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?

  4. 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


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

  6. A.
    chkdsk
    B.
    fdisk
    C.
    du
    D.
    disk
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  8. A.
    sort
    B.
    sh
    C.
    st
    D.
    sort -r
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  10. A.
    1
    B.
    6
    C.
    5
    D.
    3
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  12. 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


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

  14. A.
    C shell
    B.
    Korn shell
    C.
    Bourne shell
    D.
    Smith shell
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The seventh field of /etc/password is

  16. A.
    password
    B.
    login
    C.
    shell
    D.
    home
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  18. A.
    head - r
    B.
    tail
    C.
    eof
    D.
    bof
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which command is used to create a directory?

  20. A.
    crdir
    B.
    md
    C.
    mkdir
    D.
    cr
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum