Home

1000+ Linux OS Multiple Choice Question Answer [Solved]

Thursday 9th of March 2023

Sharing is caring

1. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
2. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
3. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
4. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
5. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
6. 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
7. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
8. 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
9. ls - t is used for
A. Sort by name
B. Sort by date
C. Sort by time stamp
D. Sort by alphabetic order
Answer : C
10. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
11. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
12. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
13. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
14. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
15. 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
16. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
17. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
18. 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
19. 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
20. 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
21. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
22. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
23. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
24. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
25. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
26. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
27. 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
28. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
29. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
30. 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
31. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
32. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
33. During Linux booting the init program is called by
A. ROM
B. Bootstrap
C. Sysinit
D. Kernel
Answer : D
34. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
35. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
36. An user can login without password
A. True
B. False
C.
D.
Answer : A
37. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
38. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
39. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
40. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
41. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
42. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
43. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
44. 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
45. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
46. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
47. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
48. 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
49. 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
50. 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

Sharing is caring