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. To grow a file system
support TCP Wrappers
Use the ps command to view processes and their CPU usage.
Use the resize2fs command to grow a file system.
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.
2. What does virsh reboot Client04 do?
getfacl
Use the ps command to view processes and their CPU usage.
This command reboots virtual guest Client04.
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.
3. What command and option do you use to view the description of Boolean values?
semanage boolean -l
rpcbind service
Kickstart supports both basic and advanced partitioning (RAID/LVM).
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
4. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
run on any port you'd like (provided that port is available)
The virsh command is used to manage virtual guests.
choose which mode you'd like it to operate in
5. What port must be opened on the firewall for DNS?
The service command is used to start - stop - and manage system services.
enabled by default
Enforcing during installation
DNS uses port 53.
6. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
You can use the authconfig-tui command or the authconfig command.
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.
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 tcpdump command is used to monitor network connections on different interfaces.
7. The ____________ is available for each share.
By default - the rndc utility listens on port 953.
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.
getfacl
browseable option
8. What is SSH used for?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
rpmbuild
SSH is used for secure remote management of Linux systems.
export one or all resources
9. What file needs to be edited so that the system will mount a file system at boot time?
amount of RAM
The /etc/fstab file.
The tcpdump command is used to monitor network connections on different interfaces.
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.
10. What option is used with both the fdisk and parted commands to display the current partition tables?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The print option is used with both the fdisk and parted commands to display the current partition tables.
A virtual host is a way of hosting multiple sites using a single IP address.
11. There are four types of DNS servers. Name them.
rpcbind service
The four types of DNS servers are master - slave - caching-only - and forwarding.
getsebool
The service command is used to start - stop - and manage system services.
12. What two ports should be opened on the firewall for the FTP server to function properly?
By default - the rndc utility listens on port 953.
The nfsstat command can be used to view NFS statistics.
createrepo
You must open TCP ports 20 and 21 for the FTP server to function properly.
13. Which log file is used to keep track of policy violations?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /var/log/audit/audit.log file contains all policy violations.
getfacl
service sshd statuts
14. What does the rdnc-confgen command do?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
rpmbuild
The rpm command can operate in install - query - or verify modes.
15. Where are Yum repository config files located?
setsebool -P nfs_export_all_rw=1
The vsftpd package is used to install an FTP server.
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.
16. What command can you use to view the current ACL on a file?
load balancing and redundancy benefits
chkconfig—list
Sendmail
getfacl
17. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The ping command can be used to verify connectivity to another host.
via the command line
18. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
SELinux provides enhanced granular security for the Linux operating system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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 htpasswd command can be used to password-protect a web page.
19. How can you check the currently mounted file systems?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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 mount command lists all currently mounted file systems.
service sshd statuts
20. What command is used to create an RPM package?
rpmbuild
The yum and rpm commands are used for package management.
You add your action to the end of the /home/user01/.bashrc file.
The TFTP server uses UDP port 69.
21. Which remote management service is installed by default?Can you name the port that it uses?
semanage boolean -l
The rpm command can operate in install - query - or verify modes.
cat /proc/mdstat
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.
22. What is the point of using SELinux?
VNC is used to control a remote desktop session.
createrepo
The print option is used with both the fdisk and parted commands to display the current partition tables.
SELinux provides enhanced granular security for the Linux operating system.
23. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
The -t nfs option is used with the mount command to mount NFS resources.
LUKS encryption
Kickstart supports both basic and advanced partitioning (RAID/LVM).
24. What is the /etc/hosts file used for?
25. What command would you use to create a group - to add the user George to the group?
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
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
26. What options with the yum command would you use to remove a package?
The dig - host - and ping commands can be used to test DNS server functionality.
You can use the remove or erase options with yum to remove a package.
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.
browseable option
27. What command can be used to view the queue for at service jobs?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
atq
The NFS service uses TCP port 2049 by default.
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.
28. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
Physical volumes - volume groups - and logical volumes.
generates errors under Red Hat Enterprise Linux 6
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
setsebool -P nfs_export_all_rw=1
29. 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.
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.
cat /proc/mdstat
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.
30. What are the three items that make up LVM?
mkfs.ext4
rpcbind service
ifconfig
Physical volumes - volume groups - and logical volumes.
31. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
Enforcing during installation
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
32. What command can you use to create a file system?
mkfs.ext4
load balancing and redundancy benefits
You add your action to the end of the /home/user01/.bashrc file.
Apache uses port 80 for HTTP and port 443 for HTTPS.
33. To export directories as resources - what file needs to be edited?
34. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
By default - Squid runs on port 3128.
halts the system
Enforcing during installation
alternatives --config mta
35. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
SSH is used for secure remote management of Linux systems.
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 monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
A virtual host is a way of hosting multiple sites using a single IP address.
getsebool
halts the system
37. How would you view all Boolean options for the HTTP service?
The tcpdump command is used to monitor network connections on different interfaces.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
getsebool -a | grep http
The print option is used with both the fdisk and parted commands to display the current partition tables.
38. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
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
via the command line
39. What command can you use to view NFS statistics?
The rpm command can operate in install - query - or verify modes.
The nfsstat command can be used to view NFS statistics.
rpcbind service
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
40. What are SELinux Booleans?
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
SELinux Booleans provide restrictions to different aspects of a service.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
41. Which version of SSH should you use?
kickstart installations to work
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.
have the same effect
Version 2 is the latest and most secure version of SSH.
42. 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.
run on any port you'd like (provided that port is available)
browseable option
The rndc utility provides a method for managing the DNS server remotely and securely.
43. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
VNC is used to control a remote desktop session.
This chapter described tdbsm and smbpasswd back-end authentication.
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
44. What command and option can you use to enable a service to start on boot?
VNC is used to control a remote desktop session.
The service command is used to start - stop - and manage system services.
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.
45. Do you need to write changes to the disk when using the parted command? What about fdisk?
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?
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
46. What command can you use to query Boolean values?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The four types of DNS servers are master - slave - caching-only - and forwarding.
choose which mode you'd like it to operate in
getsebool
47. The exportfs command is used to...
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
export one or all resources
user's home directory in the /etc/skel directory
48. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
49. What are the two types of back-end authentication mechanisms discussed in this chapter?
The lftp command can be used on a client to test FTP server connections.
The service command is used to start - stop - and manage system services.
This chapter described tdbsm and smbpasswd back-end authentication.
amount of RAM
50. What is the name of the package used to install an FTP?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
Using the chcon command - you can change the context of a file to work with Apache.
The vsftpd package is used to install an FTP server.