Home / CSE / Unix :: Section 3

CSE :: Unix

  1. The command used to remove the directory is;

  2. A.
    rmdir
    B.
    rd
    C.
    remove
    D.
    rdir
    E.
    None of the above

  3. Which symbol will be used with grep command to match the pattern pat at the end of a line?

  4. A.
    ^pat
    B.
    $pat
    C.
    pat$
    D.
    pat^
    E.
    None of the above

  5. Which command is used to display all the lines with the string 'sales' from the file empl.lst?

  6. A.
    cut sales empl.lst
    B.
    /sales > empl.lst
    C.
    grep sales empl.lst
    D.
    cat | /sales > empl.lst
    E.
    None of the above

  7. Which of the following commands is not the vi Input mode command?

  8. A.
    rch
    B.
    R
    C.
    S
    D.
    j
    E.
    None of the above

  9. Which of the following commands is used to remove files?

  10. A.
    erase
    B.
    delete
    C.
    rm
    D.
    dm
    E.
    . None of the above

  11. Which command is used with vi editor to save file and remain in the editing mode?

  12. A.
    :q
    B.
    :w
    C.
    q!
    D.
    :x
    E.
    None of the above

  13. You can append to a file instead of overwriting by using the

  14. A.
    > symbols
    B.
    >> symbols
    C.
    < symbols
    D.
    << symbols
    E.
    None of the above

  15. The [line number G] key allows you

  16. A.
    to move cursor left by one position
    B.
    to move cursor right by one position
    C.
    to move cursor down by one line
    D.
    to move cursor to the beginning of the line specified by the number
    E.
    None of the above

  17. Which of the following commands is used to have a two-way communication with any person who is currently logged in?

  18. A.
    mail
    B.
    mesg
    C.
    write
    D.
    grep
    E.
    None of the above

  19. Which command is used with vi editor to move the cursor to the left?

  20. A.
    i
    B.
    j
    C.
    k
    D.
    h
    E.
    None of the above