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. How can virtual hosts be used?
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.
kickstart installations to work
SELinux Booleans provide restrictions to different aspects of a service.
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.
2. What command can you use to create a file system?
The du and df commands are used to view available space on the system.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The mount command lists all currently mounted file systems.
mkfs.ext4
3. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
You add your action to the end of the /home/user01/.bashrc file.
LUKS encryption
service dhcpd configtest
4. The ____________ is available for each share.
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
Use the ps command to view processes and their CPU usage.
setsebool -P nfs_export_all_rw=1
browseable option
5. What command can you use to create a new SSL certificate?
The service command is used to start - stop - and manage system services.
halts the system
Sendmail
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
6. What is the name of the section used to run scripts after a kickstart installation?
support for TCP Wrappers
The -t nfs option is used with the mount command to mount NFS resources.
Enforcing during installation
By defining a %post section - you can run scripts after a kickstart installation is complete.
7. To grow a file system
run on any port you'd like (provided that port is available)
Use the resize2fs command to grow a file system.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The smbstatus command shows you currently mounted Samba resources.
8. How do you run a command with elevated privileges?
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
9. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
getfacl
The TFTP server uses UDP port 69.
10. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
rpcbind service
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.
The DHCP server listens on port 67 by default.
11. What is the virsh command used for?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The virsh command is used to manage virtual guests.
The three utilities are: route - ping - and nslookup.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
12. Which remote management service is installed by default?Can you name the port that it uses?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
defining a %pre section although it is rarely used
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
13. 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
14. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
DNS uses port 53.
The three utilities are: route - ping - and nslookup.
The file that stores usernames and their encrypted passwords is erased and replaced with a new 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.
15. 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
16. 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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Version 2 is the latest and most secure version of SSH.
17. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
This command reboots virtual guest Client04.
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
18. How would you go about creating a static route?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The NFS service uses TCP port 2049 by default.
Use the route command with the add option to create a static route.
The smbpasswd command is used to create Samba users.
19. What does the rdnc-confgen command do?
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 du and df commands are used to view available space on the system.
By default - the rndc utility listens on port 953.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
20. 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.
cat /proc/mdstat
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The SMTP service runs on TCP port 110.
21. What benefit does a web proxy provide to your network?
SELinux Booleans provide restrictions to different aspects of a service.
cat /proc/mdstat
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Version 2 is the latest and most secure version of SSH.
22. What port on the firewall needs to be open for the TFTP server to work?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The TFTP server uses UDP port 69.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Physical volumes - volume groups - and logical volumes.
23. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The /etc/fstab file.
browseable option
used for kickstart and/or network installs
halts the system
24. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
used for kickstart and/or network installs
The two main config files are master.cf and main.cf.
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.
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.
25. GRUB has three stages. Can you name them?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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
Physical volumes - volume groups - and logical volumes.
Enforcing during installation
26. What command can you use to change the context of files?
createrepo
The ping command can be used to verify connectivity to another host.
chcon
run on any port you'd like (provided that port is available)
27. Which log file is used to keep track of policy violations?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
service dhcpd configtest
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 /var/log/audit/audit.log file contains all policy violations.
28. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The lftp command can be used on a client to test FTP server connections.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
29. What is the top command used for?
Use the top command to view CPU and memory usage.
The lastlog and faillog commands are used to view user login-related events?
The nfsstat command can be used to view NFS statistics.
You can use the authconfig-tui command or the authconfig command.
30. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
31. What is the superblock used for?
The dig - host - and ping commands can be used to test DNS server functionality.
Use the ps command to view processes and their CPU usage.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Use the setgid flag to create the appropriate permissions (chmod 2770).
32. What option needs to be used with the mount command to mount an NFS resource?
Physical volumes - volume groups - and logical volumes.
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.
The /etc/fstab file.
The -t nfs option is used with the mount command to mount NFS resources.
33. What is the biggest benefit to using LVM over basic partitions?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The file that stores usernames and their encrypted passwords is erased and replaced with a new 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.
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.
34. What command and option can you use to enable a service to start on boot?
load balancing and redundancy benefits
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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 du and df commands are used to view available space on the system.
35. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
Enforcing during installation
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.
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.
36. What two commands are used for package management?
choose which mode you'd like it to operate in
defining a %pre section although it is rarely used
The yum and rpm commands are used for package management.
mkfs.ext4
37. The firewall service is...
service sshd statuts
enabled by default
The htpasswd command can be used to password-protect a web page.
cat /proc/mdstat
38. What is PAM used for?
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
schedule one-time-only jobs
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.
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.
39. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. How can you change the security context of a directory to work with Apache?
setsebool -P nfs_export_all_rw=1
Apache uses port 80 for HTTP and port 443 for HTTPS.
service dhcpd configtest
Using the chcon command - you can change the context of a file to work with Apache.
41. What option would you use to query an installed package using the rpm command?
generates errors under Red Hat Enterprise Linux 6
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.
The /etc/fstab file.
The nfsstat command can be used to view NFS statistics.
42. What command can you use to test the config files before starting the DNS service?
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
service named configtest
SELinux Booleans provide restrictions to different aspects of a service.
43. What is SSH used for?
SSH is used for secure remote management of Linux systems.
rpcbind service
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
44. What command can you use to manage system services?
halts the system
createrepo
The service command is used to start - stop - and manage system services.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
45. SSH does...
support TCP Wrappers
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The /etc/fstab file.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
46. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The DHCP server listens on port 67 by default.
rpcbind service
used for kickstart and/or network installs
The /etc/fstab file.
47. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The htpasswd command can be used to password-protect a web page.
The smbpasswd command is used to create Samba users.
The rndc utility provides a method for managing the DNS server remotely and securely.
48. What command-line program can you use to check your mail?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
By default - Squid runs on port 3128.
Typing the mail or mutt command allows you to read mail from the command line.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
49. What file needs to be edited so that the system will mount a file system at boot time?
The NFS service uses TCP port 2049 by default.
The /etc/fstab file.
The print option is used with both the fdisk and parted commands to display the current partition tables.
have the same effect
50. What command is used to create an RPM package?
The four types of DNS servers are master - slave - caching-only - and forwarding.
mkfs.ext4
rpmbuild
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.