MCQs > IT & Programming > Red Hat Linux MCQs > Basic Red Hat Linux MCQs

Basic Red Hat Linux MCQ

1. Which command adds a new user?


Answer

Correct Answer: useradd

Note: This Question is unanswered, help us to find answer for this one

2. What does the du command do?


Answer

Correct Answer: It shows the disk file size

Note: This Question is unanswered, help us to find answer for this one

3. Which of the following vi commands will exit forcefully from the vi editor without saving changes to the file?


Answer

Correct Answer: q!

Note: This Question is unanswered, help us to find answer for this one

4. How can the version of the Linux kernel be checked?


Answer

Correct Answer: uname -r

Note: This Question is unanswered, help us to find answer for this one

5. Which command is used to add a new group?


Answer

Correct Answer: groupadd

Note: This Question is unanswered, help us to find answer for this one

6. What does the history command do?


Answer

Correct Answer: It displays the complete list of commands which have been executed in the current session

Note: This Question is unanswered, help us to find answer for this one

7. Which is the correct syntax to display the calendar of September 2005?


Answer

Correct Answer: cal 9 2005

Note: This Question is unanswered, help us to find answer for this one

8. What does the head command do?


Answer

Correct Answer: It shows the first 10 lines of a file

Note: This Question is unanswered, help us to find answer for this one

9. Which of the following commands lets you search for text in a file without opening the file first?


Answer

Correct Answer: grep

Note: This Question is unanswered, help us to find answer for this one

10. What does permission 777 denote?


Answer

Correct Answer: -rwxrwxrwx

Note: This Question is unanswered, help us to find answer for this one

11. What is the purpose of the makewhatis command?


Answer

Correct Answer: Updating the whatis database

Note: This Question is unanswered, help us to find answer for this one

12. Linux operating system is:


Answer

Correct Answer: Multi User

Note: This Question is unanswered, help us to find answer for this one

13. What is the purpose of the touch command?


Answer

Correct Answer: It creates a new empty file

Note: This Question is unanswered, help us to find answer for this one

14. The user's current path is /root/Desktop/abc. If he runs
$ cd ../../../ what will be the user's current working directory?


Answer

Correct Answer: /

Note: This Question is unanswered, help us to find answer for this one

15. How can you locate the file named passwd?


Answer

Correct Answer: find / -name passwd

Note: This Question is unanswered, help us to find answer for this one

16. Which of the following vi commands will delete the current line?


Answer

Correct Answer: dd

Note: This Question is unanswered, help us to find answer for this one

17. What is the correct format to open the file /etc/test into the vi editor?


Answer

Correct Answer: vi /etc/test

Note: This Question is unanswered, help us to find answer for this one

18. Which of the following is an incorrect command?


Answer

Correct Answer: $ lpq

Note: This Question is unanswered, help us to find answer for this one

19. Who developed Linux?


Answer

Correct Answer: Linus Torvalds

Note: This Question is unanswered, help us to find answer for this one

20. Which command changes permissions of files or directories?


Answer

Correct Answer: chmod

Note: This Question is unanswered, help us to find answer for this one

21. What output should the ls command show after executing the following command?

$ touch {report,graph}_{jan,feb,mar}


Answer

Correct Answer: report_jan   report_feb   report_mar   graph_jan   graph_feb   graph_mar

Note: This Question is unanswered, help us to find answer for this one

22. What does permission 644 denote?


Answer

Correct Answer: -rw-r--r--

Note: This Question is unanswered, help us to find answer for this one

23. What is the name of the file where groups are added?


Answer

Correct Answer: /etc/group

Note: This Question is unanswered, help us to find answer for this one

24. Which of the following is not a valid shell?


Answer

Correct Answer: wsch

Note: This Question is unanswered, help us to find answer for this one

25. What is the meaning of GPL?


Answer

Correct Answer: General Public License

Note: This Question is unanswered, help us to find answer for this one

26. Which of the following are valid grep syntax?


Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

27. What is the output of the following command?

$ man cal >  cal.man



Answer

Correct Answer: The man page of the cal command will be saved to a file named cal.man

Note: This Question is unanswered, help us to find answer for this one

28. What kind of software is the Linux operating system?

Answer

Correct Answer: Open Source

Note: This Question is unanswered, help us to find answer for this one

29. How many terminals are provided by default in the Linux operating system?


Answer

Correct Answer: 6 virtual consoles and one virtual graphical interface

Note: This Question is unanswered, help us to find answer for this one

30. Why is the wc command used?


Answer

Correct Answer: It counts lines and characters from the file

Note: This Question is unanswered, help us to find answer for this one

31. Which of the following is the correct path of the passwd file?


Answer

Correct Answer: /etc/passwd

Note: This Question is unanswered, help us to find answer for this one

32. Which of the following vi commands is used to enter in to insert mode?


Answer

Correct Answer: i

Note: This Question is unanswered, help us to find answer for this one

33. How can you obtain a short description of the ls command?


Answer

Correct Answer: whatis ls

Note: This Question is unanswered, help us to find answer for this one

34. Which of the following is the parent process in Linux, which further has no parent?


Answer

Correct Answer: init

Note: This Question is unanswered, help us to find answer for this one

35. Which of the following is the intermediate between the hardware and the shell in the Linux operating system?


Answer

Correct Answer: Kernel

Note: This Question is unanswered, help us to find answer for this one

36. What does the pwd command do?


Answer

Correct Answer: It shows the current path where the user is

Note: This Question is unanswered, help us to find answer for this one

37. What does the following command do?

# what is cal



Answer

Correct Answer: It returns a one line description about the cal command

Note: This Question is unanswered, help us to find answer for this one

38. Which of the following commands will show you a page-wise listing?


Answer

Correct Answer: ls /bin | more

Note: This Question is unanswered, help us to find answer for this one

39. Which of the following vi commands will save the file and exit forcefully from the vi editor?


Answer

Correct Answer: :wq!

Note: This Question is unanswered, help us to find answer for this one

40. Which of the following is the path that contains documentation about installed packages?


Answer

Correct Answer: /usr/share/doc

Note: This Question is unanswered, help us to find answer for this one

41. Which of the following vi commands will discard the changes to the file and exit the vi editor?


Answer

Correct Answer: q!

Note: This Question is unanswered, help us to find answer for this one

42. What does the aspell command do?


Answer

Correct Answer: It checks the spellings of the file

Note: This Question is unanswered, help us to find answer for this one

43. How will you display the fifth man page for the inittab command?


Answer

Correct Answer: man 5 inittab

Note: This Question is unanswered, help us to find answer for this one

44. Allen wants to see a long listing of files, including the hidden files of the current directory. Which option will he choose with the ls command?


Answer

Correct Answer: ls -al

Note: This Question is unanswered, help us to find answer for this one

45. Which is the correct syntax to give permission 755 to the dir /etc/test ?


Answer

Correct Answer: chmod 755 /etc/test

Note: This Question is unanswered, help us to find answer for this one

46. Which of the following commands will create a softlink?


Answer

Correct Answer: $ ln -s /etc/test test

Note: This Question is unanswered, help us to find answer for this one

47. Which command is used to modify the user?


Answer

Correct Answer: usermod

Note: This Question is unanswered, help us to find answer for this one

48. Which of the following commands can be used to display a long listing of files, with a human-readable file size (like 6.8M instead of 6819467)?


Answer

Correct Answer: ls -lh

Note: This Question is unanswered, help us to find answer for this one

49. Which entry does not belong to ifcfg-eth0 ?


Answer

Correct Answer: HOSTNAME=stationx.example.com

Note: This Question is unanswered, help us to find answer for this one

50. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?


Answer

Correct Answer: tune2fs -O ^has_journal /dev/hda7

Note: This Question is unanswered, help us to find answer for this one

51. Which statement correctly creates a Volume Group, named vg0, when there are two partitions /dev/hda6 and /dev/hda7 of 150 MB each, totalling 300MB?


Answer

Correct Answer: vgcreate vg0 /dev/hda6 /dev/hda7

Note: This Question is unanswered, help us to find answer for this one

52. What is the path of rc.sysinit?


Answer

Correct Answer: /etc/rc.d/rc.sysinit

Note: This Question is unanswered, help us to find answer for this one

53. What types of files does /proc filesystem consist of?


Answer

Correct Answer: Pseudo Files

Note: This Question is unanswered, help us to find answer for this one

54. Which is the correct command to start the daemon of the printserver?


Answer

Correct Answer: service cups start

Note: This Question is unanswered, help us to find answer for this one

55. Which of the following files contains the IP address of the gateway?


Answer

Correct Answer: /etc/sysconfig/network

Note: This Question is unanswered, help us to find answer for this one

56. During Linux installation, in which mode can RAID be created?


Answer

Correct Answer: Both graphical and CUI mode

Note: This Question is unanswered, help us to find answer for this one

57. Which of the following commands will format the /test partition?


Answer

Correct Answer:              mke2fs   /test                    

Note: This Question is unanswered, help us to find answer for this one

58. Which of the following denotes Raid level 0?


Answer

Correct Answer: Striping

Note: This Question is unanswered, help us to find answer for this one

59. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?


Answer

Correct Answer: # swapon -a

Note: This Question is unanswered, help us to find answer for this one

60. How can you tell which RPM the /etc/inittab file belongs to?


Answer

Correct Answer: rpm -qf /etc/inittab

Note: This Question is unanswered, help us to find answer for this one

61. What is the correct format for kickstart installation through NFS, when the NFS IP is 192.168.0.254, and the file path on the server is /kickstart/ks.cfg ?


Answer

Correct Answer: linux ks=nfs:192.168.0.254:/kickstart/ks.cfg

Note: This Question is unanswered, help us to find answer for this one

62. The command which configures devices is:


Answer

Correct Answer: kudzu

Note: This Question is unanswered, help us to find answer for this one

63. A new partition /dev/hda6 has been created. How will it be formatted with ext3 file system (one block=1024 bytes, inode size=one inode every 2 blocks)?


Answer

Correct Answer: mke2fs  -b 1024 -i 2048 -j /dev/hda6

Note: This Question is unanswered, help us to find answer for this one

64. What does the entry id:3:initdefault: define in the /etc/inittab file?


Answer

Correct Answer: The system will boot by default in 3rd run level

Note: This Question is unanswered, help us to find answer for this one

65. What should be the command to view the details of raid device /dev/md0 ?


Answer

Correct Answer: # mdadm --detail /dev/md0

Note: This Question is unanswered, help us to find answer for this one

66. Which command is used to set a quota for user Debbie. The path is /test, the size of quota is 5MB and soft limit is 4MB. The user is not allowed to use more than 5MB.


Answer

Correct Answer: setquota Debbie 4096 5120 0 0 /test

Note: This Question is unanswered, help us to find answer for this one

67. There are 3 disks of 1 GB each, with mean total 3 GB. If a raid level 5 is implemented, what will be the size of the raid device?


Answer

Correct Answer: 2 GB

Note: This Question is unanswered, help us to find answer for this one

68. How is an LVM of 200MB named lv0 created within the volume group vg0?


Answer

Correct Answer: lvcreate -L 200MB lv0 vg0

Note: This Question is unanswered, help us to find answer for this one

69. In which of the following locations are boot messages stored?


Answer

Correct Answer: /var/log/dmesg

Note: This Question is unanswered, help us to find answer for this one

70. Can the size of LVM be decreased?


Answer

Correct Answer: Yes

Note: This Question is unanswered, help us to find answer for this one

71. What is the full form of MBR?


Answer

Correct Answer: Master boot record

Note: This Question is unanswered, help us to find answer for this one

72. What should be done to extend a 200MB LVM named lv0 by 50MB. A volume group named vg0 of 100MB is available free, lv0 is mounted on /test ?


Answer

Correct Answer: lvextend -L 50MB lv0

Note: This Question is unanswered, help us to find answer for this one

73. Which entry is not required in /etc/sysconfig/network ?


Answer

Correct Answer: NAMESERVER=192.168.0.x

Note: This Question is unanswered, help us to find answer for this one

74. What will be the behavior of the following command:

# echo "1" > /proc/sys/net/ipv4/ip_forward



Answer

Correct Answer: Enables ip_forwarding temporarily

Note: This Question is unanswered, help us to find answer for this one

75. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?


Answer

Correct Answer: tune2fs -j /dev/hda7

Note: This Question is unanswered, help us to find answer for this one

76. Can / partition on lvm device be installed during installation?


Answer

Correct Answer: Yes, it can be installed

Note: This Question is unanswered, help us to find answer for this one

77. What problems will be faced during reboot, when the permissions of /tmp are 655, and the default permissions are 1777?


Answer

Correct Answer: Xserver will not start

Note: This Question is unanswered, help us to find answer for this one

78. While troubleshooting Xserver, which of the following steps is not required?


Answer

Correct Answer: check /usr permissions 

Note: This Question is unanswered, help us to find answer for this one

79. Through which of the following commands can a corrupted initrd be recreated?


Answer

Correct Answer: mkinitrd f v /boot/initrd$(uname r).img $(uname r)

Note: This Question is unanswered, help us to find answer for this one

80. How can kernel-2.6.9-5 rpm be installed?


Answer

Correct Answer: # rpm -ivh kernel-2.6.9-5.rpm

Note: This Question is unanswered, help us to find answer for this one

81. How many disks are required in Raid level 5?  

Answer

Correct Answer: At least 3

Note: This Question is unanswered, help us to find answer for this one

82. Which entry is specified in /etc/resolv.conf ?


Answer

Correct Answer: Nameserver IP address

Note: This Question is unanswered, help us to find answer for this one

83. When the system is started, it shows Redhat Enterprise Linux. When the enter key is pressed, it shows the grub prompt. The present working directory is either / or /boot. How can you find the /boot partition at the grub prompt?


Answer

Correct Answer: GRUB> find /boot/grub.conf

Note: This Question is unanswered, help us to find answer for this one

84. What is proc file system?


Answer

Correct Answer: Virtual file system

Note: This Question is unanswered, help us to find answer for this one

85. Sticky bit and suid are to be set on /home/test. Which command should be used to give rwx permissions to each user, group and others?


Answer

Correct Answer: chmod 3777 /home/test

Note: This Question is unanswered, help us to find answer for this one

86. How should a cron job that prints "hello" every morning at 4:02am, be set up?

Answer

Correct Answer: # crontab -e and insert 02 04 * * * echo "hello"

Note: This Question is unanswered, help us to find answer for this one

87. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?


Answer

Correct Answer: The system will show only grub prompt during boot

Note: This Question is unanswered, help us to find answer for this one

88. If /root partition is installed on /dev/hda2, what defines hda2 ?


Answer

Correct Answer: 2nd hard disk 1st partition

Note: This Question is unanswered, help us to find answer for this one

89. Which of the following repquota command option is used to Report all quotas, even if there is no usage?


Answer

Correct Answer: -a

Note: This Question is unanswered, help us to find answer for this one

90. In which mode can LVM be created during installation?


Answer

Correct Answer: GUI only

Note: This Question is unanswered, help us to find answer for this one

91. Which of the following commands enables ip forwarding permanently?


Answer

Correct Answer: Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file

Note: This Question is unanswered, help us to find answer for this one

92. Which of the following will occur when the "rpm -ql nagios" command is used?

Answer

Correct Answer: List files in package nagios

Note: This Question is unanswered, help us to find answer for this one

93. Which command generates a DSA ssh key?

Answer

Correct Answer: ssh-keygen -t dsa

Note: This Question is unanswered, help us to find answer for this one

94. Which of the following describes the /proc command?

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

95. Which state is runlevel 6?

Answer

Correct Answer: Reboot state - shuts down the system and reboots

Note: This Question is unanswered, help us to find answer for this one

96. Which command would you use to check the RedHat OS version?

Answer

Correct Answer: cat /etc/redhat-release

Note: This Question is unanswered, help us to find answer for this one

97. In which version of RHEL was the pNFS introduced?

Answer

Correct Answer: RHEL 6.4

Note: This Question is unanswered, help us to find answer for this one

98. Which of the following is used to power down the system?

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

99. If you set your /etc/inittab file to have the default init entry of 'init:3:default:', which of the following is your system default runlevel?

Answer

Correct Answer: Full multiuser mode with login to command-line interface; allows remote file sharing with other systems on your network and is referred to as the text mode state

Note: This Question is unanswered, help us to find answer for this one

100. When you first add a user to the system, you must provide the user with a bare-bones version of their login, shell, and logout initialization files. Where are the default initialization files kept?

Answer

Correct Answer: /etc/skel

Note: This Question is unanswered, help us to find answer for this one

101. Which of the following filesystems uses journaling?

Answer

Correct Answer: ext3

Note: This Question is unanswered, help us to find answer for this one

102. A normal user sends a print job to the default printer but later finds the print queue is big and decides to cancel the job. How would the user perform this task?

Answer

Correct Answer: The user has to list the job using Ipq and remove it using the command Iprm with the job number as the argument.

Note: This Question is unanswered, help us to find answer for this one

103. Which event will occur with the following command? "shutdown -r now"

Answer

Correct Answer: Requests that the system be rebooted after it has been brought down in a safe way

Note: This Question is unanswered, help us to find answer for this one

104. Which of the following is the default port for squid?

Answer

Correct Answer: 3128

Note: This Question is unanswered, help us to find answer for this one

105. Which command is used to open a remote ssh shell with the account test_account on the host test_host?

Answer

Correct Answer: ssh test_account@test_host

Note: This Question is unanswered, help us to find answer for this one

106. During boot init program checks, from which file is the default runlevel?

Answer

Correct Answer: /etc/inittab

Note: This Question is unanswered, help us to find answer for this one

107. If you use multiple crontab files, which directory contains them?

Answer

Correct Answer: /etc/cron.d

Note: This Question is unanswered, help us to find answer for this one

108. Which command should you issue if you are in runlevel 5 and want to change to runlevel 3?

Answer

Correct Answer: init 3

Note: This Question is unanswered, help us to find answer for this one

109. Which of the following is used for partitioning disks?

Answer

Correct Answer: Both are correct

Note: This Question is unanswered, help us to find answer for this one

110. Which command is used to see the aging of a password?

Answer

Correct Answer: chage

Note: This Question is unanswered, help us to find answer for this one

111. How would you find out the date and time of an rpm installation?

Answer

Correct Answer: # rpm -qi

Note: This Question is unanswered, help us to find answer for this one

112. When creating a new user account, unless otherwise specified, which directory's files are automatically copied to the home directory?

Answer

Correct Answer: /etc/skel

Note: This Question is unanswered, help us to find answer for this one

113. After extending LVM logical volume that has file system, which of the following should be done to extend file system?

Answer

Correct Answer: resize2fs /dev/lvm_volume

Note: This Question is unanswered, help us to find answer for this one

114. Where do you look to check the list of shells installed on the system?

Answer

Correct Answer: /etc/shells

Note: This Question is unanswered, help us to find answer for this one

115. Which of the following is the permission of /etc/shadow?

Answer

Correct Answer: 400

Note: This Question is unanswered, help us to find answer for this one

116. Which of the following can be used to display IP routing table?

Answer

Correct Answer: All variants are correct

Note: This Question is unanswered, help us to find answer for this one

117. Where do you configure an OpenSSH server?

Answer

Correct Answer: /etc/ssh/sshd_config

Note: This Question is unanswered, help us to find answer for this one

118. Which of the following will allow you to disable SSH root login?

Answer

Correct Answer: Set "PermitRootLogin no" in /etc/ssh/sshd_config

Note: This Question is unanswered, help us to find answer for this one

119. Which program can add a password for a group and is used to administer /etc/group and /etc/gshadow?

Answer

Correct Answer: gpasswd

Note: This Question is unanswered, help us to find answer for this one

120. Which command is used to check your current runlevel?

Answer

Correct Answer: Both are correct

Note: This Question is unanswered, help us to find answer for this one

121. In a file delimited by commas, which command will print the 3rd column of data?

Answer

Correct Answer: awk -F, '{print $3}'

Note: This Question is unanswered, help us to find answer for this one

122. How are scripts within a cron directory run?

Answer

Correct Answer: In alphabetical order

Note: This Question is unanswered, help us to find answer for this one

123. Which of the following is the default I/O scheduler elevator?

Answer

Correct Answer: cfq

Note: This Question is unanswered, help us to find answer for this one

124. If you want to set a samba share as read/write, which command should you add in /etc/samba/smb.conf?

Answer

Correct Answer: writeable = yes

Note: This Question is unanswered, help us to find answer for this one

125. Which command can be entered on reboot at the boot prompt if your /etc/inittab file becomes corrupted and it is necessary to start up your system while bypassing the inittab file, so you could edit the file to fix it?

Answer

Correct Answer: linux single

Note: This Question is unanswered, help us to find answer for this one

126. Which of the following is used to list users that are logged on?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

127. Which type of files are located at "/etc/rc.d/rc.d/" directories(where is the number of the runlevel)?

Answer

Correct Answer: Symbolic links

Note: This Question is unanswered, help us to find answer for this one

128. Which of the following describes the command "route"?

Answer

Correct Answer: Modifies entries in the routing tables of routed

Note: This Question is unanswered, help us to find answer for this one

129. Which of the following will allow you to copy the system log to the current directory?

Answer

Correct Answer: cp /var/log/messages .

Note: This Question is unanswered, help us to find answer for this one

130. Which is the standard directory for temporary mount points or mounts for removable media(e.g. CD-ROM)?

Answer

Correct Answer: /mnt

Note: This Question is unanswered, help us to find answer for this one

131. In which file are user-encrypted passwords stored?

Answer

Correct Answer: /etc/shadow

Note: This Question is unanswered, help us to find answer for this one

132. Which command can you use to list the most CPU-intensive processes on your system?

Answer

Correct Answer: top

Note: This Question is unanswered, help us to find answer for this one

133. Which of the following is the default highest runlevel?

Answer

Correct Answer: 6

Note: This Question is unanswered, help us to find answer for this one

134. Where do you make changes to select the level of firewall protection?

Answer

Correct Answer: /etc/sysconfig/iptables

Note: This Question is unanswered, help us to find answer for this one

135. Which switches (options) will route accept?

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

136. Which would be used to display all logical volumes?

Answer

Correct Answer: lvdisplay

Note: This Question is unanswered, help us to find answer for this one

137. How do you change the password for the root account?

Answer

Correct Answer: The passwd command

Note: This Question is unanswered, help us to find answer for this one

138. Which of the following will occur when using the pwd command?

Answer

Correct Answer: Display the full path of the current working directory

Note: This Question is unanswered, help us to find answer for this one

139. Which of the following is the main configuration file that GRUB reads when it is loaded?

Answer

Correct Answer: /boot/grub/grub.conf

Note: This Question is unanswered, help us to find answer for this one

140. Which of the following do you use to edit your crontab file?

Answer

Correct Answer: crontab -e

Note: This Question is unanswered, help us to find answer for this one

141. Which of the following is the default FTP port number?

Answer

Correct Answer: 21

Note: This Question is unanswered, help us to find answer for this one

142. Which command do you use to count words or lines in a file?

Answer

Correct Answer: wc

Note: This Question is unanswered, help us to find answer for this one

143. Which directory maintains the system logs for tasks performed on your system?

Answer

Correct Answer: /var/log

Note: This Question is unanswered, help us to find answer for this one

144. Which of the following is the default RHEL window manager?

Answer

Correct Answer: Gnome

Note: This Question is unanswered, help us to find answer for this one

145. Which command will disable the ssh service at next boot?

Answer

Correct Answer: chkconfig sshd off

Note: This Question is unanswered, help us to find answer for this one

146. Which of the following is the most correct way to edit the current users crontab?

Answer

Correct Answer: crontab -e

Note: This Question is unanswered, help us to find answer for this one

147. If you are logged in to a regular user account, and it is necessary for you to log in as root and become a superuser, which should you use?

Answer

Correct Answer: su

Note: This Question is unanswered, help us to find answer for this one

148. To have 'grep' match only whole lines, you use:

Answer

Correct Answer: grep -x

Note: This Question is unanswered, help us to find answer for this one

149. If you use 'shutdown now', it will:

Answer

Correct Answer: transfer your system into maintenance mode

Note: This Question is unanswered, help us to find answer for this one

150. What file will show you with what options kernel was started?

Answer

Correct Answer: /proc/cmdline

Note: This Question is unanswered, help us to find answer for this one

151. How to kill user session?

Answer

Correct Answer: pkill -9 -u username

Note: This Question is unanswered, help us to find answer for this one

152. Which kernel parameter is used to reset root password in RHEL7

Answer

Correct Answer: rd.break

Note: This Question is unanswered, help us to find answer for this one

153. The line '0 2 * * 1-5 tar cf /home/backp /home/projects' in a crontab will:

Answer

Correct Answer: back up the projects directory at 2:00 A.M. every weekday

Note: This Question is unanswered, help us to find answer for this one

154. Which service lets you edit qcow2 images in Linux ?

Answer

Correct Answer: guestfish

Note: This Question is unanswered, help us to find answer for this one

155. The /projects directory is being shared by server1 with the share name datashare through samba. To access the shared directory as bob you issue the following command: smbclient //server1/datashare -U 'bob%foouser' What happens when you execute the command?

Answer

Correct Answer: The share will be accessed with the credentials of bob without being prompted for a password.

Note: This Question is unanswered, help us to find answer for this one

156. Which statement is true about the files and directories created inside the /project directory that have 2777 permissions?

Answer

Correct Answer: All files and directories will have the same group as that of the /project directory.

Note: This Question is unanswered, help us to find answer for this one

157. How to find out what packages are currently installed?

Answer

Correct Answer: yum list installed

Note: This Question is unanswered, help us to find answer for this one

158. What file is used for 'HOSTNAME' configuration?

Answer

Correct Answer: /etc/sysconfig/network

Note: This Question is unanswered, help us to find answer for this one

159. When mounting a volume listed in "fstab",

Answer

Correct Answer: it suffices to give only the mount point

Note: This Question is unanswered, help us to find answer for this one

160. System-wide values used by user and group creation utilities such as useradd and usergroup are kept in the file:

Answer

Correct Answer: /etc/login.defs

Note: This Question is unanswered, help us to find answer for this one

161. You use the SUSPEND character to suspend an already running process. Which signal does it send to the process?

Answer

Correct Answer: SIGSTOP

Note: This Question is unanswered, help us to find answer for this one

162. What is the default maximum number of open files a user can have by default?

Answer

Correct Answer: 1024

Note: This Question is unanswered, help us to find answer for this one

163. What command will free the page cache?

Answer

Correct Answer: echo 1 > /proc/sys/vm/drop_caches

Note: This Question is unanswered, help us to find answer for this one

164. Which of the following options is true of the entry below? /dev/cdrom /cd iso9660 ro,user,noauto 0 0

Answer

Correct Answer: This is an "fstab" entry which lets any user mount the CD-ROM.

Note: This Question is unanswered, help us to find answer for this one

165. Which command is used to kill a process gracefully?

Answer

Correct Answer: kill -15 <PID>

Note: This Question is unanswered, help us to find answer for this one

166. Which of the following are valid iptable chains?

Answer

Correct Answer: Forward, Input, Output

Note: This Question is unanswered, help us to find answer for this one

167. For all filesystems listed in /etc/mtab, to display the total space allowed for a user or group, you use the command:

Answer

Correct Answer: quota

Note: This Question is unanswered, help us to find answer for this one

168. If umask is 0022, what is the by default permission of a file?

Answer

Correct Answer: 644

Note: This Question is unanswered, help us to find answer for this one

169. Identify the true statement about configure script.

Answer

Correct Answer: It creates the necessary Makefiles based on the user information.

Note: This Question is unanswered, help us to find answer for this one

170. What is the purpose of the file /etc/updatedb.conf?

Answer

Correct Answer: configuration file for mlocate package

Note: This Question is unanswered, help us to find answer for this one

171. The user smith issued the egrep "^[[: upper:]]" words.txt command. What does this command do?

Answer

Correct Answer: displays all lines in the words.txt file that begins with an uppercase letter

Note: This Question is unanswered, help us to find answer for this one

172. Which mode provides load balancing and fault tolerance in ethernet bonding ?

Answer

Correct Answer: Round Robin

Note: This Question is unanswered, help us to find answer for this one

173. You configure an OpenSSH server in the file:

Answer

Correct Answer: /etc/ssh/sshd_config

Note: This Question is unanswered, help us to find answer for this one

174. What is the tee command?

Answer

Correct Answer: split standard output to a file

Note: This Question is unanswered, help us to find answer for this one

175. If you set your /etc/inittab file to have the default init entry to be 'init:3:default:', then your system default runlevel is:

Answer

Correct Answer: full multiuser mode with login to command-line interface; allows remote file sharing with other systems on your network. Also referred to as the text mode state

Note: This Question is unanswered, help us to find answer for this one

176. Which Standard does pNFS Stands for..

Answer

Correct Answer: NFS 4.1

Note: This Question is unanswered, help us to find answer for this one

177. Larry, working as root, needs to change the ownership of the file "myfile" from "james" to "mary." He should:

Answer

Correct Answer: chown mary myfile

Note: This Question is unanswered, help us to find answer for this one

178. To power down the system, you use:

Answer

Correct Answer: all are correct

Note: This Question is unanswered, help us to find answer for this one

179. How would you find out the dependencies of RPM package?

Answer

Correct Answer: #rpm -qR

Note: This Question is unanswered, help us to find answer for this one

180. Using scp to copy a file "test_file" from your machine to the remote machine "test_machine" to the /tmp directory, using the account "test_user" on the remote machine, you do:

Answer

Correct Answer: scp test_file test_user@test_machine:/tmp

Note: This Question is unanswered, help us to find answer for this one

181. The following entry appears in the /etc/crontab as follows: 30 4 * * 1 /bin/sh /home/Tom/rmcore 2>&1 /dev/null

Answer

Correct Answer: "rmcore" will execute every Monday at 4:30 a.m.

Note: This Question is unanswered, help us to find answer for this one

182. You use samba to:

Answer

Correct Answer: both are correct

Note: This Question is unanswered, help us to find answer for this one

183. To verify what state (run level) you are currently running in, you use:

Answer

Correct Answer: runlevel

Note: This Question is unanswered, help us to find answer for this one

184. How to find out memory usage:

Answer

Correct Answer: All are correct

Note: This Question is unanswered, help us to find answer for this one

185. Using cat command, which option is used to print the line number?

Answer

Correct Answer: cat -n filename

Note: This Question is unanswered, help us to find answer for this one

186. What does the "tcpdump" command do?

Answer

Correct Answer: Captures traffic on a network

Note: This Question is unanswered, help us to find answer for this one

187. what does the following command do? "watch -n 1 du -hs /tmp/file"

Answer

Correct Answer: It runs the command du -hs /tmp/file every second and updates the output

Note: This Question is unanswered, help us to find answer for this one

188. How would you create a disk dump in RedHat Linux?

Answer

Correct Answer: dd if=/dev/sda of=/dev/sdb

Note: This Question is unanswered, help us to find answer for this one

189. Which statements are true about a source RPM?

Answer

Correct Answer: Source RPMs can be compiled and installed directly.

Note: This Question is unanswered, help us to find answer for this one

190. To find the version of redhat in use you can:

Answer

Correct Answer: cat /etc/redhat-release

Note: This Question is unanswered, help us to find answer for this one

191. How to show currently loaded kernel modules?

Answer

Correct Answer: lsmod

Note: This Question is unanswered, help us to find answer for this one

192. To configure networking via a console GUI you can use:

Answer

Correct Answer: system-config-network

Note: This Question is unanswered, help us to find answer for this one

193. Which is not a valid priority in syslogd.conf?

Answer

Correct Answer: news

Note: This Question is unanswered, help us to find answer for this one

194. Where do the manual (man) pages for all commands reside in the File System Hierarchy (FSH)?

Answer

Correct Answer: /usr/share/man

Note: This Question is unanswered, help us to find answer for this one