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 is the superblock used for?
getsebool -a | grep http
VNC is used to control a remote desktop session.
service named configtest
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
2. What command can you use to create a password-protected page?
The rpm command can operate in install - query - or verify modes.
The htpasswd command can be used to password-protect a web page.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Use the ps command to view processes and their CPU usage.
3. What protocols are used with Dovecot?
Apache uses port 80 for HTTP and port 443 for HTTPS.
This command reboots virtual guest Client04.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
4. What option at the GRUB boot menu can you use to append something to a kernel?
Version 2 is the latest and most secure version of SSH.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
you have access to the correct packages or repositories.
LUKS encryption
5. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
6. What command can you use to check the config file of the DHCP server?
have the same effect
You add your action to the end of the /home/user01/.bashrc file.
Enforcing during installation
service dhcpd configtest
7. What critical step must you take after updating the kernel to a newer version?
You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
enabled by default
8. What command can you use to change the context of files?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
load balancing and redundancy benefits
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
chcon
9. What port must be opened on the firewall for DNS?
The print option is used with both the fdisk and parted commands to display the current partition tables.
DNS uses port 53.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
10. How can you check the currently mounted file systems?
support for TCP Wrappers
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The mount command lists all currently mounted file systems.
11. What command can you use to query Boolean values?
ifconfig
getsebool
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
run on any port you'd like (provided that port is available)
12. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
amount of RAM
lvdisplay
13. What three commands can you use to help verify that the DNS server is functioning properly?
The rpm command can operate in install - query - or verify modes.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
14. What are SELinux Booleans?
chkconfig xinetd --list
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.
enabled by default
SELinux Booleans provide restrictions to different aspects of a service.
15. What port does the SMTP service run on?
The rpm command can operate in install - query - or verify modes.
The SMTP service runs on TCP port 110.
semanage boolean -l
The nfsstat command can be used to view NFS statistics.
16. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
alternatives --config mta
mkfs.ext4
17. How can you display all virtual guests after they're connected to a hypervisor?
The nfsstat command can be used to view NFS statistics.
If you are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
By default - Squid runs on port 3128.
18. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
repquota
SELinux Booleans provide restrictions to different aspects of a service.
The yum and rpm commands are used for package management.
19. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
The SMTP service runs on TCP port 110.
A user's home directory is created under the /home directory.
Use the ps command to view processes and their CPU usage.
have the same effect
20. What benefit does a web proxy provide to your network?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The vsftpd package is used to install an FTP server.
support TCP Wrappers
21. What is a gateway used for on a network?
This command reboots virtual guest Client04.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
Use the resize2fs command to grow a file system.
22. 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.
The vsftpd package is used to install an FTP server.
halts the system
chkconfig xinetd --list
23. Do you need to write changes to the disk when using the parted command? What about fdisk?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
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.
service sshd statuts
24. What file needs to be edited so that the system will mount a file system at boot time?
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/fstab file.
The three utilities are: route - ping - and nslookup.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
25. What are the three modes in which the rpm command can operate?
The yum and rpm commands are used for package management.
load balancing and redundancy benefits
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The rpm command can operate in install - query - or verify modes.
26. What are the side effects of shrinking a volume group or logical volume?
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.
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.
have the same effect
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
27. Can you name three utilities that can be used for network or DNS client troubleshooting?
kickstart installations to work
The three utilities are: route - ping - and nslookup.
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
You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
28. What is PAM used for?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
rpmbuild
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.
29. What command would you use to create a group - to add the user George to the group?
The htpasswd command can be used to password-protect a web page.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Kickstart supports both basic and advanced partitioning (RAID/LVM).
atq
30. What three protocols can you use to perform network installations?
The DHCP server listens on port 67 by default.
The yum and rpm commands are used for package management.
repquota
Network installations can be performed using the HTTP - FTP - and NFS protocols.
31. What command and option do you use to view the description of Boolean values?
have the same effect
export one or all resources
defining a %pre section although it is rarely used
semanage boolean -l
32. What option is used with both the fdisk and parted commands to display the current partition tables?
The print option is used with both the fdisk and parted commands to display the current partition tables.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The nfsstat command can be used to view NFS statistics.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
33. What command and options can you use to update the time?
The smbstatus command shows you currently mounted Samba resources.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
serve both files and printers to users
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
34. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The install.log.syslog file contains messages that are generated during the installation. If you run into trouble during the installation - this is a good place to start.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The lastlog and faillog commands are used to view user login-related events?
35. What command can you use to view NFS statistics?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
By default - Squid runs on port 3128.
The nfsstat command can be used to view NFS statistics.
36. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
37. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
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.
38. What command and option can you use to enable a service to start on boot?
chkconfig xinetd --list
entering rescue mode and repairing the problem.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
service sshd statuts
39. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
chkconfig—list
getsebool -a | grep http
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
40. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. What command (and options) can be used to create a user named George with the description "Jr Admin"?
support TCP Wrappers
The vsftpd package is used to install an FTP server.
useradd -c "Jr Admin" George
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
42. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The DHCP server listens on port 67 by default.
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.
Sendmail
SELinux Booleans provide restrictions to different aspects of a service.
43. What command can you use to query information from the kernel about RAID arrays?
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.
The ping command can be used to verify connectivity to another host.
cat /proc/mdstat
The lastlog and faillog commands are used to view user login-related events?
44. What is the default port that Squid runs on?
The ping command can be used to verify connectivity to another host.
By default - Squid runs on port 3128.
chkconfig sshd off
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
45. What port does the rndc utility listen on by default?
rpmbuild
By default - the rndc utility listens on port 953.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
serve both files and printers to users
46. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The /etc/fstab file.
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.
47. The ____________ is available for each share.
The smbpasswd command is used to create Samba users.
Using the chcon command - you can change the context of a file to work with Apache.
The nfsstat command can be used to view NFS statistics.
browseable option
48. What is the top command used for?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The ping command can be used to verify connectivity to another host.
Use the top command to view CPU and memory usage.
SELinux Booleans provide restrictions to different aspects of a service.
49. 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
50. How would you install a group of packages all at a single time?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The dig - host - and ping commands can be used to test DNS server functionality.
Use the yum groupinstall command to install multiple packages in a single group at once.