Home

Linux OS 1000+ MCQ with answer for ESIC

Thursday 9th of March 2023

Sharing is caring

1. 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
2. Linux mount partition must be a primary partition
A. True
B. False
C.
D.
Answer : B
3. For a user _______ is an autoexec.bat equivalent file in Linux
A. .bashrc
B. .bash_rc
C. .bash_profile
D. .bashprofile
Answer : C
4. User passwords are stored in
A. /etc/password
B. /root/password
C. /etc/passwd
D. /root/passwd
Answer : C
5. 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
6. An user can login without password
A. True
B. False
C.
D.
Answer : A
7. All run levels are stored in
A. /etc/fstab
B. /etc/init
C. /etc/inittab
D. /etc/rc.d
Answer : C
8. _______ is used to rename files
A. ren
B. move
C. rename
D. mv
Answer : D
9. While installing Linux, users can be created
A. True
B. False
C.
D.
Answer : A
10. Password is applied using
A. psswd
B. pssword
C. uerpasswd
D. passwd username
Answer : D
11. Samba is actually a
A. Share
B. File server
C. File
D. None of the above
Answer : B
12. Which command is used for character translation?
A. td
B. vi
C. tr
D. tail
Answer : C
13. Samba password and user password are same
A. True
B. False
C.
D.
Answer : B
14. To change the ownership of a file use
A. chmod
B. chgrp
C. chown
D. change
Answer : C
15. The command to check a partition is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : A
16. 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
17. Linux kernel file name is
A. vmlinux
B. vmlinuz
C. lynx
D. linux
Answer : B
18. ________ gives information about an user
A. who
B. who am i
C. who -i
D. None of the above
Answer : B
19. Name of the kernel file in Linux is
A. lkrnl
B. vmlinux
C. linuxbin
D. none of the above
Answer : D
20. To create multiple directories in one shot ________ is used
A. mkdir
B. mkdir -a
C. mkdir -p
D. mkdir -h
Answer : C
21. Which command is used to compare files?
A. cmp
B. diff
C. head
D. All of these
Answer : A
22. Linux is a dedicated server
A. True
B. False
C.
D.
Answer : B
23. 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
24. The --------- command sorts lines of all the named files.
A. desc
B. cp
C. sort
D. ls -l
Answer : C
25. 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
26. _______ is used to change the file/folder permission
A. chown
B. chmod
C. mod
D. chgrp
Answer : B
27. To see the process status which command you will use?
A. chmod
B. ps
C. ls-l
D. head
Answer : B
28. The encrypted password is stored in which field of /etc/password file ?
A. first
B. second
C. third
D. last
Answer : B
29. 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
30. 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
31. To get information about the Ethernet card, ___________ command is used
A. ipconfig
B. ifconfig
C. eth0
D. man Ethernet
Answer : B
32. Default file system type of Linux is
A. etx
B. ext2
C. etx3
D. mimix
Answer : C
33. The type of shell mostly used for Linux is
A. bash
B. korn
C. bourne
D. C-shell
Answer : A
34. 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
35. 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
36. Protocols used by Linux are
A. TCP/IP &UUCP
B. UDP & UUCP
C. PPP & UDP
D. None of the above
Answer : A
37. Hidden file can be viewed using
A. ls -l
B. ls -a
C. ls -h
D. None of the above
Answer : B
38. wc -l will give the
A. Number of lines
B. Number of characters
C. Number of words
D. All of the above
Answer : A
39. who -h is used to
A. Print column headings
B. Hide detail.
C. Hide user name.
D. All of the above.
Answer : A
40. Read & Write permission means
A. 1
B. 6
C. 2
D. 0
Answer : B
41. Linux is a ---------------Operating System
A. Single User
B. Multi User
C. Time Sharing
D. None of the above
Answer : B
42. _______ will add contents to an existing file
A. cat > file
B. cat >> file
C. cat file | file1
D. cat file > file1
Answer : B
43. 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
44. To search a pattern in a file _________ can be used
A. grep
B. egrep
C. find
D. search
Answer : A
45. The mounted partition information is stored in
A. /etc/passwd
B. /etc/fstab
C. /etc/inittab
D. /sbin/lilo
Answer : B
46. 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
47. The command to view the partition information is
A. fsck
B. fstab
C. fdisk
D. diskdruid
Answer : C
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. To view all the installed RPM packages use
A. rpm -qa
B. rpm -iv
C. rpm -h
D. rpm -I
Answer : A
50. To start graphics mode use
A. init 3
B. init 5
C. init 0
D. init 6
Answer : B

Sharing is caring