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. Are additional packages besides httpd required for a secure website - If so - what are they?
Sendmail
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
2. What two commands are used for package management?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The yum and rpm commands are used for package management.
This chapter described tdbsm and smbpasswd back-end authentication.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
3. What command can you use to check the config file of the DHCP server?
getsebool -a | grep http
The lftp command can be used on a client to test FTP server connections.
service dhcpd configtest
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
4. What are the three modes in which the rpm command can operate?
The smbstatus command shows you currently mounted Samba resources.
The tcpdump command is used to monitor network connections on different interfaces.
The rpm command can operate in install - query - or verify modes.
You must open TCP ports 20 and 21 for the FTP server to function properly.
5. 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
6. Which file shows you all the client IP addresses?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Enforcing during installation
You can use the remove or erase options with yum to remove a package.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
7. What command can be used to view the queue for at service jobs?
choose which mode you'd like it to operate in
atq
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
8. What happens to jobs that are scheduled to run while the system is off?
You can use the authconfig-tui command or the authconfig command.
The smbpasswd command is used to create Samba users.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
9. What is a virtual host?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
A virtual host is a way of hosting multiple sites using a single IP address.
10. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
choose which mode you'd like it to operate in
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
alternatives --config mta
11. Can you name three utilities that can be used for network or DNS client troubleshooting?
lvdisplay
The virsh command is used to manage virtual guests.
semanage boolean -l
The three utilities are: route - ping - and nslookup.
12. The at command is used to ____________. The cron service handles reoccurring system jobs.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
schedule one-time-only jobs
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
chkconfig sshd off
13. What command do you use to report information on quota usage?
createrepo
repquota
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
getfacl
14. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
This chapter described tdbsm and smbpasswd back-end authentication.
export one or all resources
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
15. How do you run a command with elevated privileges?
useradd -c "Jr Admin" George
browseable option
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
service httpd configtest
16. What command can you use to monitor and troubleshoot network connections?
kickstart installations to work
The tcpdump command is used to monitor network connections on different interfaces.
useradd -c "Jr Admin" George
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.
17. What command can you use to get information about logical volumes?
lvdisplay
Version 2 is the latest and most secure version of SSH.
rpmbuild
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
18. What is the top command used for?
getfacl
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Use the top command to view CPU and memory usage.
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.
19. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
The user_list file can be used to limit which users have access to the FTP server.
support for TCP Wrappers
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.
20. What option would you use to query an installed package using the rpm command?
The virsh command is used to manage virtual guests.
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.
cat /proc/mdstat
Enforcing during installation
21. Does a DHCP server allow reserved IP addresses - If so - how?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
SSH is used for secure remote management of Linux systems.
createrepo
22. What command disables the SSH service from running when the system boots?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
chkconfig sshd off
23. What is the format of the /etc/shadow file?
export one or all resources
The rndc utility provides a method for managing the DNS server remotely and securely.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Sendmail
24. What command and option can you use to enable a service to start on boot?
The print option is used with both the fdisk and parted commands to display the current partition tables.
getsebool
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
25. What is PAM used for?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
SSH is used for secure remote management of Linux systems.
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 chcon command - you can change the context of a file to work with Apache.
26. What option is used to allow anonymous uploads to the FTP server?
mkfs.ext4
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
halts the system
27. What does the rdnc-confgen command do?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The mount command lists all currently mounted file systems.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
28. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The /var/log/audit/audit.log file contains all policy violations.
Apache uses port 80 for HTTP and port 443 for HTTPS.
DNS uses port 53.
29. What is the name of the package that allows you to install VNC?
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.
The lftp command can be used on a client to test FTP server connections.
The nfsstat command can be used to view NFS statistics.
30. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
service sshd statuts
LUKS encryption
31. You must dictate the ____________ you want allocated to your virtual machine when you create it.
atq
amount of RAM
You add your action to the end of the /home/user01/.bashrc file.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
32. 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
33. What file is used to maintain custom parameters for the kernel during system boot?
The virsh command is used to manage virtual guests.
The four types of DNS servers are master - slave - caching-only - and forwarding.
You can use the authconfig-tui command or the authconfig command.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
34. What are the five required directories when building RPMS?
By defining a %post section - you can run scripts after a kickstart installation is complete.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
35. How can you change the security context of a directory to work with Apache?
ifconfig
setsebool -P nfs_export_all_rw=1
lvdisplay
Using the chcon command - you can change the context of a file to work with Apache.
36. How would you view all Boolean options for the HTTP service?
The TFTP server uses UDP port 69.
getsebool -a | grep http
enabled by default
The vsftpd package is used to install an FTP server.
37. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
The /var/log/audit/audit.log file contains all policy violations.
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?
38. What command and option do you use to view the description of Boolean values?
semanage boolean -l
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
39. What port on the firewall needs to be open for the TFTP server to work?
generates errors under Red Hat Enterprise Linux 6
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The TFTP server uses UDP port 69.
40. What command is used to create an RPM package?
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.
A user's home directory is created under the /home directory.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
rpmbuild
41. What command displays your current interfaces and IP address?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Using the chcon command - you can change the context of a file to work with Apache.
getfacl
ifconfig
42. What command (and options) can be used to create a user named George with the description "Jr Admin"?
cat /proc/mdstat
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.
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.
useradd -c "Jr Admin" George
43. To grow a file system
Physical volumes - volume groups - and logical volumes.
service dhcpd configtest
Use the resize2fs command to grow a file system.
defining a %pre section although it is rarely used
44. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The ping command can be used to verify connectivity to another host.
The -t nfs option is used with the mount command to mount NFS resources.
45. What does the testparm command do?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
You can use the remove or erase options with yum to remove a package.
46. How can you verify the status of the SSH service after the system has booted?
The nfsstat command can be used to view NFS statistics.
service sshd statuts
The tcpdump command is used to monitor network connections on different interfaces.
The two main config files are master.cf and main.cf.
47. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
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.
rpcbind service
kickstart installations to work
49. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
via the command line
The four types of DNS servers are master - slave - caching-only - and forwarding.
you have access to the correct packages or repositories.
50. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183