Home / CSE MCQs / Linux MCQs :: Basic Linux

CSE MCQs :: Linux MCQs

  1. To open a file file1 with cursor at line number 4
  2. A.
    vi +num file1
    B.
    vi +set num file1
    C.
    vi + set num" file1
    D.
    vi +/se nu file1

  3. sed is a command typically used for
  4. A.
    Perform complex calculations
    B.
    Perform FIFO based non-blocking I/O
    C.
    Modify/print selective contents of a file
    D.
    None of the mentioned

  5. What communication command provides communication to another user logged on by writing to the bottom of their terminal?
  6. A.
    talk
    B.
    write
    C.
    chat
    D.
    transmit

  7. Which screen manipulation command sets the screen back to normal?
  8. A.
    tput cup
    B.
    tput smso
    C.
    tput rmso
    D.
    tput blink

  9. Which command will you use to see the available routes?
  10. A.
    show route
    B.
    route status
    C.
    netstat -r
    D.
    none of the mentioned

  11. Which of the following time stamps need not exist for a file on traditional unix file system
  12. A.
    Access Time
    B.
    Modification Time
    C.
    Creation Time
    D.
    Change Time

  13. Which command is used to set limits on file size
  14. A.
    fsize
    B.
    flimit
    C.
    ulimit
    D.
    usize

  15. Which represents the user home directory
  16. A.
    /
    B.
    .
    C.
    ..
    D.
    ~

  17. If a file is removed in Unix using 'rm' then
  18. A.
    The file can be recovered by a normal user
    B.
    The file cannot be recovered by a user
    C.
    The file can be fully recovered provided the sytem is not rebooted
    D.
    The file will be moved to /lost+found directory and can be recovered only by administrator's intervention

  19. Executing the 'cd ..' command when at the root level causes
  20. A.
    Error message indicating the user can't access beyond the root level
    B.
    Behavior is unix-flavor dependent
    C.
    Results in changing to the 'home' directory
    D.
    Nothing happens