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. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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 -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
Use the top command to view CPU and memory usage.
have the same effect
2. What command-line program can you use to check your mail?
The -t nfs option is used with the mount command to mount NFS resources.
Typing the mail or mutt command allows you to read mail from the command line.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Version 2 is the latest and most secure version of SSH.
3. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
A virtual host is a way of hosting multiple sites using a single IP address.
cat /proc/mdstat
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
4. Can you put your /boot partition on a RAID 5 array?
Use the yum groupinstall command to install multiple packages in a single group at once.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The vsftpd package is used to install an FTP server.
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.
5. There are four types of DNS servers. Name them.
Use the ps command to view processes and their CPU usage.
Sendmail
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.
6. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /etc/fstab file.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
7. 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
8. How would you go about creating a static route?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Use the route command with the add option to create a static route.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
9. What protocols are used with Dovecot?
The SMTP service runs on TCP port 110.
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
10. What command can you use to test the config files before starting the DNS service?
schedule one-time-only jobs
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
via the command line
service named configtest
11. Where are Yum repository config files located?
alternatives --config mta
The rpm command can operate in install - query - or verify modes.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
12. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
SELinux Booleans provide restrictions to different aspects of a service.
via the command line
The nfsstat command can be used to view NFS statistics.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
13. Can you name three utilities that can be used for network or DNS client troubleshooting?
The three utilities are: route - ping - and nslookup.
semanage boolean -l
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.
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
14. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. What command do you use to change the permissions on a file or directory - To change ownership?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
entering rescue mode and repairing the problem.
The -t nfs option is used with the mount command to mount NFS resources.
16. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
service named configtest
enabled by default
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.
17. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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
The dig - host - and ping commands can be used to test DNS server functionality.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
19. What client-side command can you use to test your FTP server connection?
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 lftp command can be used on a client to test FTP server connections.
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.
The /var/log/audit/audit.log file contains all policy violations.
20. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
getsebool
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
21. What command can you use to check the config file of the DHCP server?
chcon
generates errors under Red Hat Enterprise Linux 6
service dhcpd configtest
SELinux provides enhanced granular security for the Linux operating system.
22. What command can you use to test connectivity to another host?
chkconfig—list
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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 ping command can be used to verify connectivity to another host.
23. What command can you use to get information about logical volumes?
By default - the rndc utility listens on port 953.
Use the setgid flag to create the appropriate permissions (chmod 2770).
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
lvdisplay
24. What is NAT - How is it used?
The TFTP server uses UDP port 69.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
service httpd configtest
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.
25. What happens if you call the command from question 3 with the -c option after it has already been run?
SSH is used for secure remote management of Linux systems.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The yum and rpm commands are used for package management.
The user_list file can be used to limit which users have access to the FTP server.
26. What command can you use to create your own repositories?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
This command reboots virtual guest Client04.
createrepo
service sshd statuts
27. What critical step must you take after updating the kernel to a newer version?
Use the route command with the add option to create a static route.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The du and df commands are used to view available space on the system.
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.
28. SSH does...
support TCP Wrappers
via the command line
The du and df commands are used to view available space on the system.
The dig - host - and ping commands can be used to test DNS server functionality.
29. What command can you use to view the current ACL on a file?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The du and df commands are used to view available space on the system.
getfacl
30. What does the partprobe command do?
The ping command can be used to verify connectivity to another host.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
LUKS encryption
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 command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
VNC is used to control a remote desktop session.
used for kickstart and/or network installs
alternatives --config mta
32. What is the biggest benefit to using LVM over basic partitions?
You add your action to the end of the /home/user01/.bashrc file.
Physical volumes - volume groups - and logical volumes.
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
33. How would you install a group of packages all at a single time?
The lftp command can be used on a client to test FTP server connections.
Use the yum groupinstall command to install multiple packages in a single group at once.
createrepo
support for TCP Wrappers
34. How can virtual hosts be used?
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.
LUKS encryption
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
35. The ____________ is available for each share.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
browseable option
The /var/log/audit/audit.log file contains all policy violations.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
36. Which version of SSH should you use?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Version 2 is the latest and most secure version of SSH.
getsebool -a | grep http
37. What is a swap? Is it created as a partition or device file?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The NFS service uses TCP port 2049 by default.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
38. What three commands can you use to help verify that the DNS server is functioning properly?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
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.
39. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
alternatives --config mta
Typing the mail or mutt command allows you to read mail from the command line.
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.
Sendmail
40. The exportfs command is used to...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
export one or all resources
You can use the authconfig-tui command or the authconfig command.
41. 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
42. What port does the SMTP service run on?
You add your action to the end of the /home/user01/.bashrc file.
By default - Squid runs on port 3128.
The rndc utility provides a method for managing the DNS server remotely and securely.
The SMTP service runs on TCP port 110.
43. What port does the DHCP server listen on by default?
The rpm command can operate in install - query - or verify modes.
The smbpasswd command is used to create Samba users.
The DHCP server listens on port 67 by default.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
44. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The -t nfs option is used with the mount command to mount NFS resources.
chkconfig sshd off
45. Are additional packages besides httpd required for a secure website - If so - what are they?
A user's home directory is created under the /home directory.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The rpm command can operate in install - query - or verify modes.
46. How can you verify the status of the SSH service after the system has booted?
You can use the remove or erase options with yum to remove a package.
used for kickstart and/or network installs
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.
service sshd statuts
47. What command would you use to create a group - to add the user George to the group?
enabled by default
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> 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.
48. Samba servers can...
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.
serve both files and printers to users
The /etc/fstab file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
49. What command can you use to query Boolean values?
The lastlog and faillog commands are used to view user login-related events?
Sendmail
defining a %pre section although it is rarely used
getsebool
50. What file needs to be edited so that the system will mount a file system at boot time?
The SMTP service runs on TCP port 110.
Use the top command to view CPU and memory usage.
The /etc/fstab file.
cat /proc/mdstat