Unix Basics Questions and Answers - Set 01 - ObjectiveBooks

Unix Basics Questions and Answers - Set 01

Practice Test: Question Set - 01


1. The command used to remove the directory is;
    (A) rmdir
    (B) rd
    (C) remove
    (D) rdir

2. Which of the following keys is used to replace a single character with new text?
    (A) S
    (B) s
    (C) r
    (D) C

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?
    (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

4. Which of the following commands is used to have a two-way communication with any person who is currently logged in?
    (A) mail
    (B) mesg
    (C) write
    (D) grep

5. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
    (A) tty ^c
    (B) stty intr \^c
    (C) stty echoe
    (D) stty echo \^a

6. Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?
    (A) ls -F -x
    (B) ls - l
    (C) ls ~ x
    (D) lp

7. Which operator will be used with chmod command to assign absolute permission?
    (A) +
    (B) -
    (C) =
    (D) %

8. Which of the following commands is used to update access and modification times of a file?
    (A) grep
    (B) wc
    (C) touch
    (D) cat

9. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
    (A) rm *
    (B) rm -r *
    (C) rm all
    (D) rm *.*

10. Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others?
    (A) chmod u-x, go+r note
    (B) chmod go+r, u+x note
    (C) chmod g-x, uo+r note
    (D) chmod go+x, u-x note

11. Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it
    (A) -r
    (B) -x
    (C) -i
    (D) -1

12. The commonly used UNIX commands like date, ls, cat, etc. are stored in
    (A) /dev directory
    (B) /bin and /usr/bin directories
    (C) /tmp directory
    (D) /unix directory

13. The File that contains a set of instructions which are performed when a user logs in, is
    (A) .exrc
    (B) .profile
    (C) .autoexec
    (D) autoexec.bat

14. Which of the following options will be used to display number of blocks used by a file?
    (A) -c
    (B) -i
    (C) -d
    (D) -s

15. The seventh field of /etc/password is
    (A) password
    (B) login
    (C) shell
    (D) home

Show and hide multiple DIV using JavaScript View All Answers

 Next Tests: