Home

1000+ Linux OS MCQ for DRDO [Solved]

Thursday 9th of March 2023

Sharing is caring

1. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
2. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
3. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
4. User can be assigned to a group while creating the user. The command for this is
A. adduser -g
B. useradd -a
C. aduser -a
D. useradd -g
Answer : A
5. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
6. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
7. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
8. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
9. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
10. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
11. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
12. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
13. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
14. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
15. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
16. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
17. To give all permission to a file to all users the command is
all of the above

A. chmod a+777 file
B. chmod a+rwx file
C. chmod ugo+7 file
D. none of the above
Answer : B
18. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
19. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
20. What is the meaning of chmod 444 stuf?
A. Gives all user write permission.
B. Gives all user execute permission.
C. Gives all user read permission.
D. All of the above.
Answer : C
21. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
22. What is the relation between grep & egrep
A. egrap is a mother of grep.
B. Egrap is totally difference
C. Egrap is a another version of grep.
D. None of these.
Answer : C
23. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
24. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
25. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
26. Output of 'sort > shoppinglist' is
A. Sorting file but not save in file.
B. Without sorting but save in file.
C. Sorting and save in a file.
D. All of the above.
Answer : C
27. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
28. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
29. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
30. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
31. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
32. In comm the 2nd column displays
A. Lines unique in the first file
B. Lines unique in the second file
C. Lines common in the both file
D.
Answer : B
33. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
34. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
35. To check if a service is running, the command is
A. Ntsysv
B. setup
C. /etc/rc.d/init.d/service
D. /etc/serice
Answer : A
36. cat > abc, if the requested file does not exist, error will be given by
A. Kernel
B. Shell
C. root
D. None of the above
Answer : A
37. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
38. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
39. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
40. ls j?e - output will be
A. Filenames with 3 charcter
B. Filenames with 4 charcter
C. Filenames with 5 charcter
D. Filenames with 10 charcter
Answer : A
41. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
42. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
43. If there is any problem with the command, the error is given by
A. Kernel
B. Shell
C. root
D. None of the above
Answer : B
44. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
45. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
46. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
47. The main function of grep is
A. look for numeric
B. look for string match a regular expression..
C. look for string without regular expression.
D. None of them.
Answer : B
48. A user is logged in on a terminal; root tries to delete the user. Will the user be deleted?
A. Yes
B. No
C.
D.
Answer : B
49. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
50. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A

Sharing is caring