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 port does the DHCP server listen on by default?
The nfsstat command can be used to view NFS statistics.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The DHCP server listens on port 67 by default.
support TCP Wrappers
2. 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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
amount of RAM
For Apache to run a secure site - the mod_ssl package is required to be installed.
3. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
chkconfig sshd off
For Apache to run a secure site - the mod_ssl package is required to be installed.
chcon
rpcbind service
4. What command can be used to view the queue for at service jobs?
kickstart installations to work
generates errors under Red Hat Enterprise Linux 6
atq
Using the chcon command - you can change the context of a file to work with Apache.
5. To create a RAID or LVM partition using kickstart
cat /proc/mdstat
getsebool -a | grep http
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The lftp command can be used on a client to test FTP server connections.
6. What command displays your current interfaces and IP address?
VNC is used to control a remote desktop session.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
ifconfig
7. 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
8. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The smbstatus command shows you currently mounted Samba resources.
generates errors under Red Hat Enterprise Linux 6
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.
9. Which log file is used to keep track of policy violations?
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.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
The /var/log/audit/audit.log file contains all policy violations.
10. What command can you use to create your own repositories?
entering rescue mode and repairing the problem.
The smbpasswd command is used to create Samba users.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
createrepo
11. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The lftp command can be used on a client to test FTP server connections.
The TFTP server uses UDP port 69.
amount of RAM
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
12. How would you disable SELinux protection for NFS - allowing shares to be read/write?
chkconfig—list
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
setsebool -P nfs_export_all_rw=1
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
13. What is the rndc utility used for?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The two main config files are master.cf and main.cf.
The rndc utility provides a method for managing the DNS server remotely and securely.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
14. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
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.
Sendmail
For Apache to run a secure site - the mod_ssl package is required to be installed.
15. What benefit does a web proxy provide to your network?
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
By default - the rndc utility listens on port 953.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
16. What is a virtual host?
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.
mkfs.ext4
The print option is used with both the fdisk and parted commands to display the current partition tables.
A virtual host is a way of hosting multiple sites using a single IP address.
17. Where are Yum repository config files located?
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.
SELinux Booleans provide restrictions to different aspects of a service.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
18. The exportfs command is used to...
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
export one or all resources
SELinux provides enhanced granular security for the Linux operating system.
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.
19. What command can you use to create a password-protected page?
createrepo
The htpasswd command can be used to password-protect a web page.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
lvdisplay
20. GRUB has three stages. Can you name them?
You can use the authconfig-tui command or the authconfig command.
Stage 1: During this stage - the primary bootloader is read into memory by the BIOS from the MBR. Stage 1.5: During this stage - the bootloader is read into memory by the stage 1 bootloader (only if necessary). Stage 2: During this stage - the bootlo
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
kickstart installations to work
21. What port must be opened on the firewall for DNS?
service named configtest
The nfsstat command can be used to view NFS statistics.
This command reboots virtual guest Client04.
DNS uses port 53.
22. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
A user's home directory is created under the /home directory.
By default - the rndc utility listens on port 953.
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.
23. What three protocols can you use to perform network installations?
service dhcpd configtest
This chapter described tdbsm and smbpasswd back-end authentication.
The smbpasswd command is used to create Samba users.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
24. How can you verify the status of the SSH service after the system has booted?
getsebool
This command reboots virtual guest Client04.
service sshd statuts
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.
25. How do you run a command with elevated privileges?
The tcpdump command is used to monitor network connections on different interfaces.
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
26. Do you need to write changes to the disk when using the parted command? What about fdisk?
semanage boolean -l
The mount command lists all currently mounted file systems.
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.
By default - Squid runs on port 3128.
27. A service needs to have _______________ to be able to use it.
Physical volumes - volume groups - and logical volumes.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
support for TCP Wrappers
Use the setgid flag to create the appropriate permissions (chmod 2770).
28. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
The smbpasswd command is used to create Samba users.
choose which mode you'd like it to operate in
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.
alternatives --config mta
29. What is the name of the package that allows you to install VNC?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
useradd -c "Jr Admin" George
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
30. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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).
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
31. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Enforcing during installation
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
32. What is the biggest benefit to using LVM over basic partitions?
DNS uses port 53.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
getsebool -a | grep http
33. What file needs to be edited so that the system will mount a file system at boot time?
schedule one-time-only jobs
The /etc/fstab file.
The two main config files are master.cf and main.cf.
service dhcpd configtest
34. What is a swap? Is it created as a partition or device file?
support for TCP Wrappers
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 -t nfs option is used with the mount command to mount NFS resources.
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.
35. What port does NFS use by default?
Use the yum groupinstall command to install multiple packages in a single group at once.
The NFS service uses TCP port 2049 by default.
have the same effect
export one or all resources
36. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
run on any port you'd like (provided that port is available)
37. What command can you use to test connectivity to another host?
export one or all resources
For Apache to run a secure site - the mod_ssl package is required to be installed.
The ping command can be used to verify connectivity to another host.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
38. A slave DNS server provides...
chkconfig sshd off
lvdisplay
load balancing and redundancy benefits
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
39. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
service sshd statuts
You add your action to the end of the /home/user01/.bashrc file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
40. What command can you use to query information from the kernel about RAID arrays?
entering rescue mode and repairing the problem.
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 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.
cat /proc/mdstat
41. To grow a file system
Use the resize2fs command to grow a file system.
LUKS encryption
The NFS service uses TCP port 2049 by default.
The htpasswd command can be used to password-protect a web page.
42. Before you work with quotas - what do you need to do to the file system?
have the same effect
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
you have access to the correct packages or repositories.
chcon
43. What command disables the SSH service from running when the system boots?
Use the resize2fs command to grow a file system.
The three utilities are: route - ping - and nslookup.
chkconfig sshd off
The -t nfs option is used with the mount command to mount NFS resources.
44. What three commands can you use to help verify that the DNS server is functioning properly?
service sshd statuts
Sendmail
cat /proc/mdstat
The dig - host - and ping commands can be used to test DNS server functionality.
45. Does a DHCP server allow reserved IP addresses - If so - how?
amount of RAM
chkconfig—list
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
46. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
via the command line
amount of RAM
useradd -c "Jr Admin" George
47. What command can you use to query Boolean values?
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.
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.
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.
getsebool
48. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
support for TCP Wrappers
49. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
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.
service httpd configtest
50. What option is used to allow anonymous uploads to the FTP server?
The smbstatus command shows you currently mounted Samba resources.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.