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. A PXE server eases the automation process but isn't required for...
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.
kickstart installations to work
Apache uses port 80 for HTTP and port 443 for HTTPS.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
2. What command can you use to test the config files before starting the DNS service?
Apache uses port 80 for HTTP and port 443 for HTTPS.
service named configtest
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Physical volumes - volume groups - and logical volumes.
3. What commands can you use to add a client machine to an LDAP server?
chkconfig sshd off
enabled by default
You can use the authconfig-tui command or the authconfig command.
ifconfig
4. Samba servers can...
You must open TCP ports 20 and 21 for the FTP server to function properly.
serve both files and printers to users
You add your action to the end of the /home/user01/.bashrc file.
The /var/log/audit/audit.log file contains all policy violations.
5. What is the biggest benefit to using LVM over basic partitions?
The tcpdump command is used to monitor network connections on different interfaces.
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
Sendmail
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.
6. How can you display all virtual guests after they're connected to a hypervisor?
The user_list file can be used to limit which users have access to the FTP server.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
By default - Squid runs on port 3128.
Use the yum groupinstall command to install multiple packages in a single group at once.
7. What happens if you call the command from question 3 with the -c option after it has already been run?
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 service command is used to start - stop - and manage system services.
The smbstatus command shows you currently mounted Samba resources.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
8. 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 remove or erase options with yum to remove a package.
chcon
lvdisplay
9. What does it mean if you ping a host and you receive the response Destination Unreachable?
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.
used for kickstart and/or network installs
Version 2 is the latest and most secure version of SSH.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
10. What is the /var/lib/nfs/etab file used for?
The vsftpd package is used to install an FTP server.
SELinux Booleans provide restrictions to different aspects of a service.
you have access to the correct packages or repositories.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
11. What command displays your current interfaces and IP address?
The virsh command is used to manage virtual guests.
browseable option
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
ifconfig
12. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Sendmail
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The vsftpd package is used to install an FTP server.
13. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
getsebool -a | grep http
The vsftpd package is used to install an FTP server.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
14. Which version of SSH should you use?
The /etc/fstab file.
The smbstatus command shows you currently mounted Samba resources.
Version 2 is the latest and most secure version of SSH.
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
15. What is the last rule in the iptables file?
16. What command can you use to create your own repositories?
The -t nfs option is used with the mount command to mount NFS resources.
The tcpdump command is used to monitor network connections on different interfaces.
DNS uses port 53.
createrepo
17. To grow a file system
The dig - host - and ping commands can be used to test DNS server functionality.
defining a %pre section although it is rarely used
service named configtest
Use the resize2fs command to grow a file system.
18. The ____________ is available for each share.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
SSH is used for secure remote management of Linux systems.
browseable option
19. 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.
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.
Sendmail
The smbstatus command shows you currently mounted Samba resources.
20. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
have the same effect
21. How would you install a group of packages all at a single time?
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.
service dhcpd configtest
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Use the yum groupinstall command to install multiple packages in a single group at once.
22. What command and options can you use to update the time?
service sshd statuts
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
alternatives --config mta
you have access to the correct packages or repositories.
23. What command is used to create an RPM package?
The two main config files are master.cf and main.cf.
Version 2 is the latest and most secure version of SSH.
The du and df commands are used to view available space on the system.
rpmbuild
24. What command can you use to view mounted Samba shares?
Enforcing during installation
have the same effect
The smbstatus command shows you currently mounted Samba resources.
The dig - host - and ping commands can be used to test DNS server functionality.
25. What is SSH used for?
you have access to the correct packages or repositories.
The lftp command can be used on a client to test FTP server connections.
The ping command can be used to verify connectivity to another host.
SSH is used for secure remote management of Linux systems.
26. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
This command reboots virtual guest Client04.
Use the yum groupinstall command to install multiple packages in a single group at once.
getfacl
alternatives --config mta
27. What command can you use to view NFS statistics?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The nfsstat command can be used to view NFS statistics.
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.
Enforcing during installation
28. Can you name three utilities that can be used for network or DNS client troubleshooting?
The three utilities are: route - ping - and nslookup.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
DNS uses port 53.
rpmbuild
29. What command can you use to view the current ACL on a file?
getfacl
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.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
30. SSH does...
By default - Squid runs on port 3128.
You can use the authconfig-tui command or the authconfig command.
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.
support TCP Wrappers
31. How can you verify the status of the SSH service after the system has booted?
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
service sshd statuts
getsebool
32. 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.
rpcbind service
The anonymous_enable=YES option in the main config file allows anonymous uploads.
entering rescue mode and repairing the problem.
33. What is the /etc/hosts file used for?
34. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
You can use the authconfig-tui command or the authconfig command.
defining a %pre section although it is rarely used
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.
35. What are the two types of back-end authentication mechanisms discussed in this chapter?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
This chapter described tdbsm and smbpasswd back-end authentication.
Apache uses port 80 for HTTP and port 443 for HTTPS.
lvdisplay
36. The firewall service is...
The user_list file can be used to limit which users have access to the FTP server.
semanage boolean -l
enabled by default
A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
37. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
schedule one-time-only jobs
amount of RAM
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.
export one or all resources
38. Explain the difference between soft and hard limits in quotas.
39. It is possible to run scripts before a kickstart installation. This is done by...
useradd -c "Jr Admin" George
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
defining a %pre section although it is rarely used
40. What critical step must you take after updating the kernel to a newer version?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
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.
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.
41. What port must be opened on the firewall for DNS?
service named configtest
schedule one-time-only jobs
The htpasswd command can be used to password-protect a web page.
DNS uses port 53.
42. What is the top command used for?
service named configtest
Use the top command to view CPU and memory usage.
The SMTP service runs on TCP port 110.
Use the resize2fs command to grow a file system.
43. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The vsftpd package is used to install an FTP server.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
44. What are the side effects of shrinking a volume group or logical volume?
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 rpm command can operate in install - query - or verify modes.
used for kickstart and/or network installs
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
45. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
You add your action to the end of the /home/user01/.bashrc file.
Using the chcon command - you can change the context of a file to work with Apache.
halts the system
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.
46. Before you work with ACLs - what do you need to do to the file system?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
By default - the rndc utility listens on port 953.
Version 2 is the latest and most secure version of SSH.
47. How would you disable SELinux protection for NFS - allowing shares to be read/write?
chkconfig sshd off
service named configtest
setsebool -P nfs_export_all_rw=1
semanage boolean -l
48. Can you put your /boot partition on a RAID 5 array?
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
49. The at command is used to ____________. The cron service handles reoccurring system jobs.
Version 2 is the latest and most secure version of SSH.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
By default - the rndc utility listens on port 953.
schedule one-time-only jobs
50. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
chcon
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
browseable option