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 would you go about creating a static route?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the route command with the add option to create a static route.
SSH is used for secure remote management of Linux systems.
mkfs.ext4
2. What command can you use to change the context of files?
chcon
setsebool -P nfs_export_all_rw=1
cat /proc/mdstat
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
3. What port does the DHCP server listen on by default?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the top command to view CPU and memory usage.
The DHCP server listens on port 67 by default.
The rndc utility provides a method for managing the DNS server remotely and securely.
4. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
kickstart installations to work
The user_list file can be used to limit which users have access to the FTP server.
5. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The three utilities are: route - ping - and nslookup.
semanage boolean -l
6. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
user's home directory in the /etc/skel directory
You can use the authconfig-tui command or the authconfig command.
support TCP Wrappers
7. 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
8. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
A user's home directory is created under the /home directory.
You can use the remove or erase options with yum to remove a package.
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 NFS service uses TCP port 2049 by default.
9. What is a swap? Is it created as a partition or device file?
chkconfig xinetd --list
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.
semanage boolean -l
serve both files and printers to users
10. What does virsh reboot Client04 do?
Use the ps command to view processes and their CPU usage.
SELinux Booleans provide restrictions to different aspects of a service.
This command reboots virtual guest Client04.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
11. What command and option can you use to enable a service to start on boot?
VNC is used to control a remote desktop session.
repquota
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
service named configtest
12. What are the two types of back-end authentication mechanisms discussed in this chapter?
You can use the remove or erase options with yum to remove a package.
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.
This chapter described tdbsm and smbpasswd back-end authentication.
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.
13. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the yum groupinstall command to install multiple packages in a single group at once.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
rpmbuild
14. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The user_list file can be used to limit which users have access to the FTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
15. A PXE server eases the automation process but isn't required for...
chcon
kickstart installations to work
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
choose which mode you'd like it to operate in
16. Before you work with quotas - what do you need to do to the file system?
Use the route command with the add option to create a static route.
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.
user's home directory in the /etc/skel directory
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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 command can be used to view the queue for at service jobs?
ifconfig
atq
The vsftpd package is used to install an FTP server.
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. What option needs to be used with the mount command to mount an NFS resource?
The tcpdump command is used to monitor network connections on different interfaces.
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
chkconfig—list
20. Are additional packages besides httpd required for a secure website - If so - what are they?
SELinux Booleans provide restrictions to different aspects of a service.
getsebool
For Apache to run a secure site - the mod_ssl package is required to be installed.
choose which mode you'd like it to operate in
21. What are the three different types of RAID described in this chapter?
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The print option is used with both the fdisk and parted commands to display the current partition tables.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
22. What command can be used to easily list all the options in the FTP main config file?
SELinux provides enhanced granular security for the Linux operating system.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
schedule one-time-only jobs
23. Which remote management service is installed by default?Can you name the port that it uses?
service dhcpd configtest
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.
export one or all resources
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
24. What command can you use to view NFS statistics?
rpmbuild
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The nfsstat command can be used to view NFS statistics.
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.
25. What command can you use to view system processes and their CPU usage?
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.
rpcbind service
Use the ps command to view processes and their CPU usage.
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
26. What command can you use to validate the syntax of the Apache config file?
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
service httpd configtest
service dhcpd configtest
27. What command do you use to change the permissions on a file or directory - To change ownership?
service sshd statuts
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
useradd -c "Jr Admin" George
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.
28. What command can you use to get information about logical volumes?
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.
semanage boolean -l
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
lvdisplay
29. What are the three items that make up LVM?
The ping command can be used to verify connectivity to another host.
setsebool -P nfs_export_all_rw=1
have the same effect
Physical volumes - volume groups - and logical volumes.
30. What command and options can you use to update the time?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The TFTP server uses UDP port 69.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the route command with the add option to create a static route.
31. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Kickstart supports both basic and advanced partitioning (RAID/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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
service named configtest
32. What port must be opened on the firewall for DNS?
DNS uses port 53.
The -t nfs option is used with the mount command to mount NFS resources.
The dig - host - and ping commands can be used to test DNS server functionality.
The service command is used to start - stop - and manage system services.
33. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
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.
chkconfig xinetd --list
used for kickstart and/or network installs
34. What command can you use to view the current ACL on a file?
SSH is used for secure remote management of Linux systems.
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.
getfacl
The ping command can be used to verify connectivity to another host.
35. Before you work with ACLs - what do you need to do to the file system?
A virtual host is a way of hosting multiple sites using a single IP address.
service httpd configtest
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
36. What command can you use to view mounted Samba shares?
schedule one-time-only jobs
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 smbstatus command shows you currently mounted Samba resources.
choose which mode you'd like it to operate in
37. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
service dhcpd configtest
The smbpasswd command is used to create Samba users.
You can use the authconfig-tui command or the authconfig command.
38. What is NAT - How is it used?
alternatives --config mta
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
support for TCP Wrappers
39. To create a RAID or LVM partition using kickstart
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.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
40. 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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Enforcing during installation
getsebool -a | grep http
41. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
The lastlog and faillog commands are used to view user login-related events?
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.
The yum and rpm commands are used for package management.
42. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The smbstatus command shows you currently mounted Samba resources.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
43. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
The SMTP service runs on TCP port 110.
setsebool -P nfs_export_all_rw=1
The /var/log/audit/audit.log file contains all policy violations.
44. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
getsebool
support TCP Wrappers
The smbstatus command shows you currently mounted Samba resources.
45. What command can you use to create your own repositories?
The four types of DNS servers are master - slave - caching-only - and forwarding.
have the same effect
createrepo
The ping command can be used to verify connectivity to another host.
46. Can you name three utilities that can be used for network or DNS client troubleshooting?
The three utilities are: route - ping - and nslookup.
The four types of DNS servers are master - slave - caching-only - and forwarding.
getsebool
The two main config files are master.cf and main.cf.
47. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
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.
The nfsstat command can be used to view NFS statistics.
generates errors under Red Hat Enterprise Linux 6
48. SSH does...
load balancing and redundancy benefits
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
support TCP Wrappers
getsebool -a | grep http
49. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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
50. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183