Home / CSE MCQs / Linux MCQs :: Basic Linux

CSE MCQs :: Linux MCQs

  1. Which command is used to record a user login session in a file
  2. A.
    macro
    B.
    read
    C.
    script
    D.
    none of the above

  3. Which command is used to display the operating system name
  4. A.
    os
    B.
    Unix
    C.
    kernel
    D.
    uname

  5. Which command is used to display the unix version
  6. A.
    uname -r
    B.
    uname -n
    C.
    uname -t
    D.
    kernel

  7. Which command is used to print a file
  8. A.
    print
    B.
    ptr
    C.
    lpr
    D.
    none of the above

  9. Using which command you find resource limits to the session?
  10. A.
    rlimit
    B.
    ulimit
    C.
    setrlimit
    D.
    getrlimit

  11. find / -name '*' will
  12. A.
    List all files and directories recursively starting from /
    B.
    List a file named * in /
    C.
    List all files in / directory
    D.
    List all files and directories in / directory

  13. Which command is used to display the octal value of the text
  14. A.
    octal
    B.
    text_oct
    C.
    oct
    D.
    od

  15. Which command is used to view compressed text file contents
  16. A.
    cat
    B.
    type
    C.
    zcat
    D.
    print

  17. Which command changes a file's group owner
  18. A.
    cgrp
    B.
    chgrp
    C.
    change
    D.
    group

  19. Which command is used to extract intermediate result in a pipeline
  20. A.
    tee
    B.
    extract
    C.
    exec
    D.
    none of the above