Home

1000+ Linux OS Multiple Choice Question Answer [Solved]

Thursday 9th of March 2023

Sharing is caring

1. To delete an user along with its home directory, the command is
A. userdel -d username
B. userdel -D username
C. userdel -r username
D. userdel -R username
Answer : C
2. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
3. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
4. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
5. 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
6. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
7. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
8. sort file, will sort the contents of the file and the effect will be reflected in the file
A. True
B. False
C.
D.
Answer : B
9. Output of the command 'wc <filename>' is
A. Show only line
B. Show only word.
C. Show alphabet, line, word.
D. Show only file name.
Answer : C
10. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
11. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
12. 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
13. chmod 632 stuff means
A. Gives read & write& execute permission for owner write & execute for group read permission for other.
B. Gives read & write permission for owner write & execute for group Write permission for other.
C. Gives write permission for owner write & execute for group Write permission for other.
D. Gives read & write permission for owner read & execute for group Write permission for other.
Answer : B
14. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
15. To access a directory the minimum permission required is
A. r
B. w
C. x
D. All
Answer : C
16. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
17. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
18. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
19. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
20. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
21. 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
22. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
23. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
24. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
25. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
26. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
27. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
28. 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
29. 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
30. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
31. The X-Window system in Linux is a
A. program development environment
B. graphical user interface
C. tool to connect Linux with Windows
D. none of the above
Answer : B
32. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
33. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
34. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
35. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
36. What will be the output of the command 'tail sample'?
A. Last 10 lines of the file.
B. Last 15 lines of the file
C. Last 5 lines of the file
D. First 10 lines of file.
Answer : A
37. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
38. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
39. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
40. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
41. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
42. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
43. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
44. 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
45. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
46. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
47. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
48. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
49. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
50. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B

Sharing is caring