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. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
2. 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
3. Most boot issues can be resolved by...
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
rpmbuild
entering rescue mode and repairing the problem.
4. GRUB has three stages. Can you name them?
The dig - host - and ping commands can be used to test DNS server functionality.
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
By default - the rndc utility listens on port 953.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
5. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
amount of RAM
alternatives --config mta
6. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. What is a gateway used for on a network?
You can use the remove or erase options with yum to remove a package.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The htpasswd command can be used to password-protect a web page.
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.
8. What option needs to be used with the mount command to mount an NFS resource?
chcon
setsebool -P nfs_export_all_rw=1
The -t nfs option is used with the mount command to mount NFS resources.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
9. What two commands are used for package management?
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.
DNS uses port 53.
The yum and rpm commands are used for package management.
setsebool -P nfs_export_all_rw=1
10. What command displays your current interfaces and IP address?
ifconfig
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.
kickstart installations to work
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
11. Do you need to write changes to the disk when using the parted command? What about fdisk?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
12. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Use the setgid flag to create the appropriate permissions (chmod 2770).
13. What is the /var/lib/nfs/etab file used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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 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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
14. How can virtual hosts be used?
chcon
Use the ps command to view processes and their CPU usage.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
15. What command is used to create an RPM package?
The vsftpd package is used to install an FTP server.
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
rpmbuild
16. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
The lastlog and faillog commands are used to view user login-related events?
entering rescue mode and repairing the problem.
The rpm command can operate in install - query - or verify modes.
17. What command and option can you use to enable a service to start on boot?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The dig - host - and ping commands can be used to test DNS server functionality.
ifconfig
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
18. 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...
ifconfig
lvdisplay
have the same effect
The four types of DNS servers are master - slave - caching-only - and forwarding.
19. To grow a file system
The du and df commands are used to view available space on the system.
enabled by default
The /etc/fstab file.
Use the resize2fs command to grow a file system.
20. What is a swap? Is it created as a partition or device file?
You can use the remove or erase options with yum to remove a package.
kickstart installations to work
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 have access to the correct packages or repositories.
21. How would you install a group of packages all at a single time?
Use the yum groupinstall command to install multiple packages in a single group at once.
Use the setgid flag to create the appropriate permissions (chmod 2770).
enabled by default
run on any port you'd like (provided that port is available)
22. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
enabled by default
setsebool -P nfs_export_all_rw=1
have the same effect
via the command line
23. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The htpasswd command can be used to password-protect a web page.
atq
24. What commands can you use to add a client machine to an LDAP server?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The rndc utility provides a method for managing the DNS server remotely and securely.
You can use the authconfig-tui command or the authconfig command.
service dhcpd configtest
25. What are the two types of back-end authentication mechanisms discussed in this chapter?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the setgid flag to create the appropriate permissions (chmod 2770).
This chapter described tdbsm and smbpasswd back-end authentication.
The tcpdump command is used to monitor network connections on different interfaces.
26. What command can you use to query information from the kernel about RAID arrays?
By default - the rndc utility listens on port 953.
The TFTP server uses UDP port 69.
The du and df commands are used to view available space on the system.
cat /proc/mdstat
27. What command can you use to get information about logical volumes?
The yum and rpm commands are used for package management.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
lvdisplay
support TCP Wrappers
28. What does the testparm command do?
serve both files and printers to users
The DHCP server listens on port 67 by default.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
choose which mode you'd like it to operate in
29. 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
30. What command and option do you use to view the description of Boolean values?
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 resize2fs command to grow a file system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
semanage boolean -l
31. What is the /etc/vsftpd/user_list file used for?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The user_list file can be used to limit which users have access to the FTP server.
32. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
You add your action to the end of the /home/user01/.bashrc file.
cat /proc/mdstat
The three utilities are: route - ping - and nslookup.
33. What command can you use to view system processes and their CPU usage?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
A virtual host is a way of hosting multiple sites using a single IP address.
The du and df commands are used to view available space on the system.
Use the ps command to view processes and their CPU usage.
34. What port does the DHCP server listen on by default?
service named configtest
The /var/log/audit/audit.log file contains all policy violations.
The DHCP server listens on port 67 by default.
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.
35. What file needs to be edited so that the system will mount a file system at boot time?
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.
By default - Squid runs on port 3128.
The /etc/fstab file.
service sshd statuts
36. Which log file is used to keep track of policy violations?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The vsftpd package is used to install an FTP server.
The /var/log/audit/audit.log file contains all policy violations.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
37. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
alternatives --config mta
support for TCP Wrappers
The print option is used with both the fdisk and parted commands to display the current partition tables.
38. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
Typing the mail or mutt command allows you to read mail from the command line.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
getfacl
load balancing and redundancy benefits
39. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
via the command line
40. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The tcpdump command is used to monitor network connections on different interfaces.
used for kickstart and/or network installs
via the command line
41. What does the rdnc-confgen command do?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
42. 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.
rpmbuild
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
43. What port must be opened on the firewall for DNS?
DNS uses port 53.
halts the system
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.
You can use the remove or erase options with yum to remove a package.
44. What is the xinetd service used for?
A virtual host is a way of hosting multiple sites using a single IP address.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the route command with the add option to create a static route.
45. What port does the Apache web server run on - What about HTTPS?
atq
Apache uses port 80 for HTTP and port 443 for HTTPS.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
getsebool
46. What happens if you call the command from question 3 with the -c option after it has already been run?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf 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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
47. What is a virtual host?
used for kickstart and/or network installs
The DHCP server listens on port 67 by default.
A virtual host is a way of hosting multiple sites using a single IP address.
kickstart installations to work
48. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
mkfs.ext4
Physical volumes - volume groups - and logical volumes.
lvdisplay
49. What command can you use to create a new SSL certificate?
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
chkconfig sshd off
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
50. What is the superblock used for?
setsebool -P nfs_export_all_rw=1
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The -t nfs option is used with the mount command to mount NFS resources.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.