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. The exportfs command is used to...
The service command is used to start - stop - and manage system services.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
export one or all resources
Enforcing during installation
2. What is SSH used for?
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 NFS service uses TCP port 2049 by default.
The dig - host - and ping commands can be used to test DNS server functionality.
SSH is used for secure remote management of Linux systems.
3. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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
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.
A virtual host is a way of hosting multiple sites using a single IP address.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
4. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
service named configtest
The lftp command can be used on a client to test FTP server connections.
5. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
ifconfig
browseable option
The DHCP server listens on port 67 by default.
6. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The rndc utility provides a method for managing the DNS server remotely and securely.
7. How can you verify the status of the SSH service after the system has booted?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
chkconfig xinetd --list
service sshd statuts
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.
8. What is the /etc/hosts file used for?
9. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
chcon
The vsftpd package is used to install an FTP server.
The ping command can be used to verify connectivity to another host.
10. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The four types of DNS servers are master - slave - caching-only - and forwarding.
serve both files and printers to users
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.
11. A service needs to have _______________ to be able to use it.
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.
support for TCP Wrappers
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
used for kickstart and/or network installs
12. What are the three different types of RAID described in this chapter?
The /etc/fstab file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The lftp command can be used on a client to test FTP server connections.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
13. What two commands are used for package management?
The yum and rpm commands are used for package management.
getsebool -a | grep http
The /var/log/audit/audit.log file contains all policy violations.
Use the top command to view CPU and memory usage.
14. What option at the GRUB boot menu can you use to append something to a kernel?
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 entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
support TCP Wrappers
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
15. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
DNS uses port 53.
serve both files and printers to users
The anonymous_enable=YES option in the main config file allows anonymous uploads.
16. Which version of SSH should you use?
service dhcpd configtest
chkconfig sshd off
The user_list file can be used to limit which users have access to the FTP server.
Version 2 is the latest and most secure version of SSH.
17. How can you list all services on the system to tell whether they will boot during startup?
LUKS encryption
you have access to the correct packages or repositories.
chkconfig—list
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.
18. What is the xinetd service used for?
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 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.
getsebool -a | grep http
19. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
20. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The lastlog and faillog commands are used to view user login-related events?
Sendmail
You add your action to the end of the /home/user01/.bashrc file.
21. What command can you use to change the context of files?
The user_list file can be used to limit which users have access to the FTP server.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
chcon
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.
22. What is the last rule in the iptables file?
23. What command is used to create an RPM package?
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.
chkconfig xinetd --list
rpmbuild
The ping command can be used to verify connectivity to another host.
24. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The htpasswd command can be used to password-protect a web page.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
25. What are the five required directories when building RPMS?
This command reboots virtual guest Client04.
By defining a %post section - you can run scripts after a kickstart installation is complete.
chcon
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
26. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
support TCP Wrappers
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
service httpd configtest
27. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
The smbstatus command shows you currently mounted Samba resources.
export one or all resources
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
28. 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.
amount of RAM
The vsftpd package is used to install an FTP server.
chcon
29. 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...
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
have the same effect
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
30. How would you install a group of packages all at a single time?
The service command is used to start - stop - and manage system services.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
The three utilities are: route - ping - and nslookup.
31. The at command is used to ____________. The cron service handles reoccurring system jobs.
useradd -c "Jr Admin" George
The lftp command can be used on a client to test FTP server connections.
generates errors under Red Hat Enterprise Linux 6
schedule one-time-only jobs
32. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
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.
used for kickstart and/or network installs
Apache uses port 80 for HTTP and port 443 for HTTPS.
33. What option is used to allow anonymous uploads to the FTP server?
The virsh command is used to manage virtual guests.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
enabled by default
The anonymous_enable=YES option in the main config file allows anonymous uploads.
34. What two ports should be opened on the firewall for the FTP server to function properly?
amount of RAM
The three utilities are: route - ping - and nslookup.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Use the top command to view CPU and memory usage.
35. Place all files you want added to a _______________ during creation.
36. By default - what is the path to a user's home directory?
37. 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.
service named configtest
rpcbind service
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.
38. What command do you use to report information on quota usage?
getsebool
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.
repquota
Kickstart supports both basic and advanced partitioning (RAID/LVM).
39. What is the top command used for?
LUKS encryption
serve both files and printers to users
createrepo
Use the top command to view CPU and memory usage.
40. What critical step must you take after updating the kernel to a newer version?
atq
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.
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
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
41. What benefit does a web proxy provide to your network?
Use the route command with the add option to create a static route.
Physical volumes - volume groups - and logical volumes.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
This command reboots virtual guest Client04.
42. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
chkconfig xinetd --list
43. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
have the same effect
service named configtest
Apache uses port 80 for HTTP and port 443 for HTTPS.
44. What command displays your current interfaces and IP address?
The vsftpd package is used to install an FTP server.
generates errors under Red Hat Enterprise Linux 6
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
ifconfig
45. What command and option do you use to view the description of Boolean values?
chkconfig—list
semanage boolean -l
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.
DNS uses port 53.
46. What command would you use to create a group - to add the user George to the group?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
SELinux provides enhanced granular security for the Linux operating system.
VNC is used to control a remote desktop session.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
47. What port does the Apache web server run on - What about HTTPS?
chkconfig—list
Apache uses port 80 for HTTP and port 443 for HTTPS.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
48. What does the testparm command do?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
This command reboots virtual guest Client04.
cat /proc/mdstat
49. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The lftp command can be used on a client to test FTP server connections.
The /var/log/audit/audit.log file contains all policy violations.
chkconfig—list
50. What is the name of the package used to install an FTP?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The vsftpd package is used to install an FTP server.
The SMTP service runs on TCP port 110.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.