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. 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.
useradd -c "Jr Admin" George
The anonymous_enable=YES option in the main config file allows anonymous uploads.
export one or all resources
2. What command and option can you use to enable a service to start on boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
3. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
generates errors under Red Hat Enterprise Linux 6
Enforcing during installation
4. What are the three different types of RAID described in this chapter?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
lvdisplay
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
via the command line
5. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
you have access to the correct packages or repositories.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
lvdisplay
6. Where are Yum repository config files located?
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
chkconfig—list
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
7. What does it mean if you ping a host and you receive the response Destination Unreachable?
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.
lvdisplay
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
8. What three commands can you use to help verify that the DNS server is functioning properly?
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The dig - host - and ping commands can be used to test DNS server functionality.
9. What option would you use to query an installed package using the rpm command?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
10. What command can you use to view the current ACL on a file?
getfacl
amount of RAM
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
enabled by default
11. What file needs to be edited so that the system will mount a file system at boot time?
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/fstab file.
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.
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.
12. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
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 two main config files are master.cf and main.cf.
Sendmail
13. To create a RAID or LVM partition using kickstart
Typing the mail or mutt command allows you to read mail from the command line.
The ping command can be used to verify connectivity to another host.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
14. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The two main config files are master.cf and main.cf.
via the command line
The lastlog and faillog commands are used to view user login-related events?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
15. What is the superblock used for?
SELinux Booleans provide restrictions to different aspects of a service.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
setsebool -P nfs_export_all_rw=1
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
16. What is the /etc/vsftpd/user_list file used for?
Use the resize2fs command to grow a file system.
The mount command lists all currently mounted file systems.
The service command is used to start - stop - and manage system services.
The user_list file can be used to limit which users have access to the FTP server.
17. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
service sshd statuts
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 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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
18. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The smbpasswd command is used to create Samba users.
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
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.
19. What are SELinux Booleans?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The SMTP service runs on TCP port 110.
mkfs.ext4
SELinux Booleans provide restrictions to different aspects of a service.
20. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
The vsftpd package is used to install an FTP server.
serve both files and printers to users
getfacl
21. What option is used with both the fdisk and parted commands to display the current partition tables?
The rndc utility provides a method for managing the DNS server remotely and securely.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
A user's home directory is created under the /home directory.
The print option is used with both the fdisk and parted commands to display the current partition tables.
22. What port does the DHCP server listen on by default?
The smbstatus command shows you currently mounted Samba resources.
The -t nfs option is used with the mount command to mount NFS resources.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The DHCP server listens on port 67 by default.
23. What command can be used to view the queue for at service jobs?
The DHCP server listens on port 67 by default.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
atq
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
24. Which log file is used to keep track of policy violations?
chcon
The /var/log/audit/audit.log file contains all policy violations.
The dig - host - and ping commands can be used to test DNS server functionality.
chkconfig—list
25. Through its main config file - SSH can be configured to...
26. What command can you use to change the context of files?
user's home directory in the /etc/skel directory
chcon
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
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.
27. To export directories as resources - what file needs to be edited?
28. The ____________ is available for each share.
The du and df commands are used to view available space on the system.
browseable option
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The /var/log/audit/audit.log file contains all policy violations.
29. What is the /etc/hosts file used for?
30. What two commands are used for package management?
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 yum and rpm commands are used for package management.
defining a %pre section although it is rarely used
VNC is used to control a remote desktop session.
31. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
Typing the mail or mutt command allows you to read mail from the command line.
You add your action to the end of the /home/user01/.bashrc 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.
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.
32. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
kickstart installations to work
rpcbind service
run on any port you'd like (provided that port is available)
33. What does the testparm command do?
By default - Squid runs on port 3128.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
34. What command can you use to test the config files before starting the DNS service?
The smbpasswd command is used to create Samba users.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
service named configtest
lvdisplay
35. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
service dhcpd configtest
36. What is the benefit to using centralized authentication?
37. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The -t nfs option is used with the mount command to mount NFS resources.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
38. What is the difference between an A record and a PTR record?
chcon
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
rpmbuild
39. 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/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
semanage boolean -l
load balancing and redundancy benefits
40. What command can you use to manage system services?
useradd -c "Jr Admin" George
The service command is used to start - stop - and manage system services.
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.
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.
41. What are the three items that make up LVM?
defining a %pre section although it is rarely used
Physical volumes - volume groups - and logical volumes.
run on any port you'd like (provided that port is available)
getfacl
42. What commands can you use to add a client machine to an LDAP server?
Use the top command to view CPU and memory usage.
You can use the authconfig-tui command or the authconfig command.
browseable option
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.
43. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
enabled by default
The service command is used to start - stop - and manage system services.
The du and df commands are used to view available space on the system.
44. What command can you use to get information about logical volumes?
lvdisplay
The htpasswd command can be used to password-protect a web page.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
schedule one-time-only jobs
45. What is the difference between an ext2 and ext3 file system?
46. What command do you use to report information on quota usage?
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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.
repquota
47. By default - what is the path to a user's home directory?
48. What three protocols can you use to perform network installations?
run on any port you'd like (provided that port is available)
Network installations can be performed using the HTTP - FTP - and NFS protocols.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
49. What three components are needed to fully automate a kickstart installation?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The ping command can be used to verify connectivity to another host.
The service command is used to start - stop - and manage system services.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
50. Samba servers can...
choose which mode you'd like it to operate in
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
run on any port you'd like (provided that port is available)
serve both files and printers to users