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 is used to create an RPM package?
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.
rpmbuild
The dig - host - and ping commands can be used to test DNS server functionality.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
2. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
You must open TCP ports 20 and 21 for the FTP server to function properly.
By default - the rndc utility listens on port 953.
The tcpdump command is used to monitor network connections on different interfaces.
3. What is SSH used for?
The yum and rpm commands are used for package management.
Enforcing during installation
chkconfig sshd off
SSH is used for secure remote management of Linux systems.
4. What command can you use to manage system services?
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The service command is used to start - stop - and manage system services.
LUKS encryption
5. 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.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
used for kickstart and/or network installs
The NFS service uses TCP port 2049 by default.
6. What are the five required directories when building RPMS?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
getfacl
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
7. Can you name the two commands that can be used to view the free space on the system?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the yum groupinstall command to install multiple packages in a single group at once.
The du and df commands are used to view available space on the system.
The service command is used to start - stop - and manage system services.
8. 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
9. What command is used to create a user for Samba?
service sshd statuts
A virtual host is a way of hosting multiple sites using a single IP address.
browseable option
The smbpasswd command is used to create Samba users.
10. Before you work with ACLs - what do you need to do to the file system?
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.
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
11. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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 setgid flag to create the appropriate permissions (chmod 2770).
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
12. What file is used to maintain custom parameters for the kernel during system boot?
A user's home directory is created under the /home directory.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
support TCP Wrappers
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
13. What are the three different types of RAID described in this chapter?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The yum and rpm commands are used for package management.
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.
14. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
The four types of DNS servers are master - slave - caching-only - and forwarding.
used for kickstart and/or network installs
halts the system
15. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
You must open TCP ports 20 and 21 for the FTP server to function properly.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
service named configtest
16. What does the testparm command do?
ifconfig
load balancing and redundancy benefits
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
17. What option needs to be used with the mount command to mount an NFS resource?
This chapter described tdbsm and smbpasswd back-end authentication.
The DHCP server listens on port 67 by default.
You add your action to the end of the /home/user01/.bashrc file.
The -t nfs option is used with the mount command to mount NFS resources.
18. How do you run a command with elevated privileges?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Enforcing during installation
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
19. What is the /etc/vsftpd/user_list file used for?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /etc/fstab file.
SELinux Booleans provide restrictions to different aspects of a service.
The user_list file can be used to limit which users have access to the FTP server.
20. Most boot issues can be resolved by...
The two main config files are master.cf and main.cf.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
chkconfig sshd off
entering rescue mode and repairing the problem.
21. The ____________ is available for each share.
DNS uses port 53.
used for kickstart and/or network installs
chkconfig sshd off
browseable option
22. What port does NFS use by default?
The /var/log/audit/audit.log file contains all policy violations.
The DHCP server listens on port 67 by default.
The NFS service uses TCP port 2049 by default.
Apache uses port 80 for HTTP and port 443 for HTTPS.
23. What is a virtual host?
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.
A virtual host is a way of hosting multiple sites using a single IP address.
choose which mode you'd like it to operate in
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
24. What does the rdnc-confgen command do?
The htpasswd command can be used to password-protect a web page.
choose which mode you'd like it to operate in
The lastlog and faillog commands are used to view user login-related events?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
25. 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
26. What command can you use to change the context of files?
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
chcon
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
27. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating 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.
you have access to the correct packages or repositories.
DNS uses port 53.
28. How would you view all Boolean options for the HTTP service?
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.
The TFTP server uses UDP port 69.
getsebool -a | grep http
serve both files and printers to users
29. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
have the same effect
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.
Typing the mail or mutt command allows you to read mail from the command line.
The three utilities are: route - ping - and nslookup.
30. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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
Use the route command with the add option to create a static route.
Enforcing during installation
31. What is the name of the package used to install an FTP?
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The vsftpd package is used to install an FTP server.
browseable option
32. What does virsh reboot Client04 do?
The htpasswd command can be used to password-protect a web page.
You must open TCP ports 20 and 21 for the FTP server to function properly.
This command reboots virtual guest Client04.
user's home directory in the /etc/skel directory
33. Red Hat Enterprise Linux 6 is the only version that officially supports _______
createrepo
By defining a %post section - you can run scripts after a kickstart installation is complete.
LUKS encryption
defining a %pre section although it is rarely used
34. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
via the command line
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
35. What is the default port that Squid runs on?
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
By default - Squid runs on port 3128.
The smbstatus command shows you currently mounted Samba resources.
The mount command lists all currently mounted file systems.
36. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
37. What is the xinetd service used for?
A virtual host is a way of hosting multiple sites using a single IP address.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
load balancing and redundancy benefits
38. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
amount of RAM
used for kickstart and/or network installs
SELinux provides enhanced granular security for the Linux operating system.
39. What command can be used to easily list all the options in the FTP main config file?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
40. What is the format of the /etc/shadow file?
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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The nfsstat command can be used to view NFS statistics.
atq
41. What command can you use to get information about logical volumes?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
service httpd configtest
lvdisplay
42. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
atq
Using the chcon command - you can change the context of a file to work with Apache.
43. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
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.
Sendmail
Enforcing during installation
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
44. What command can you use to query Boolean values?
browseable option
getsebool
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
service sshd statuts
45. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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
support for TCP Wrappers
Network installations can be performed using the HTTP - FTP - and NFS protocols.
46. What two commands are used for package management?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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 yum and rpm commands are used for package management.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
47. Which version of SSH should you use?
defining a %pre section although it is rarely used
semanage boolean -l
Version 2 is the latest and most secure version of SSH.
The user_list file can be used to limit which users have access to the FTP server.
48. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
service dhcpd configtest
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
load balancing and redundancy benefits
49. 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.
Use the top command to view CPU and memory usage.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
50. What command is used to show all services being controlled by the xinetd daemon?
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
chkconfig xinetd --list