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 is the difference between an A record and a PTR record?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The smbstatus command shows you currently mounted Samba resources.
mkfs.ext4
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
2. What options with the yum command would you use to remove a package?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
You can use the remove or erase options with yum to remove a package.
support for TCP Wrappers
Enforcing during installation
3. What command can you use to query Boolean values?
The yum and rpm commands are used for package management.
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.
The lastlog and faillog commands are used to view user login-related events?
getsebool
4. How can you list all services on the system to tell whether they will boot during startup?
The user_list file can be used to limit which users have access to the FTP server.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
chkconfig—list
SELinux provides enhanced granular security for the Linux operating system.
5. What option would you use to query an installed package using the rpm command?
LUKS encryption
useradd -c "Jr Admin" George
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
6. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. To grow a file system
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
halts the system
export one or all resources
Use the resize2fs command to grow a file system.
8. Does a DHCP server allow reserved IP addresses - If so - how?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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 dhcpd configtest
entering rescue mode and repairing the problem.
9. How would you go about creating a static route?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Enforcing during installation
Use the route command with the add option to create a static route.
10. What commands can you use to add a client machine to an LDAP server?
The rndc utility provides a method for managing the DNS server remotely and securely.
have the same effect
You can use the authconfig-tui command or the authconfig command.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
11. What command can you use to create your own repositories?
createrepo
used for kickstart and/or network installs
halts the system
The smbstatus command shows you currently mounted Samba resources.
12. What is the biggest benefit to using LVM over basic partitions?
semanage boolean -l
used for kickstart and/or network installs
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.
The mount command lists all currently mounted file systems.
13. Which remote management service is installed by default?Can you name the port that it uses?
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.
ifconfig
have the same effect
Use the top command to view CPU and memory usage.
14. A PXE server eases the automation process but isn't required for...
lvdisplay
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.
kickstart installations to work
The three utilities are: route - ping - and nslookup.
15. What three commands can you use to help verify that the DNS server is functioning properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
Physical volumes - volume groups - and logical volumes.
chkconfig sshd off
The dig - host - and ping commands can be used to test DNS server functionality.
16. What command can you use to create a password-protected page?
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 htpasswd command can be used to password-protect a web page.
The lftp command can be used on a client to test FTP server connections.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
17. How would you disable SELinux protection for NFS - allowing shares to be read/write?
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.
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
setsebool -P nfs_export_all_rw=1
18. Which version of SSH should you use?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Version 2 is the latest and most secure version of SSH.
browseable option
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
19. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
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.
You add your action to the end of the /home/user01/.bashrc file.
The print option is used with both the fdisk and parted commands to display the current partition tables.
chcon
20. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The SMTP service runs on TCP port 110.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
21. What option needs to be used with the mount command to mount an NFS resource?
The smbpasswd command is used to create Samba users.
The -t nfs option is used with the mount command to mount NFS resources.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Version 2 is the latest and most secure version of SSH.
22. What are the three modes in which the rpm command can operate?
The service command is used to start - stop - and manage system services.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The yum and rpm commands are used for package management.
The rpm command can operate in install - query - or verify modes.
23. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
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.
You add your action to the end of the /home/user01/.bashrc file.
The tcpdump command is used to monitor network connections on different interfaces.
24. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
schedule one-time-only jobs
The lastlog and faillog commands are used to view user login-related events?
25. GRUB has three stages. Can you name them?
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
createrepo
The two main config files are master.cf and main.cf.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
26. What command can you use to query information from the kernel about RAID arrays?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
rpmbuild
cat /proc/mdstat
27. What directory is used to represent the virtual file system created by the kernel?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
28. What happens if you call the command from question 3 with the -c option after it has already been run?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The four types of DNS servers are master - slave - caching-only - and forwarding.
29. How would you view all Boolean options for the HTTP service?
Enforcing during installation
getsebool -a | grep http
rpmbuild
The lftp command can be used on a client to test FTP server connections.
30. Where are Yum repository config files located?
The mount command lists all currently mounted file systems.
run on any port you'd like (provided that port is available)
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
31. There are four types of DNS servers. Name them.
service sshd statuts
You add your action to the end of the /home/user01/.bashrc file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The rndc utility provides a method for managing the DNS server remotely and securely.
32. What happens to jobs that are scheduled to run while the system is off?
ifconfig
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
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.
33. What are SELinux Booleans?
The user_list file can be used to limit which users have access to the FTP server.
SELinux Booleans provide restrictions to different aspects of a service.
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
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.
34. The at command is used to ____________. The cron service handles reoccurring system jobs.
repquota
The mount command lists all currently mounted file systems.
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.
schedule one-time-only jobs
35. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
36. 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).
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
schedule one-time-only jobs
Use the setgid flag to create the appropriate permissions (chmod 2770).
37. What file is used to maintain custom parameters for the kernel during system boot?
By default - the rndc utility listens on port 953.
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.
browseable option
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
38. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
via the command line
run on any port you'd like (provided that port is available)
39. What are the side effects of shrinking a volume group or logical volume?
support for TCP Wrappers
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.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
40. What two commands are used for package management?
The yum and rpm commands are used for package management.
entering rescue mode and repairing the problem.
support TCP Wrappers
getsebool
41. What does virsh reboot Client04 do?
service dhcpd configtest
support TCP Wrappers
This command reboots virtual guest Client04.
schedule one-time-only jobs
42. What is the /var/lib/nfs/etab file used for?
lvdisplay
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the top command to view CPU and memory usage.
43. What option at the GRUB boot menu can you use to append something to a kernel?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
You can use the authconfig-tui command or the authconfig command.
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.
44. What is a gateway used for on a network?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
getsebool -a | grep http
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.
45. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
entering rescue mode and repairing the problem.
enabled by default
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
46. The ____________ is available for each share.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
By default - Squid runs on port 3128.
The /var/log/audit/audit.log file contains all policy violations.
browseable option
47. 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.
Use the top command to view CPU and memory usage.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The lastlog and faillog commands are used to view user login-related events?
48. 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
49. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Use the ps command to view processes and their CPU usage.
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.
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.
support for TCP Wrappers
50. What is NAT - How is it used?
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 htpasswd command can be used to password-protect a web page.
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.
user's home directory in the /etc/skel directory