logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Unix Comments

  • Question
  • 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

  • Correct Answer
  • chmod 


  • Unix problems


    Search Results


    • 1. 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
    • 2. 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
    • 3. 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
    • 4. 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
    • 5. 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
    • Discuss
    • 6. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

    • Options
    • A. rm *
    • B. rm -r *
    • C. rm all
    • D. rm *.*
    • E. None of the above
    • Discuss
    • 7. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

    • Options
    • A. count p
    • B. wc
    • C. wcount
    • D. countw
    • E. None of the above
    • Discuss
    • 8. Which command is used to create a directory?

    • Options
    • A. crdir
    • B. md
    • C. mkdir
    • D. cr
    • E. None of the above
    • Discuss
    • 9. Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?

    • Options
    • A. tch
    • B. fch
    • C. rch
    • D. ech
    • E. None of the above
    • Discuss
    • 10. Which of the following commands is used to copy directory structures in and out

    • Options
    • A. cp
    • B. cpio
    • C. cp - p
    • D. copy
    • E. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment