logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Unix Comments

  • Question
  • Which command will be used with vi editor to replace single character under cursor with any number of characters?


  • Options
  • A. s
  • B. S
  • C. a
  • D. i
  • E. None of the above

  • Correct Answer



  • Unix problems


    Search Results


    • 1. The seventh field of /etc/password is

    • Options
    • A. password
    • B. login
    • C. shell
    • D. home
    • E. None of the above
    • Discuss
    • 2. The command chmod 761 note is equivalent to

    • Options
    • A. chmod 167 note
    • B. chmod u=rwx, g=rw, o=x note
    • C. chmo a =761 note
    • D. chmod 4=7, g=6,0 =1 note
    • E. None of the above
    • Discuss
    • 3. Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

    • Options
    • A. copy programs/wb misc/wbx
    • B. cp programs/wb misc/wbx
    • C. tar programs/wb misc/wbx
    • D. copy a:programs/wb b:misc/wbx
    • E. None of the above
    • Discuss
    • 4. Which commands is used to assign executable permission to all of the files named "letter"?

    • Options
    • A. chmod ugo+r letter
    • B. chmod ugo+rw letter
    • C. chmod u+x letter
    • D. chmod ugo+x letter
    • E. None of the above
    • Discuss
    • 5. Which command is used to display the device name of the terminal you are using?

    • Options
    • A. who
    • B. ls
    • C. tty
    • D. stty
    • E. None of the above
    • Discuss
    • 6. Which option will be used with disk free command to include the total amount of disk space in the file system?

    • Options
    • A. -t
    • B. -tt
    • C. -4
    • D. -i
    • E. None of the above
    • Discuss
    • 7. Which of the following commands is used to assign executable permission to the owner of the file named "note"?

    • Options
    • A. chmod g+x note
    • B. chmod u+w note
    • C. chmod u+x note
    • D. chmod ugo+x note
    • E. None of the above
    • Discuss
    • 8. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?

    • Options
    • 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
    • Discuss
    • 9. Which command is used to locate all the .profile files in the system?

    • Options
    • A. ls profile
    • B. find /-name profile -print
    • C. cd /.profile
    • D. l -u .profile
    • E. None of the above
    • Discuss
    • 10. Which command is used to set the three permissions for all the three categories of users of a file?

    • Options
    • A. chgrp
    • B. chown
    • C. chmod
    • D. chusr
    • E. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment