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 protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
rpcbind service
You add your action to the end of the /home/user01/.bashrc file.
The rndc utility provides a method for managing the DNS server remotely and securely.
2. What command can you use to create a password-protected page?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The htpasswd command can be used to password-protect a web page.
3. What is a gateway used for on a network?
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.
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.
Enforcing during installation
Apache uses port 80 for HTTP and port 443 for HTTPS.
4. What port does the DHCP server listen on by default?
have the same effect
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The DHCP server listens on port 67 by default.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
5. What is the format of the /etc/shadow file?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The smbpasswd command is used to create Samba users.
The -t nfs option is used with the mount command to mount NFS resources.
6. 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
7. The exportfs command is used to...
export one or all resources
atq
VNC is used to control a remote desktop session.
amount of RAM
8. What options with the yum command would you use to remove a package?
user's home directory in the /etc/skel directory
You can use the remove or erase options with yum to remove a package.
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
Using the chcon command - you can change the context of a file to work with Apache.
9. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The du and df commands are used to view available space on the system.
export one or all resources
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
10. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
used for kickstart and/or network installs
SELinux Booleans provide restrictions to different aspects of a service.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
11. Before you work with quotas - what do you need to do to the file system?
generates errors under Red Hat Enterprise Linux 6
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
service dhcpd configtest
The rndc utility provides a method for managing the DNS server remotely and securely.
12. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The smbstatus command shows you currently mounted Samba resources.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
you have access to the correct packages or repositories.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
13. Most boot issues can be resolved by...
The ping command can be used to verify connectivity to another host.
This chapter described tdbsm and smbpasswd back-end authentication.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
entering rescue mode and repairing the problem.
14. What port does the rndc utility listen on by default?
The mount command lists all currently mounted file systems.
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.
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.
By default - the rndc utility listens on port 953.
15. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
setsebool -P nfs_export_all_rw=1
via the command line
For Apache to run a secure site - the mod_ssl package is required to be installed.
mkfs.ext4
16. What option is used to allow anonymous uploads to the FTP server?
By default - Squid runs on port 3128.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
semanage boolean -l
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
17. How do you run a command with elevated privileges?
entering rescue mode and repairing the problem.
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.
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.
18. What three protocols can you use to perform network installations?
chcon
VNC is used to control a remote desktop session.
have the same effect
Network installations can be performed using the HTTP - FTP - and NFS protocols.
19. What command can you use to query information from the kernel about RAID arrays?
setsebool -P nfs_export_all_rw=1
cat /proc/mdstat
Use the route command with the add option to create a static route.
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
20. 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.
used for kickstart and/or network installs
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
21. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
The htpasswd command can be used to password-protect a web page.
The user_list file can be used to limit which users have access to the FTP server.
getfacl
22. Can you put your /boot partition on a RAID 5 array?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
via the command line
export one or all resources
23. How would you disable SELinux protection for NFS - allowing shares to be read/write?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
setsebool -P nfs_export_all_rw=1
The /var/log/audit/audit.log file contains all policy violations.
The nfsstat command can be used to view NFS statistics.
24. What is the superblock used for?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SELinux provides enhanced granular security for the Linux operating system.
getsebool
25. What command can you use to test connectivity to another host?
The htpasswd command can be used to password-protect a web page.
The ping command can be used to verify connectivity to another host.
load balancing and redundancy benefits
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
26. How would you install a group of packages all at a single time?
The /etc/fstab file.
Use the yum groupinstall command to install multiple packages in a single group at once.
The /var/log/audit/audit.log file contains all policy violations.
mkfs.ext4
27. What is VNC?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Use the ps command to view processes and their CPU usage.
VNC is used to control a remote desktop session.
The SMTP service runs on TCP port 110.
28. How can you verify the status of the SSH service after the system has booted?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
service sshd statuts
29. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
amount of RAM
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 can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The three utilities are: route - ping - and nslookup.
30. What is SSH used for?
SSH is used for secure remote management of Linux systems.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
31. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
mkfs.ext4
The ping command can be used to verify connectivity to another host.
32. What three components are needed to fully automate a kickstart installation?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
generates errors under Red Hat Enterprise Linux 6
The dig - host - and ping commands can be used to test DNS server functionality.
33. Before you work with ACLs - what do you need to do to the file system?
enabled by default
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 ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Using the chcon command - you can change the context of a file to work with Apache.
34. What benefit does a web proxy provide to your network?
The virsh command is used to manage virtual guests.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
35. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
Using the chcon command - you can change the context of a file to work with Apache.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
36. What command do you use to change the permissions on a file or directory - To change ownership?
The virsh command is used to manage virtual guests.
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
via the command line
37. What does the rdnc-confgen command do?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
choose which mode you'd like it to operate in
38. What command can you use to manage system services?
chkconfig sshd off
load balancing and redundancy benefits
The service command is used to start - stop - and manage system services.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
39. What command can you use to create your own repositories?
choose which mode you'd like it to operate in
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
createrepo
The print option is used with both the fdisk and parted commands to display the current partition tables.
40. What command can you use to view the current ACL on a file?
enabled by default
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
getfacl
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
41. What command and options can you use to update the time?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
generates errors under Red Hat Enterprise Linux 6
42. What is the name of the package that allows you to install VNC?
The service command is used to start - stop - and manage system services.
user's home directory in the /etc/skel directory
By default - the rndc utility listens on port 953.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
43. What command can you use to create a file system?
mkfs.ext4
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 lftp command can be used on a client to test FTP server connections.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
44. 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
45. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
46. Which version of SSH should you use?
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.
The rndc utility provides a method for managing the DNS server remotely and securely.
Version 2 is the latest and most secure version of SSH.
browseable option
47. A PXE server eases the automation process but isn't required for...
chkconfig sshd off
kickstart installations to work
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The rndc utility provides a method for managing the DNS server remotely and securely.
48. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
halts the system
49. What option needs to be used with the mount command to mount an NFS resource?
Use the route command with the add option to create a static route.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The lftp command can be used on a client to test FTP server connections.
The -t nfs option is used with the mount command to mount NFS resources.
50. What is the top command used for?
Use the top command to view CPU and memory usage.
rpmbuild
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
By default - the rndc utility listens on port 953.