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 directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
By default - Squid runs on port 3128.
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.
user's home directory in the /etc/skel directory
2. The firewall service is...
enabled by default
The /var/log/audit/audit.log file contains all policy violations.
Enforcing during installation
chkconfig sshd off
3. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
lvdisplay
setsebool -P nfs_export_all_rw=1
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
4. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
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.
Use the top command to view CPU and memory usage.
The print option is used with both the fdisk and parted commands to display the current partition tables.
5. What option is used with both the fdisk and parted commands to display the current partition tables?
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.
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 print option is used with both the fdisk and parted commands to display the current partition tables.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
6. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
This chapter described tdbsm and smbpasswd back-end authentication.
The smbstatus command shows you currently mounted Samba resources.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
7. What is the main config file for the DHCP service?
The NFS service uses TCP port 2049 by default.
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
you have access to the correct packages or repositories.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
8. What option would you use to query an installed package using the rpm command?
By default - the rndc utility listens on port 953.
The smbpasswd command is used to create Samba users.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
9. There are four types of DNS servers. Name them.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
10. You must dictate the ____________ you want allocated to your virtual machine when you create it.
Enforcing during installation
SELinux provides enhanced granular security for the Linux operating system.
This command reboots virtual guest Client04.
amount of RAM
11. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
The -t nfs option is used with the mount command to mount NFS resources.
The NFS service uses TCP port 2049 by default.
For Apache to run a secure site - the mod_ssl package is required to be installed.
12. What command is used to show all services being controlled by the xinetd daemon?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
cat /proc/mdstat
chkconfig xinetd --list
rpmbuild
13. A slave DNS server provides...
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
load balancing and redundancy benefits
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /var/log/audit/audit.log file contains all policy violations.
14. What is a virtual host?
For Apache to run a secure site - the mod_ssl package is required to be installed.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
A virtual host is a way of hosting multiple sites using a single IP address.
Use the top command to view CPU and memory usage.
15. Can you put your /boot partition on a RAID 5 array?
used for kickstart and/or network installs
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the 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.
16. What are the two types of back-end authentication mechanisms discussed in this chapter?
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
browseable option
This chapter described tdbsm and smbpasswd back-end authentication.
17. What command can you use to change the context of files?
Use the route command with the add option to create a static route.
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.
chcon
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
18. What does it mean if you ping a host and you receive the response Destination Unreachable?
export one or all resources
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
Use the top command to view CPU and memory usage.
19. What command is used to create a user for Samba?
halts the system
The /etc/fstab file.
user's home directory in the /etc/skel directory
The smbpasswd command is used to create Samba users.
20. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. 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
22. How would you install a group of packages all at a single time?
The tcpdump command is used to monitor network connections on different interfaces.
entering rescue mode and repairing the problem.
Use the yum groupinstall command to install multiple packages in a single group at once.
The four types of DNS servers are master - slave - caching-only - and forwarding.
23. What file needs to be edited so that the system will mount a file system at boot time?
This chapter described tdbsm and smbpasswd back-end authentication.
The /etc/fstab file.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
DNS uses port 53.
24. It is possible to run scripts before a kickstart installation. This is done by...
By default - the rndc utility listens on port 953.
defining a %pre section although it is rarely used
Use the ps command to view processes and their CPU usage.
The four types of DNS servers are master - slave - caching-only - and forwarding.
25. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
getsebool -a | grep http
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The service command is used to start - stop - and manage system services.
The three utilities are: route - ping - and nslookup.
26. What option is used to allow anonymous uploads to the FTP server?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
VNC is used to control a remote desktop session.
setsebool -P nfs_export_all_rw=1
27. How would you go about creating a static route?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Use the route command with the add option to create a static route.
The smbstatus command shows you currently mounted Samba resources.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
28. What file is used to maintain custom parameters for the kernel during system boot?
DNS uses port 53.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /etc/fstab file.
29. What command can you use to create a file system?
createrepo
mkfs.ext4
load balancing and redundancy benefits
You add your action to the end of the /home/user01/.bashrc file.
30. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
Use the ps command to view processes and their CPU usage.
via the command line
The smbstatus command shows you currently mounted Samba resources.
31. A service needs to have _______________ to be able to use it.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
support for TCP Wrappers
halts the system
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
32. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
Using the chcon command - you can change the context of a file to work with Apache.
You add your action to the end of the /home/user01/.bashrc file.
By default - the rndc utility listens on port 953.
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
33. How can you verify the status of the SSH service after the system has booted?
The vsftpd package is used to install an FTP server.
service sshd statuts
getsebool -a | grep http
The three utilities are: route - ping - and nslookup.
34. Which remote management service is installed by default?Can you name the port that it uses?
SSH is used for secure remote management of Linux systems.
Use the top command to view CPU and memory usage.
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 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.
35. What three protocols can you use to perform network installations?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
have the same effect
36. What command would you use to create a group - to add the user George to the group?
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.
The htpasswd command can be used to password-protect a web page.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Physical volumes - volume groups - and logical volumes.
37. What command can you use to manage system services?
chkconfig xinetd --list
serve both files and printers to users
The service command is used to start - stop - and manage system services.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
38. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
The rpm command can operate in install - query - or verify modes.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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
39. What command can you use to view NFS statistics?
Use the setgid flag to create the appropriate permissions (chmod 2770).
rpmbuild
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The nfsstat command can be used to view NFS statistics.
40. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
Use the resize2fs command to grow a file system.
The htpasswd command can be used to password-protect a web page.
Use the yum groupinstall command to install multiple packages in a single group at once.
41. What is the /var/lib/nfs/etab file used for?
kickstart installations to work
DNS uses port 53.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
42. What three commands can you use to help verify that the DNS server is functioning properly?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The dig - host - and ping commands can be used to test DNS server functionality.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
43. Samba servers can...
serve both files and printers to users
halts the system
The DHCP server listens on port 67 by default.
amount of RAM
44. What port must be opened on the firewall for DNS?
halts the system
DNS uses port 53.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
SELinux provides enhanced granular security for the Linux operating system.
45. How would you view all Boolean options for the HTTP service?
atq
SELinux Booleans provide restrictions to different aspects of a service.
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
getsebool -a | grep http
46. How can virtual hosts be used?
used for kickstart and/or network installs
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 chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
You add your action to the end of the /home/user01/.bashrc file.
47. A PXE server eases the automation process but isn't required for...
DNS uses port 53.
cat /proc/mdstat
kickstart installations to work
enabled by default
48. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
49. Which log file is used to keep track of policy violations?
SSH is used for secure remote management of Linux systems.
The /var/log/audit/audit.log file contains all policy violations.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
50. What are the side effects of shrinking a volume group or logical volume?
Use the top command to view CPU and memory usage.
Enforcing during installation
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).