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 monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
service sshd statuts
getfacl
2. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Use the route command with the add option to create a static route.
via the command line
atq
semanage boolean -l
3. Can you put your /boot partition on a RAID 5 array?
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 du and df commands are used to view available space on the system.
The rndc utility provides a method for managing the DNS server remotely and securely.
lvdisplay
4. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The smbstatus command shows you currently mounted Samba resources.
The user_list file can be used to limit which users have access to the FTP server.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
generates errors under Red Hat Enterprise Linux 6
5. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
chcon
Use the setgid flag to create the appropriate permissions (chmod 2770).
The TFTP server uses UDP port 69.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
6. Samba servers can...
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Physical volumes - volume groups - and logical volumes.
serve both files and printers to users
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.
7. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The service command is used to start - stop - and manage system services.
The dig - host - and ping commands can be used to test DNS server functionality.
A user's home directory is created under the /home directory.
8. What are the side effects of shrinking a volume group or logical volume?
chkconfig—list
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
9. What option is used with both the fdisk and parted commands to display the current partition tables?
export one or all resources
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
10. What is the virsh command used for?
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.
createrepo
The virsh command is used to manage virtual guests.
generates errors under Red Hat Enterprise Linux 6
11. How would you install a group of packages all at a single time?
generates errors under Red Hat Enterprise Linux 6
run on any port you'd like (provided that port is available)
Use the yum groupinstall command to install multiple packages in a single group at once.
Enforcing during installation
12. The firewall service is...
The lftp command can be used on a client to test FTP server connections.
support for TCP Wrappers
The mount command lists all currently mounted file systems.
enabled by default
13. What options with the yum command would you use to remove a package?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
You can use the remove or erase options with yum to remove a package.
The smbpasswd command is used to create Samba users.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
14. 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
amount of RAM
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
getfacl
15. What port must be opened on the firewall for DNS?
createrepo
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
DNS uses port 53.
16. How can you list all services on the system to tell whether they will boot during startup?
Physical volumes - volume groups - and logical volumes.
The NFS service uses TCP port 2049 by default.
generates errors under Red Hat Enterprise Linux 6
chkconfig—list
17. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
schedule one-time-only jobs
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
used for kickstart and/or network installs
18. What option at the GRUB boot menu can you use to append something to a kernel?
SSH is used for secure remote management of Linux 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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
19. 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
20. A service needs to have _______________ to be able to use it.
The virsh command is used to manage virtual guests.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The /var/log/audit/audit.log file contains all policy violations.
support for TCP Wrappers
21. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
22. Before you work with ACLs - what do you need to do to the file system?
The virsh command is used to manage virtual guests.
used for kickstart and/or network installs
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The vsftpd package is used to install an FTP server.
23. What is the difference between an A record and a PTR record?
export one or all resources
kickstart installations to work
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
ifconfig
24. What command can you use to create a new SSL certificate?
entering rescue mode and repairing the problem.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
25. Where are Yum repository config files located?
Use the top command to view CPU and memory usage.
service dhcpd configtest
setsebool -P nfs_export_all_rw=1
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.
26. 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
27. What does it mean if you ping a host and you receive the response Destination Unreachable?
Version 2 is the latest and most secure version of SSH.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
you have access to the correct packages or repositories.
By default - the rndc utility listens on port 953.
28. What port on the firewall needs to be open for the TFTP server to work?
The two main config files are master.cf and main.cf.
The service command is used to start - stop - and manage system services.
The TFTP server uses UDP port 69.
A virtual host is a way of hosting multiple sites using a single IP address.
29. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the setgid flag to create the appropriate permissions (chmod 2770).
30. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
31. Runlevel 0 ___________. Runlevel 6 reboots the system.
Use the route command with the add option to create a static route.
support TCP Wrappers
halts the system
The two main config files are master.cf and main.cf.
32. What command can you use to view system processes and their CPU usage?
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.
Use the ps command to view processes and their CPU usage.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
support TCP Wrappers
33. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The four types of DNS servers are master - slave - caching-only - and forwarding.
By default - Squid runs on port 3128.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
34. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
getsebool
The TFTP server uses UDP port 69.
amount of RAM
35. A PXE server eases the automation process but isn't required for...
kickstart installations to work
getfacl
DNS uses port 53.
chkconfig sshd off
36. What is the main config file for the DHCP 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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
37. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
Use the ps command to view processes and their CPU usage.
alternatives --config mta
chkconfig sshd off
By default - Squid runs on port 3128.
38. What command can you use to manage system services?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The service command is used to start - stop - and manage system services.
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.
39. A slave DNS server provides...
A virtual host is a way of hosting multiple sites using a single IP address.
load balancing and redundancy benefits
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
entering rescue mode and repairing the problem.
40. What three protocols can you use to perform network installations?
enabled by default
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Apache uses port 80 for HTTP and port 443 for HTTPS.
kickstart installations to work
41. How would you view all Boolean options for the HTTP service?
Using the chcon command - you can change the context of a file to work with Apache.
Use the yum groupinstall command to install multiple packages in a single group at once.
Enforcing during installation
getsebool -a | grep http
42. What does the partprobe command do?
chcon
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Physical volumes - volume groups - and logical volumes.
You can use the authconfig-tui command or the authconfig command.
43. What command and options can you use to update the time?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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
The /etc/fstab file.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
44. What port does the DHCP server listen on by default?
Using the chcon command - you can change the context of a file to work with Apache.
generates errors under Red Hat Enterprise Linux 6
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The DHCP server listens on port 67 by default.
45. What client-side command can you use to test your FTP server connection?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
mkfs.ext4
The lftp command can be used on a client to test FTP server connections.
support TCP Wrappers
46. GRUB has three stages. Can you name them?
Physical volumes - volume groups - and logical volumes.
VNC is used to control a remote desktop session.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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
47. The exportfs command is used to...
ifconfig
The htpasswd command can be used to password-protect a web page.
export one or all resources
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.
48. Which log file is used to keep track of policy violations?
Sendmail
Enforcing during installation
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 /var/log/audit/audit.log file contains all policy violations.
49. What two commands are used for package management?
via the command line
The yum and rpm commands are used for package management.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
50. What are the two config files for Postfix called?
defining a %pre section although it is rarely used
The two main config files are master.cf and main.cf.
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
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.