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. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
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.
service dhcpd configtest
rpcbind service
3. 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
4. A PXE server eases the automation process but isn't required for...
By default - Squid runs on port 3128.
kickstart installations to work
support for TCP Wrappers
via the command line
5. Before you work with quotas - what do you need to do to the file system?
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.
The smbstatus command shows you currently mounted Samba resources.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
6. What is the virsh command used for?
You must open TCP ports 20 and 21 for the FTP server to function properly.
kickstart installations to work
The virsh command is used to manage virtual guests.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
7. What command is used to create an RPM package?
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.
rpcbind service
rpmbuild
entering rescue mode and repairing the problem.
8. What command is used to show all services being controlled by the xinetd daemon?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Physical volumes - volume groups - and logical volumes.
chkconfig xinetd --list
useradd -c "Jr Admin" George
9. What is a virtual host?
The smbpasswd command is used to create Samba users.
A virtual host is a way of hosting multiple sites using a single IP address.
The service command is used to start - stop - and manage system services.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
10. What does the testparm command do?
The yum and rpm commands are used for package management.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
serve both files and printers to users
11. What is the rndc utility used for?
service sshd statuts
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.
SSH is used for secure remote management of Linux systems.
The rndc utility provides a method for managing the DNS server remotely and securely.
12. What command-line program can you use to check your mail?
This command reboots virtual guest Client04.
The TFTP server uses UDP port 69.
Typing the mail or mutt command allows you to read mail from the command line.
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 command do you use to report information on quota usage?
useradd -c "Jr Admin" George
lvdisplay
repquota
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.
14. What is the name of the section used to run scripts after a kickstart installation?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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 defining a %post section - you can run scripts after a kickstart installation is complete.
Apache uses port 80 for HTTP and port 443 for HTTPS.
15. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
ifconfig
16. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
17. What is a gateway used for on a network?
chkconfig xinetd --list
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.
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.
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.
18. How can virtual hosts be used?
run on any port you'd like (provided that port is available)
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.
getfacl
export one or all resources
19. What option at the GRUB boot menu can you use to append something to a kernel?
support for TCP Wrappers
createrepo
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
20. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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
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.
You add your action to the end of the /home/user01/.bashrc file.
21. What option would you use to query an installed package using the rpm command?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
entering rescue mode and repairing the problem.
22. What command displays your current interfaces and IP address?
You must open TCP ports 20 and 21 for the FTP server to function properly.
entering rescue mode and repairing the problem.
SELinux provides enhanced granular security for the Linux operating system.
ifconfig
23. What is the top command used for?
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Typing the mail or mutt command allows you to read mail from the command line.
Use the top command to view CPU and memory usage.
24. What command (and options) can be used to create a user named George with the description "Jr Admin"?
service sshd statuts
Typing the mail or mutt command allows you to read mail from the command line.
halts the system
useradd -c "Jr Admin" George
25. You must dictate the ____________ you want allocated to your virtual machine when you create it.
A virtual host is a way of hosting multiple sites using a single IP address.
Physical volumes - volume groups - and logical volumes.
amount of RAM
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
26. The exportfs command is used to...
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.
By default - the rndc utility listens on port 953.
export one or all resources
Network installations can be performed using the HTTP - FTP - and NFS protocols.
27. 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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
28. What benefit does a web proxy provide to your network?
By default - Squid runs on port 3128.
The NFS service uses TCP port 2049 by default.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The SMTP service runs on TCP port 110.
29. What is SSH used for?
chkconfig sshd off
SSH is used for secure remote management of Linux systems.
LUKS encryption
The /etc/fstab file.
30. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The virsh command is used to manage virtual guests.
31. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. What port must be opened on the firewall for DNS?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
You add your action to the end of the /home/user01/.bashrc file.
DNS uses port 53.
You must open TCP ports 20 and 21 for the FTP server to function properly.
33. What two commands are used for package management?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
The yum and rpm commands are used for package management.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
34. What are the side effects of shrinking a volume group or logical volume?
This command reboots virtual guest Client04.
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.
Using the chcon command - you can change the context of a file to work with Apache.
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.
35. What protocols are used with Dovecot?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
36. What command disables the SSH service from running when the system boots?
chkconfig sshd off
You must open TCP ports 20 and 21 for the FTP server to function properly.
The dig - host - and ping commands can be used to test DNS server functionality.
choose which mode you'd like it to operate in
37. What port does the DHCP server listen on by default?
getsebool -a | grep http
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The DHCP server listens on port 67 by default.
DNS uses port 53.
38. What is the format of the /etc/shadow file?
The mount command lists all currently mounted file systems.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
useradd -c "Jr Admin" George
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
39. What command and options can you use to update the time?
Enforcing during installation
LUKS encryption
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
40. GRUB has three stages. Can you name them?
The rndc utility provides a method for managing the DNS server remotely and securely.
A user's home directory is created under the /home directory.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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
41. 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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
service dhcpd configtest
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
42. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
A user's home directory is created under the /home directory.
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 -t nfs option is used with the mount command to mount NFS resources.
43. What is the name of the package that allows you to install VNC?
By default - Squid runs on port 3128.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The print option is used with both the fdisk and parted commands to display the current partition tables.
44. 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.
Enforcing during installation
The htpasswd command can be used to password-protect a web page.
entering rescue mode and repairing the problem.
service named configtest
45. How can you list all services on the system to tell whether they will boot during startup?
DNS uses port 53.
The lftp command can be used on a client to test FTP server connections.
The rpm command can operate in install - query - or verify modes.
chkconfig—list
46. 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
47. What does the rdnc-confgen command do?
The smbpasswd command is used to create Samba users.
You add your action to the end of the /home/user01/.bashrc file.
choose which mode you'd like it to operate in
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
48. 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.
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.
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
49. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The SMTP service runs on TCP port 110.
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.
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.
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.
50. Can you name the two commands that can be used to view the free space on the system?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /var/log/audit/audit.log file contains all policy violations.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The du and df commands are used to view available space on the system.