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 virsh command used for?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
setsebool -P nfs_export_all_rw=1
The virsh command is used to manage virtual guests.
Using the chcon command - you can change the context of a file to work with Apache.
2. What is the name of the package that allows you to install VNC?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
createrepo
3. What command can be used to view the queue for at service jobs?
atq
schedule one-time-only jobs
By defining a %post section - you can run scripts after a kickstart installation is complete.
support TCP Wrappers
4. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
mkfs.ext4
You must open TCP ports 20 and 21 for the FTP server to function properly.
schedule one-time-only jobs
5. What is the rndc utility used for?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The rndc utility provides a method for managing the DNS server remotely and securely.
repquota
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
6. By default - what is the path to a user's home directory?
7. What command can you use to query Boolean values?
via the command line
getsebool
entering rescue mode and repairing the problem.
getsebool -a | grep http
8. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
service sshd statuts
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
9. What port does NFS use by default?
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 NFS service uses TCP port 2049 by default.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Apache uses port 80 for HTTP and port 443 for HTTPS.
10. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The mount command lists all currently mounted file systems.
11. What command can you use to monitor and troubleshoot network connections?
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.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
The tcpdump command is used to monitor network connections on different interfaces.
12. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SELinux Booleans provide restrictions to different aspects of a service.
13. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Version 2 is the latest and most secure version of SSH.
ifconfig
via the command line
14. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
A user's home directory is created under the /home directory.
By default - Squid runs on port 3128.
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.
A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
15. What is SSH used for?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
chkconfig sshd off
SSH is used for secure remote management of Linux systems.
service named configtest
16. The package selection screen allows you to install any software you want during the installation process as long as...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
you have access to the correct packages or repositories.
alternatives --config mta
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.
17. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
createrepo
LUKS encryption
18. What command can you use to create a file system?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The rndc utility provides a method for managing the DNS server remotely and securely.
user's home directory in the /etc/skel directory
mkfs.ext4
19. What critical step must you take after updating the kernel to a newer version?
You must open TCP ports 20 and 21 for the FTP server to function properly.
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 -t nfs option is used with the mount command to mount NFS resources.
The lastlog and faillog commands are used to view user login-related events?
20. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
21. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The vsftpd package is used to install an FTP server.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
used for kickstart and/or network installs
A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
22. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The htpasswd command can be used to password-protect a web page.
Sendmail
service httpd configtest
23. What are the five required directories when building RPMS?
The tcpdump command is used to monitor network connections on different interfaces.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
getfacl
Typing the mail or mutt command allows you to read mail from the command line.
24. What command do you use to change the permissions on a file or directory - To change ownership?
service dhcpd configtest
Sendmail
setsebool -P nfs_export_all_rw=1
The chmod command is used to change the permissions of files and directories. The chown command is used to change the ownership of files and directories.
25. What port does the SMTP service run on?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The SMTP service runs on TCP port 110.
The virsh command is used to manage virtual guests.
A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
26. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
This chapter described tdbsm and smbpasswd back-end authentication.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
27. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
amount of RAM
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
28. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
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
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
29. What command is used to create a user for Samba?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The smbpasswd command is used to create Samba users.
The du and df commands are used to view available space on the system.
Typing the mail or mutt command allows you to read mail from the command line.
30. GRUB has three stages. Can you name them?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
mkfs.ext4
service httpd configtest
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
31. What does the partprobe command do?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
choose which mode you'd like it to operate in
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
32. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Use the resize2fs command to grow a file system.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
33. What are the three items that make up LVM?
service named configtest
entering rescue mode and repairing the problem.
Physical volumes - volume groups - and logical volumes.
load balancing and redundancy benefits
34. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
service dhcpd configtest
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
35. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
setsebool -P nfs_export_all_rw=1
Use the top command to view CPU and memory usage.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
36. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
load balancing and redundancy benefits
The lastlog and faillog commands are used to view user login-related events?
37. What is the top command used for?
service dhcpd configtest
The /var/log/audit/audit.log file contains all policy violations.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Use the top command to view CPU and memory usage.
38. What port must be opened on the firewall for DNS?
The NFS service uses TCP port 2049 by default.
Use the ps command to view processes and their CPU usage.
serve both files and printers to users
DNS uses port 53.
39. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
useradd -c "Jr Admin" George
40. Which file shows you all the client IP addresses?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The three utilities are: route - ping - and nslookup.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
41. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
chcon
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
42. How would you view all Boolean options for the HTTP service?
The rpm command can operate in install - query - or verify modes.
atq
getsebool -a | grep http
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
43. What command can you use to create a password-protected page?
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
Typing the mail or mutt command allows you to read mail from the command line.
The htpasswd command can be used to password-protect a web page.
Enforcing during installation
44. What does it mean if you ping a host and you receive the response Destination Unreachable?
The rndc utility provides a method for managing the DNS server remotely and securely.
The /var/log/audit/audit.log file contains all policy violations.
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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
45. What is a virtual host?
choose which mode you'd like it to operate in
The DHCP server listens on port 67 by default.
A virtual host is a way of hosting multiple sites using a single IP address.
The ping command can be used to verify connectivity to another host.
46. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
The ping command can be used to verify connectivity to another host.
The du and df commands are used to view available space on the system.
export one or all resources
47. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The DHCP server listens on port 67 by default.
You add your action to the end of the /home/user01/.bashrc file.
48. What command can you use to view NFS statistics?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The nfsstat command can be used to view NFS statistics.
LUKS encryption
49. What is a swap? Is it created as a partition or device file?
ifconfig
repquota
You can use the remove or erase options with yum to remove a package.
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.
50. It is possible to run scripts before a kickstart installation. This is done by...
chkconfig sshd off
user's home directory in the /etc/skel directory
service dhcpd configtest
defining a %pre section although it is rarely used