Home

Linux OS 1000+ MCQ with answer for JEE Main

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. The symbol of wildcard(s) is
A. w
B. `
C. ? *
D. None of the above.
Answer : C
3. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
4. 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
5. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
6. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
7. 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
8. When an user is deleted it home directory contents are also deleted
A. True
B. False
C.
D.
Answer : B
9. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
10. 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
11. 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
12. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
13. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
14. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
15. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
16. The core of Linux OS is also called
A. Kernel
B. Shell
C. root
D. bash
Answer : A
17. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
18. Which command is used to see the system date?
A. Time
B. Date
C. Month
D. None of these
Answer : B
19. Which command is used to see the content of a file
A. more
B. cp
C. cat
D. rmdir
Answer : C
20. -wxrwx-x is equivalent to
A. 567
B. 675
C. 571
D. 672
Answer : C
21. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
22. A swap partition is actually
A. Primary partition
B. Extended partition
C. Extended memory
D. Virtual memory
Answer : D
23. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
24. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
25. 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
26. 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
27. 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
28. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
29. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
30. To unmount a filesystem ________ command is ised
A. Umount
B. unmount
C. dismount
D. mount -u
Answer : A
31. 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
32. All device files are stored in
A. /device
B. /etc/dev
C. /bin
D. /dev
Answer : D
33. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
34. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
35. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
36. 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
37. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B
38. 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
39. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
40. Home directory of root is
A. /home
B. /bin
C. /root
D. /boot
Answer : C
41. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
42. To remove a directory which is not empty ____ is used
A. rmdir
B. rmdir -r
C. rm -r
D. rm
Answer : C
43. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
44. Shell is a
A. Program
B. Hardware
C. Account
D. None of the above
Answer : A
45. There can be only ----- job in foreground.
A. 1
B. 2
C. 3
D. 4
Answer : A
46. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
47. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
48. In practical, at the most _____ terminals can be opened at a time
A. 3
B. 6
C. 10
D. 12
Answer : B
49. 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
50. ls -o is used for
A. Except Group
B. Except Owner
C. Except Size in Byte
D. None of the above
Answer : A

Sharing is caring