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.
The /var/log/audit/audit.log file contains all policy violations.
service sshd statuts
DNS uses port 53.
2. 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...
The lastlog and faillog commands are used to view user login-related events?
The rndc utility provides a method for managing the DNS server remotely and securely.
have the same effect
Using the chcon command - you can change the context of a file to work with Apache.
3. To create a RAID or LVM partition using kickstart
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
By default - Squid runs on port 3128.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
A user's home directory is created under the /home directory.
4. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
getsebool -a | grep http
5. What options with the yum command would you use to remove a package?
The service command is used to start - stop - and manage system services.
You can use the remove or erase options with yum to remove a package.
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.
useradd -c "Jr Admin" George
6. What option is used with both the fdisk and parted commands to display the current partition tables?
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
The print option is used with both the fdisk and parted commands to display the current partition tables.
The lftp command can be used on a client to test FTP server connections.
service sshd statuts
7. The at command is used to ____________. The cron service handles reoccurring system jobs.
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
This chapter described tdbsm and smbpasswd back-end authentication.
schedule one-time-only jobs
8. Runlevel 0 ___________. Runlevel 6 reboots the system.
cat /proc/mdstat
halts the system
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
9. Which file shows you all the client IP addresses?
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
This command reboots virtual guest Client04.
cat /proc/mdstat
10. What is the difference between an A record and a PTR record?
The -t nfs option is used with the mount command to mount NFS resources.
have the same effect
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The lastlog and faillog commands are used to view user login-related events?
11. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
kickstart installations to work
rpcbind service
Use the ps command to view processes and their CPU usage.
The print option is used with both the fdisk and parted commands to display the current partition tables.
12. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
The lftp command can be used on a client to test FTP server connections.
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 authconfig-tui command or the authconfig command.
13. How can you display all virtual guests after they're connected to a hypervisor?
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Use the resize2fs command to grow a file system.
14. What port must be opened on the firewall for DNS?
DNS uses port 53.
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.
choose which mode you'd like it to operate in
Enforcing during installation
15. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The two main config files are master.cf and main.cf.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
16. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
The /var/log/audit/audit.log file contains all policy violations.
LUKS encryption
You can use the remove or erase options with yum to remove a package.
17. How would you go about creating a static route?
SELinux provides enhanced granular security for the Linux operating system.
The tcpdump command is used to monitor network connections on different interfaces.
Use the route command with the add option to create a static route.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
18. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
you have access to the correct packages or repositories.
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 ps command to view processes and their CPU usage.
19. What is NAT - How is it used?
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
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.
20. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
SSH is used for secure remote management of Linux systems.
21. Can you name the two commands that can be used to view the free space on the system?
Enforcing during installation
The du and df commands are used to view available space on the system.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
22. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
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.
The tcpdump command is used to monitor network connections on different interfaces.
entering rescue mode and repairing the problem.
23. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
via the command line
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the ps command to view processes and their CPU usage.
24. What are the five required directories when building RPMS?
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.
By default - the rndc utility listens on port 953.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
This command reboots virtual guest Client04.
25. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
getsebool
used for kickstart and/or network installs
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
26. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
user's home directory in the /etc/skel directory
The two main config files are master.cf and main.cf.
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.
27. Which version of SSH should you use?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
This chapter described tdbsm and smbpasswd back-end authentication.
Version 2 is the latest and most secure version of SSH.
You must open TCP ports 20 and 21 for the FTP server to function properly.
28. Place all files you want added to a _______________ during creation.
29. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
DNS uses port 53.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
30. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
This chapter described tdbsm and smbpasswd back-end authentication.
browseable option
31. What three components are needed to fully automate a kickstart installation?
By default - Squid runs on port 3128.
VNC is used to control a remote desktop session.
The yum and rpm commands are used for package management.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
32. What command can you use to monitor and troubleshoot network connections?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
halts the system
The tcpdump command is used to monitor network connections on different interfaces.
The SMTP service runs on TCP port 110.
33. What option at the GRUB boot menu can you use to append something to a kernel?
You can use the remove or erase options with yum to remove a package.
You add your action to the end of the /home/user01/.bashrc file.
semanage boolean -l
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
34. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
have the same effect
This chapter described tdbsm and smbpasswd back-end authentication.
The NFS service uses TCP port 2049 by default.
35. What is the rndc utility used for?
DNS uses port 53.
useradd -c "Jr Admin" George
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
36. What does the rdnc-confgen command do?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the setgid flag to create the appropriate permissions (chmod 2770).
37. What two commands are used for package management?
The yum and rpm commands are used for package management.
A virtual host is a way of hosting multiple sites using a single IP address.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
run on any port you'd like (provided that port is available)
38. What command do you use to report information on quota usage?
The print option is used with both the fdisk and parted commands to display the current partition tables.
repquota
You can use the remove or erase options with yum to remove a package.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
39. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The smbstatus command shows you currently mounted Samba resources.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
service named configtest
40. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Sendmail
rpmbuild
41. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
42. What is the biggest benefit to using LVM over basic partitions?
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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 htpasswd command can be used to password-protect a web page.
43. What are the three modes in which the rpm command can operate?
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.
The rpm command can operate in install - query - or verify modes.
repquota
The nfsstat command can be used to view NFS statistics.
44. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
choose which mode you'd like it to operate in
45. What command can you use to test the config files before starting the DNS service?
service named configtest
SELinux provides enhanced granular security for the Linux operating system.
defining a %pre section although it is rarely used
DNS uses port 53.
46. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
have the same effect
Network installations can be performed using the HTTP - FTP - and NFS protocols.
47. What command is used to create a user for Samba?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
cat /proc/mdstat
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 smbpasswd command is used to create Samba users.
48. What command can you use to view system processes and their CPU usage?
Use the ps command to view processes and their CPU usage.
chcon
setsebool -P nfs_export_all_rw=1
The DHCP server listens on port 67 by default.
49. What are the side effects of shrinking a volume group or logical volume?
The service command is used to start - stop - and manage system services.
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.
defining a %pre section although it is rarely used
generates errors under Red Hat Enterprise Linux 6
50. What command can you use to create a new SSL certificate?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.