SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
RHCSA
Start Test
Study First
Subjects
:
certifications
,
it-skills
,
rhcsa
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The print option is used with both the fdisk and parted commands to display the current partition tables.
getfacl
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
2. How would you disable SELinux protection for NFS - allowing shares to be read/write?
atq
The firewall rule is inserted into the fifth line of the iptables rules and opens up TCP port 80 (for the HTTP service) on the firewall to allow incoming connections.
user's home directory in the /etc/skel directory
setsebool -P nfs_export_all_rw=1
3. Can you put your /boot partition on a RAID 5 array?
This chapter described tdbsm and smbpasswd back-end authentication.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
mkfs.ext4
4. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
chkconfig—list
The print option is used with both the fdisk and parted commands to display the current partition tables.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
5. How can you check the currently mounted file systems?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
rpmbuild
The mount command lists all currently mounted file systems.
The /etc/fstab file.
6. To grow a file system
generates errors under Red Hat Enterprise Linux 6
Use the resize2fs command to grow a file system.
defining a %pre section although it is rarely used
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
7. The firewall service is...
enabled by default
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /var/log/audit/audit.log file contains all policy violations.
8. Before you work with quotas - what do you need to do to the file system?
You can use the remove or erase options with yum to remove a package.
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
9. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
By default - Squid runs on port 3128.
PAM is used as a modular way to leverage security. In this chapter - the main function we discussed was for managing password policies and complexity.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
10. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
When the system enters into runlevel 2 - the rsyslog service has a priority of 12 when starting. Anything with a lower number (or the same number and lower first letter) starts before the rsyslog service.
VNC is used to control a remote desktop session.
service dhcpd configtest
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
11. Where are Yum repository config files located?
Yum repository config files (.repo files) are located in the /etc/yum.repos.d directory. You can also make direct entries into the main /etc/yum.conf file.
atq
PAM is used as a modular way to leverage security. In this chapter - the main function we discussed was for managing password policies and complexity.
The /etc/fstab file.
12. A slave DNS server provides...
service named configtest
load balancing and redundancy benefits
Using the chcon command - you can change the context of a file to work with Apache.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
13. What is the name of the section used to run scripts after a kickstart installation?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By defining a %post section - you can run scripts after a kickstart installation is complete.
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
serve both files and printers to users
14. How can you display all virtual guests after they're connected to a hypervisor?
SSH is used for secure remote management of Linux systems.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
used for kickstart and/or network installs
alternatives --config mta
15. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
chkconfig sshd off
When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
16. Before you work with ACLs - what do you need to do to the file system?
The ping command can be used to verify connectivity to another host.
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
enabled by default
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
17. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. Do you need to write changes to the disk when using the parted command? What about fdisk?
The lastlog and faillog commands are used to view user login-related events?
When you exit the parted utility - all your changes are automatically written to disk. With the fdisk command - you need to manually write your changes to disk for them to take effect.
Use the setgid flag to create the appropriate permissions (chmod 2770).
SELinux Booleans provide restrictions to different aspects of a service.
19. What three commands can you use to help verify that the DNS server is functioning properly?
run on any port you'd like (provided that port is available)
The lastlog and faillog commands are used to view user login-related events?
The dig - host - and ping commands can be used to test DNS server functionality.
support for TCP Wrappers
20. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
getsebool -a | grep http
The tcpdump command is used to monitor network connections on different interfaces.
21. What two commands are special for dealing with user login events?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The lastlog and faillog commands are used to view user login-related events?
The rndc utility provides a method for managing the DNS server remotely and securely.
You can use the remove or erase options with yum to remove a package.
22. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
chkconfig xinetd --list
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
Enforcing during installation
23. Which remote management service is installed by default?Can you name the port that it uses?
The vsftpd package is used to install an FTP server.
The SSH service is almost always installed by default in Red Hat. It uses TCP port 22 - and this port is open on the default firewall rules.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
have the same effect
24. What command disables the SSH service from running when the system boots?
chkconfig sshd off
kickstart installations to work
enabled by default
rpcbind service
25. What are the side effects of shrinking a volume group or logical volume?
A swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
chcon
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
If you shrink a volume group or logical volume - there is a chance you could lose data depending on how much you shrink the volume.
26. What command can you use to view the current ACL on a file?
The dig - host - and ping commands can be used to test DNS server functionality.
getfacl
Use the top command to view CPU and memory usage.
semanage boolean -l
27. How can you change the security context of a directory to work with Apache?
setsebool -P nfs_export_all_rw=1
Using the chcon command - you can change the context of a file to work with Apache.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
support TCP Wrappers
28. What is the virsh command used for?
The virsh command is used to manage virtual guests.
chkconfig—list
Enforcing during installation
By default - the rndc utility listens on port 953.
29. What option is used with both the fdisk and parted commands to display the current partition tables?
Using the chcon command - you can change the context of a file to work with Apache.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
ifconfig
The print option is used with both the fdisk and parted commands to display the current partition tables.
30. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
ifconfig
31. What is NAT - How is it used?
createrepo
Use the resize2fs command to grow a file system.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Network address translation (NAT) maintains a table that allows the use of multiple internal IP addresses to a multiple public IP address (called address translation). It can also be used for one-to-one or one-to-many relationships as well.
32. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. What is the xinetd service used for?
user's home directory in the /etc/skel directory
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
amount of RAM
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
34. What command can you use to change the context of files?
chcon
Use the resize2fs command to grow a file system.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The three utilities are: route - ping - and nslookup.
35. It is possible to run scripts before a kickstart installation. This is done by...
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
defining a %pre section although it is rarely used
A swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
Use the resize2fs command to grow a file system.
36. What command and options can you use to update the time?
Enforcing during installation
repquota
By default - the rndc utility listens on port 953.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
37. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. What command can you use to test the config files before starting the DNS service?
The SMTP service runs on TCP port 110.
service named configtest
The firewall rule is inserted into the fifth line of the iptables rules and opens up TCP port 80 (for the HTTP service) on the firewall to allow incoming connections.
DNS uses port 53.
39. What is the top command used for?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
amount of RAM
Use the top command to view CPU and memory usage.
A virtual host is a way of hosting multiple sites using a single IP address.
40. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
A virtual host is a way of hosting multiple sites using a single IP address.
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
You should never use the -U option because it erases the prior kernel when updating. This leaves you with no fallback kernel should your system not boot properly.
The TFTP server uses UDP port 69.
41. How would you view all Boolean options for the HTTP service?
This chapter described tdbsm and smbpasswd back-end authentication.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
chkconfig sshd off
getsebool -a | grep http
42. What is the main config file for the DHCP service?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
You have the flexibility to resize and add new volumes on the fly. With basic partitions - any time that you want to make a change - you need to destroy the partition and create it again.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
43. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
You can use the remove or erase options with yum to remove a package.
The two main config files are master.cf and main.cf.
This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
44. What does it mean if you ping a host and you receive the response Destination Unreachable?
You should never use the -U option because it erases the prior kernel when updating. This leaves you with no fallback kernel should your system not boot properly.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
45. Does a DHCP server allow reserved IP addresses - If so - how?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
cat /proc/mdstat
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The print option is used with both the fdisk and parted commands to display the current partition tables.
46. What is the biggest benefit to using LVM over basic partitions?
A gateway is used as an entry and exit point for a subnet on a network. To contact hosts outside your subnet - you need to pass through a gateway.
You have the flexibility to resize and add new volumes on the fly. With basic partitions - any time that you want to make a change - you need to destroy the partition and create it again.
The -t nfs option is used with the mount command to mount NFS resources.
The ping command can be used to verify connectivity to another host.
47. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
48. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
createrepo
By default - the rndc utility listens on port 953.
49. What is the name of the package used to install an FTP?
lvdisplay
The vsftpd package is used to install an FTP server.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
PAM is used as a modular way to leverage security. In this chapter - the main function we discussed was for managing password policies and complexity.
50. GRUB has three stages. Can you name them?
Using the chcon command - you can change the context of a file to work with Apache.
A swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
By default - the rndc utility listens on port 953.