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 can you use to test the config files before starting the DNS service?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The htpasswd command can be used to password-protect a web page.
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.
service named configtest
2. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
getsebool
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
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.
3. What are the three items that make up LVM?
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Physical volumes - volume groups - and logical volumes.
4. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
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.
semanage boolean -l
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 command can you use to create a new SSL certificate?
The du and df commands are used to view available space on the system.
The smbstatus command shows you currently mounted Samba resources.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
6. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
you have access to the correct packages or repositories.
A user's home directory is created under the /home directory.
A virtual host is a way of hosting multiple sites using a single IP address.
7. 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.
A user's home directory is created under the /home directory.
atq
support for TCP Wrappers
8. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
Sendmail
choose which mode you'd like it to operate in
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
9. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
alternatives --config mta
SELinux Booleans provide restrictions to different aspects of a service.
A virtual host is a way of hosting multiple sites using a single IP address.
10. Can you name the two commands that can be used to view the free space on the system?
The NFS service uses TCP port 2049 by default.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The rpm command can operate in install - query - or verify modes.
The du and df commands are used to view available space on the system.
11. What command and options can you use to update the time?
chkconfig sshd off
Use the route command with the add option to create a static route.
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
12. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
have the same effect
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.
Enforcing during installation
13. What option at the GRUB boot menu can you use to append something to a kernel?
support TCP Wrappers
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
14. What directory is used to represent the virtual file system created by the kernel?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
alternatives --config mta
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
15. What is the main config file for the DHCP service?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
rpmbuild
Use the route command with the add option to create a static route.
16. The ____________ is available for each share.
generates errors under Red Hat Enterprise Linux 6
browseable option
The rpm command can operate in install - query - or verify modes.
Use the resize2fs command to grow a file system.
17. 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
18. What are the three different types of RAID described in this chapter?
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
amount of RAM
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
19. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
Version 2 is the latest and most secure version of SSH.
SELinux provides enhanced granular security for the Linux operating system.
20. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
rpcbind service
service named configtest
Typing the mail or mutt command allows you to read mail from the command line.
21. What is the name of the package that allows you to install VNC?
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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
22. 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
You must open TCP ports 20 and 21 for the FTP server to function properly.
The mount command lists all currently mounted file systems.
mkfs.ext4
23. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
export one or all resources
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
24. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The vsftpd package is used to install an FTP server.
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.
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.
getsebool -a | grep http
25. 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 lastlog and faillog commands are used to view user login-related events?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SSH is used for secure remote management of Linux systems.
26. How do you run a command with elevated privileges?
support TCP Wrappers
generates errors under Red Hat Enterprise Linux 6
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Apache uses port 80 for HTTP and port 443 for HTTPS.
27. What command do you use to report information on quota usage?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables 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
repquota
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
28. What is the top command used for?
run on any port you'd like (provided that port is available)
Enforcing during installation
Use the top command to view CPU and memory usage.
getfacl
29. What three components are needed to fully automate a kickstart installation?
mkfs.ext4
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The user_list file can be used to limit which users have access to the FTP server.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
30. What is the point of using SELinux?
mkfs.ext4
This command reboots virtual guest Client04.
SSH is used for secure remote management of Linux systems.
SELinux provides enhanced granular security for the Linux operating system.
31. 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.
By default - Squid runs on port 3128.
The mount command lists all currently mounted file systems.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
32. What command can you use to view system processes and their CPU usage?
setsebool -P nfs_export_all_rw=1
Use the ps command to view processes and their CPU usage.
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.
33. What command is used to create an RPM package?
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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
rpmbuild
34. What is the name of the package used to install an FTP?
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.
By default - Squid runs on port 3128.
The vsftpd package is used to install an FTP server.
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
35. What are the three modes in which the rpm command can operate?
Version 2 is the latest and most secure version of SSH.
The rpm command can operate in install - query - or verify modes.
The smbstatus command shows you currently mounted Samba resources.
You add your action to the end of the /home/user01/.bashrc file.
36. What command can you use to check the config file of the DHCP server?
The nfsstat command can be used to view NFS statistics.
service dhcpd configtest
SELinux Booleans provide restrictions to different aspects of a service.
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.
37. What file is used to maintain custom parameters for the kernel during system boot?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
By default - Squid runs on port 3128.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
38. What is the difference between an A record and a PTR record?
mkfs.ext4
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
chcon
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
39. Runlevel 0 ___________. Runlevel 6 reboots the system.
chcon
halts the system
getsebool
The tcpdump command is used to monitor network connections on different interfaces.
40. A slave DNS server provides...
A user's home directory is created under the /home directory.
you have access to the correct packages or repositories.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
load balancing and redundancy benefits
41. 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
42. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
43. What command can you use to manage system services?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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 service command is used to start - stop - and manage system services.
44. What port does NFS use by default?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The rndc utility provides a method for managing the DNS server remotely and securely.
The NFS service uses TCP port 2049 by default.
Sendmail
45. What is a gateway used for on a network?
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The smbpasswd command is used to create Samba users.
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.
46. What command can you use to monitor and troubleshoot network connections?
defining a %pre section although it is rarely used
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The tcpdump command is used to monitor network connections on different interfaces.
47. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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
This chapter described tdbsm and smbpasswd back-end authentication.
service dhcpd configtest
49. What command can you use to change the context of files?
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The -t nfs option is used with the mount command to mount NFS resources.
chcon
50. SSH does...
support TCP Wrappers
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.
The yum and rpm commands are used for package management.