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 command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
semanage boolean -l
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
2. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
setsebool -P nfs_export_all_rw=1
rpmbuild
The /var/log/audit/audit.log file contains all policy violations.
3. What is the format of the /etc/shadow file?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The SMTP service runs on TCP port 110.
4. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
choose which mode you'd like it to operate in
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.
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.
5. What is the /var/lib/nfs/etab file used for?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
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.
6. What command-line program can you use to check your mail?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Typing the mail or mutt command allows you to read mail from the command line.
Use the yum groupinstall command to install multiple packages in a single group at once.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
7. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
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.
Typing the mail or mutt command allows you to read mail from the command line.
A virtual host is a way of hosting multiple sites using a single IP address.
8. What command do you use to report information on quota usage?
lvdisplay
repquota
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
9. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
getsebool -a | grep http
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Sendmail
10. To create a RAID or LVM partition using kickstart
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The four types of DNS servers are master - slave - caching-only - and forwarding.
11. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
The mount command lists all currently mounted file systems.
semanage boolean -l
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
12. The ____________ is available for each share.
The smbstatus command shows you currently mounted Samba resources.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
browseable option
13. What command would you use to create a group - to add the user George to the group?
getfacl
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the yum groupinstall command to install multiple packages in a single group at once.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
14. What is the rndc utility used for?
schedule one-time-only jobs
The /var/log/audit/audit.log file contains all policy violations.
The rndc utility provides a method for managing the DNS server remotely and securely.
This chapter described tdbsm and smbpasswd back-end authentication.
15. 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.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
16. A service needs to have _______________ to be able to use it.
Use the top command to view CPU and memory usage.
support for TCP Wrappers
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The rndc utility provides a method for managing the DNS server remotely and securely.
17. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
chkconfig xinetd --list
Using the chcon command - you can change the context of a file to work with Apache.
The smbpasswd command is used to create Samba users.
18. The exportfs command is used to...
The -t nfs option is used with the mount command to mount NFS resources.
A virtual host is a way of hosting multiple sites using a single IP address.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
export one or all resources
19. What is VNC?
The /var/log/audit/audit.log file contains all policy violations.
VNC is used to control a remote desktop session.
export one or all resources
generates errors under Red Hat Enterprise Linux 6
20. What are the five required directories when building RPMS?
getfacl
setsebool -P nfs_export_all_rw=1
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /var/log/audit/audit.log file contains all policy violations.
21. How can you list all services on the system to tell whether they will boot during startup?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
chkconfig—list
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.
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.
22. What does virsh reboot Client04 do?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
This command reboots virtual guest Client04.
You can use the authconfig-tui command or the authconfig command.
The NFS service uses TCP port 2049 by default.
23. What three commands can you use to help verify that the DNS server is functioning properly?
The dig - host - and ping commands can be used to test DNS server functionality.
atq
schedule one-time-only jobs
The TFTP server uses UDP port 69.
24. What command and options can you use to update the time?
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
choose which mode you'd like it to operate in
You can use the remove or erase options with yum to remove a package.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
25. What command can be used to easily list all the options in the FTP main config file?
DNS uses port 53.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
26. What command can you use to validate the syntax of the Apache config file?
amount of RAM
service httpd configtest
Version 2 is the latest and most secure version of SSH.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
27. 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.
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.
getfacl
Enforcing during installation
The /etc/fstab file.
28. What is the main config file for the DHCP service?
The lastlog and faillog commands are used to view user login-related events?
This chapter described tdbsm and smbpasswd back-end authentication.
The TFTP server uses UDP port 69.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
29. What command and option do you use to view the description of Boolean values?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
generates errors under Red Hat Enterprise Linux 6
semanage boolean -l
via the command line
30. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
setsebool -P nfs_export_all_rw=1
31. Can you name the two commands that can be used to view the free space on 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.
The du and df commands are used to view available space on the system.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
browseable option
32. What file needs to be edited so that the system will mount a file system at boot time?
The yum and rpm commands are used for package management.
The NFS service uses TCP port 2049 by default.
The /etc/fstab file.
Using the chcon command - you can change the context of a file to work with Apache.
33. What port must be opened on the firewall for DNS?
Use the route command with the add option to create a static route.
DNS uses port 53.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
run on any port you'd like (provided that port is available)
34. What does the testparm command do?
DNS uses port 53.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
chkconfig sshd off
35. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
Enforcing during installation
lvdisplay
amount of RAM
36. What critical step must you take after updating the kernel to a newer version?
halts the system
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
generates errors under Red Hat Enterprise Linux 6
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.
37. Which version of SSH should you use?
setsebool -P nfs_export_all_rw=1
Version 2 is the latest and most secure version of SSH.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
38. What command can you use to view system processes and their CPU usage?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
user's home directory in the /etc/skel directory
Use the ps command to view processes and their CPU usage.
39. What is the /etc/vsftpd/user_list file used for?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
service dhcpd configtest
The user_list file can be used to limit which users have access to the FTP server.
service named configtest
40. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Enforcing during installation
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.
41. The firewall service is...
enabled by default
SELinux provides enhanced granular security for the Linux operating system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
via the command line
42. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
43. What commands can you use to add a client machine to an LDAP server?
The du and df commands are used to view available space on the system.
You can use the authconfig-tui command or the authconfig command.
export one or all resources
chcon
44. What command can you use to view the current ACL on a file?
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.
This chapter described tdbsm and smbpasswd back-end authentication.
chkconfig xinetd --list
getfacl
45. What command can you use to monitor and troubleshoot network connections?
The user_list file can be used to limit which users have access to the FTP server.
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 tcpdump command is used to monitor network connections on different interfaces.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
46. How can you change the security context of a directory to work with Apache?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Using the chcon command - you can change the context of a file to work with Apache.
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.
mkfs.ext4
47. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
48. What command can you use to query Boolean values?
getsebool
The du and df commands are used to view available space on the system.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
49. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The smbstatus command shows you currently mounted Samba resources.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
50. What command disables the SSH service from running when the system boots?
you have access to the correct packages or repositories.
chkconfig sshd off
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The /etc/fstab file.