Home

Linux OS 1000+ MCQ with answer for SSC MTS

Thursday 9th of March 2023

Sharing is caring

1. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
2. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
3. 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
4. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
5. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
6. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
7. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
8. 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
9. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
10. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
11. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
12. 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
13. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
14. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
15. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
16. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
17. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
18. 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
19. 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
20. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
21. mkdir - p is used for
A. Making directory under parent directory.
B. Making directory non existing parent directory.
C. Specified the mode of directory.
D. None of the above
Answer : B
22. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
23. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
24. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
25. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
26. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
27. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
28. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
29. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
30. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
31. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
32. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
Answer : D
33. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
34. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
35. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
36. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
37. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
38. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
39. 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
40. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
41. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
42. 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
43. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
44. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
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. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
47. 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
48. 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
49. 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
50. An user can login without password
A. True
B. False
C.
D.
Answer : A

Sharing is caring