Unix Commands MCQ - Set 05 - ObjectiveBooks

Unix Commands MCQ - Set 05

Practice Test: Question Set - 05


1. Which of the following commands is used to copy directory structures in and out
    (A) cp
    (B) cpio
    (C) cp - p
    (D) copy

2. Which command is used to remove a file?
    (A) remove
    (B) rm
    (C) mv
    (D) del

3. Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?
    (A) chmod 761 note
    (B) chmod 671 note
    (C) chmod 167 note
    (D) chmod 4=rwx, g=rw note

4. Which command is used to assign only read permission to all three categories of the file 'note'?
    (A) chmod go+r note
    (B) chmod a-rw
    (C) chmod ugo=r note
    (D) chmod u+r,g+r,o-x note

5. Which command is used to display a file contents in octal form?
    (A) cd
    (B) od
    (C) of
    (D) oct

6. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
    (A) count p
    (B) wc
    (C) wcount
    (D) countw

7. Which command is used with vi editor to save file and remain in the editing mode?
    (A) :q
    (B) :w
    (C) q!
    (D) :x

8. Which of the following command addresses all users who are currently hooked on?
    (A) write
    (B) mail
    (C) wall
    (D) mesg

9. Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?
    (A) find -mtime +365 | rm
    (B) grep (/usr/*) - mtime + 365 | -ok rm
    (C) find -name - mtime + 365 / - ok rm
    (D) find /user/* \(-mtime + 365 - a - atime +365 \) - OK rm {} \;

10. Which command is used to link the files?
    (A) lk
    (B) ln
    (C) cp
    (D) tar

11. Which of the following commands is used to identify the type of file by context?
    (A) ls
    (B) cat
    (C) file
    (D) more

12. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
    (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

13. Which of the following command is used to go to home directory?
    (A) cd..
    (B) cd/
    (C) cd
    (D) cd HOME

14. The second set of the three permissions (r-) indicates that
    (A) Group has read permission only
    (B) Other has read permission only
    (C) Owner has read permission only
    (D) Group has write permission only

15. Which command is used to set the three permissions for all the three categories of users of a file?
    (A) chgrp
    (B) chown
    (C) chmod
    (D) chusr

Show and hide multiple DIV using JavaScript View All Answers

 Next Tests: