Home / CSE / Unix :: Section 3

CSE :: Unix

  1. Which of the following special shell variables is used to process number of the current shell?

  2. A.
    $!
    B.
    $$
    C.
    $0
    D.
    $*
    E.
    None of the above

  3. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?

  4. A.
    -l
    B.
    -d
    C.
    -r
    D.
    -b
    E.
    None of the above

  5. Which command is used with vi editor scroll half page backward?

  6. A.
    [Control-d]
    B.
    [Control - u]
    C.
    [Control-c]
    D.
    [Control -P]
    E.
    None of the above

  7. Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

  8. A.
    tch
    B.
    fch
    C.
    rch
    D.
    ech
    E.
    None of the above

  9. Which of the following keys is used to delete the character beneath the cursor?

  10. A.
    x
    B.
    X
    C.
    dd
    D.
    D
    E.
    None of the above

  11. Which command is used to assign only read permission to all three categories of the file 'note'?

  12. A.
    chmod go+r note
    B.
    chmod a-rw
    C.
    chmod ugo=r note
    D.
    chmod u+r,g+r,o-x note
    E.
    None of the above

  13. Which command will be used with vi editor to append text at end of line?

  14. A.
    A
    B.
    a
    C.
    i
    D.
    I
    E.
    None of the above

  15. The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has

  16. A.
    executable permission only
    B.
    write and executable permissions
    C.
    both read and executable permissions.
    D.
    both read and write permissions
    E.
    None of the above

  17. Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?

  18. A.
    who | tee user.lst
    B.
    who > user.lst
    C.
    who >> user.lst
    D.
    who < user.lste
    E.
    None of the above

  19. Which of the following shell's wildcards are used to match any number of characters including none?

  20. A.
    [ijk]
    B.
    [!ijk]
    C.
    ?
    D.
    *
    E.
    None of the above