Home

Linux OS 1000+ MCQ with answer for CTET

Thursday 9th of March 2023

Sharing is caring

1. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
2. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
3. init 6 is
A. Shutdown
B. Restart
C. Text mode
D. Graphics mode
Answer : B
4. The command for changing the permission relating to files is
A. ls-l
B. head
C. tail
D. chmod
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. 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
8. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
9. /dev is used for
A. Executable file
B. Contains include file
C. Contain compiler file.
D. Device file & resource file.
Answer : D
10. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
11. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A
12. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
13. 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
14. 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
15. An user can login without password
A. True
B. False
C.
D.
Answer : A
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. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
18. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
19. 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
20. 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
21. To delete user the command is
A. rm <username>
B. delete <username>
C. userdel <username>
D. any one of the above
Answer : C
22. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
23. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
24. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
25. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
26. Linux is a
A. Multi Tasking OS
B. Multi User OS
C. Dedicated Server
D. All of the above
Answer : A
27. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
28. 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
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. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
31. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
32. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
33. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
34. To setup a Firewall, the command is
A. ntsysv
B. setup
C. /etc/firewall
D. /etc/install
Answer : B
35. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
36. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
37. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
38. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
39. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
40. 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
41. 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
42. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
43. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
44. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
45. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
46. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
47. 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
48. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
49. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
50. 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

Sharing is caring