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 a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The lastlog and faillog commands are used to view user login-related events?
2. What command can you use to create a file system?
The du and df commands are used to view available space on the system.
getfacl
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
mkfs.ext4
3. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. What is the virsh command used for?
The virsh command is used to manage virtual guests.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
setsebool -P nfs_export_all_rw=1
LUKS encryption
5. The exportfs command is used to...
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
export one or all resources
6. The package selection screen allows you to install any software you want during the installation process as long as...
Use the setgid flag to create the appropriate permissions (chmod 2770).
you have access to the correct packages or repositories.
You can use the authconfig-tui command or the authconfig command.
The htpasswd command can be used to password-protect a web page.
7. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
8. What three components are needed to fully automate a kickstart installation?
For Apache to run a secure site - the mod_ssl package is required to be installed.
Version 2 is the latest and most secure version of SSH.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The virsh command is used to manage virtual guests.
9. What command can you use to get information about logical volumes?
The three utilities are: route - ping - and nslookup.
The DHCP server listens on port 67 by default.
getsebool
lvdisplay
10. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
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
VNC is used to control a remote desktop session.
The -t nfs option is used with the mount command to mount NFS resources.
11. 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
12. What command (and options) can be used to create a user named George with the description "Jr Admin"?
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.
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.
useradd -c "Jr Admin" George
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
13. What critical step must you take after updating the kernel to a newer version?
getfacl
The virsh command is used to manage virtual guests.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
14. What are the three modes in which the rpm command can operate?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
service dhcpd configtest
The rpm command can operate in install - query - or verify modes.
The virsh command is used to manage virtual guests.
15. What command can you use to query Boolean values?
defining a %pre section although it is rarely used
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.
getsebool
load balancing and redundancy benefits
16. 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
17. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The smbstatus command shows you currently mounted Samba resources.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
18. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
generates errors under Red Hat Enterprise Linux 6
used for kickstart and/or network installs
The lftp command can be used on a client to test FTP server connections.
19. Most boot issues can be resolved by...
createrepo
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
entering rescue mode and repairing the problem.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
20. How do you run a command with elevated privileges?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
21. What command can be used to view the queue for at service jobs?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The nfsstat command can be used to view NFS statistics.
atq
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.
22. What happens to jobs that are scheduled to run while the system is off?
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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 virsh command is used to manage virtual guests.
23. What is NAT - How is it used?
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.
SELinux provides enhanced granular security for the Linux operating system.
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.
browseable option
24. The firewall service is...
The DHCP server listens on port 67 by default.
The service command is used to start - stop - and manage system services.
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
enabled by default
25. How can you change the security context of a directory to work with Apache?
The user_list file can be used to limit which users have access to the FTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
getfacl
Using the chcon command - you can change the context of a file to work with Apache.
26. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The virsh command is used to manage virtual guests.
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.
27. What is a swap? Is it created as a partition or device file?
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.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
28. 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
29. What command can you use to validate the syntax of the Apache config file?
Physical volumes - volume groups - and logical volumes.
The tcpdump command is used to monitor network connections on different interfaces.
service httpd configtest
getfacl
30. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
Version 2 is the latest and most secure version of SSH.
The print option is used with both the fdisk and parted commands to display the current partition tables.
For Apache to run a secure site - the mod_ssl package is required to be installed.
31. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
Use the top command to view CPU and memory usage.
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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
32. To grow a file system
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the resize2fs command to grow a file system.
The du and df commands are used to view available space on the system.
chkconfig xinetd --list
33. What does it mean if you ping a host and you receive the response Destination Unreachable?
The smbstatus command shows you currently mounted Samba resources.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the route command with the add option to create a static route.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
34. What command can you use to view mounted Samba shares?
Use the setgid flag to create the appropriate permissions (chmod 2770).
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
via the command line
The smbstatus command shows you currently mounted Samba resources.
35. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
36. What command can you use to change the context of files?
chcon
This chapter described tdbsm and smbpasswd back-end authentication.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
37. What option is used with both the fdisk and parted commands to display the current partition tables?
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.
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.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By default - the rndc utility listens on port 953.
38. A slave DNS server provides...
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
LUKS encryption
load balancing and redundancy benefits
39. What is the top command used for?
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.
You can use the authconfig-tui command or the authconfig command.
Use the top command to view CPU and memory usage.
repquota
40. What two commands are used for package management?
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 SMTP service runs on TCP port 110.
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.
41. What happens if you call the command from question 3 with the -c option after it has already been run?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
generates errors under Red Hat Enterprise Linux 6
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.
42. A PXE server eases the automation process but isn't required for...
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
kickstart installations to work
Enforcing during installation
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.
43. Which file shows you all the client IP addresses?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The DHCP server listens on port 67 by default.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
44. 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.
atq
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
createrepo
45. What is the default port that Squid runs on?
getsebool
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
By default - Squid runs on port 3128.
46. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Apache uses port 80 for HTTP and port 443 for HTTPS.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The smbpasswd command is used to create Samba users.
47. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
ifconfig
support TCP Wrappers
rpmbuild
49. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The /etc/fstab file.
halts the system
50. 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