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. 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
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. What command can be used to view the queue for at service jobs?
rpmbuild
atq
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.
setsebool -P nfs_export_all_rw=1
4. What command can you use to view the current ACL on a file?
The three utilities are: route - ping - and nslookup.
The DHCP server listens on port 67 by default.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
getfacl
5. The at command is used to ____________. The cron service handles reoccurring system jobs.
The nfsstat command can be used to view NFS statistics.
schedule one-time-only jobs
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.
The yum and rpm commands are used for package management.
6. A service needs to have _______________ to be able to use it.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
schedule one-time-only jobs
support for TCP Wrappers
7. What is SSH used for?
SSH is used for secure remote management of Linux systems.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The print option is used with both the fdisk and parted commands to display the current partition tables.
8. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
support TCP Wrappers
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
generates errors under Red Hat Enterprise Linux 6
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
9. What command can you use to view NFS statistics?
Typing the mail or mutt command allows you to read mail from the command line.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The nfsstat command can be used to view NFS statistics.
service httpd configtest
10. What critical step must you take after updating the kernel to a newer version?
You must open TCP ports 20 and 21 for the FTP server to function 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 lftp command can be used on a client to test FTP server connections.
service sshd statuts
11. 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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
12. What is the format of the /etc/shadow file?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The dig - host - and ping commands can be used to test DNS server functionality.
useradd -c "Jr Admin" George
13. What is NAT - How is it used?
Use the yum groupinstall command to install multiple packages in a single group at once.
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 nfsstat command can be used to view NFS statistics.
The DHCP server listens on port 67 by default.
14. A slave DNS server provides...
load balancing and redundancy benefits
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the setgid flag to create the appropriate permissions (chmod 2770).
15. How would you go about creating a static route?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Use the route command with the add option to create a static route.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
16. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
alternatives --config mta
Use the setgid flag to create the appropriate permissions (chmod 2770).
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
17. 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
18. What two commands are used for package management?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The yum and rpm commands are used for package management.
choose which mode you'd like it to operate in
19. What client-side command can you use to test your FTP server connection?
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
You can use the remove or erase options with yum to remove a package.
The lftp command can be used on a client to test FTP server connections.
setsebool -P nfs_export_all_rw=1
20. Which version of SSH should you use?
chcon
Version 2 is the latest and most secure version of SSH.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The smbpasswd command is used to create Samba users.
21. What file is used to maintain custom parameters for the kernel during system boot?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
kickstart installations to work
Typing the mail or mutt command allows you to read mail from the command line.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
22. How can you check the currently mounted file systems?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The mount command lists all currently mounted file systems.
23. What command can you use to monitor and troubleshoot network connections?
A user's home directory is created under the /home directory.
The tcpdump command is used to monitor network connections on different interfaces.
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.
24. What option is used to allow anonymous uploads to the FTP server?
Use the route command with the add option to create a static route.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
You can use the authconfig-tui command or the authconfig command.
25. How can you verify the status of the SSH service after the system has booted?
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.
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 sshd statuts
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
26. What is the name of the package used to install an FTP?
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.
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.
browseable option
The vsftpd package is used to install an FTP server.
27. What command can you use to create your own repositories?
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 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.
createrepo
For Apache to run a secure site - the mod_ssl package is required to be installed.
28. What are the two config files for Postfix called?
SELinux provides enhanced granular security for the Linux operating system.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Physical volumes - volume groups - and logical volumes.
The two main config files are master.cf and main.cf.
29. What two ports should be opened on the firewall for the FTP server to function properly?
The yum and rpm commands are used for package management.
setsebool -P nfs_export_all_rw=1
getsebool -a | grep http
You must open TCP ports 20 and 21 for the FTP server to function properly.
30. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
enabled by default
31. What is the biggest benefit to using LVM over basic partitions?
SELinux provides enhanced granular security for the Linux operating system.
chkconfig xinetd --list
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.
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.
32. What is the /var/lib/nfs/etab file used for?
A user's home directory is created under the /home directory.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
SELinux provides enhanced granular security for the Linux operating system.
33. Does a DHCP server allow reserved IP addresses - If so - how?
The yum and rpm commands are used for package management.
repquota
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
setsebool -P nfs_export_all_rw=1
34. What command can you use to change the context of files?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
mkfs.ext4
chcon
DNS uses port 53.
35. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
LUKS encryption
The yum and rpm commands are used for package management.
The TFTP server uses UDP port 69.
36. What protocols are used with Dovecot?
You can use the authconfig-tui command or the authconfig command.
chkconfig xinetd --list
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
getsebool
37. What directory is used to represent the virtual file system created by the kernel?
The three utilities are: route - ping - and nslookup.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
38. What benefit does a web proxy provide to your network?
The -t nfs option is used with the mount command to mount NFS resources.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the yum groupinstall command to install multiple packages in a single group at once.
39. What command can you use to manage system services?
export one or all resources
service sshd statuts
The service command is used to start - stop - and manage system services.
lvdisplay
40. What three components are needed to fully automate a kickstart installation?
setsebool -P nfs_export_all_rw=1
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The -t nfs option is used with the mount command to mount NFS resources.
Use the route command with the add option to create a static route.
41. What two commands are special for dealing with user login events?
you have access to the correct packages or repositories.
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.
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 lastlog and faillog commands are used to view user login-related events?
42. What command and option can you use to enable a service to start on boot?
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
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
generates errors under Red Hat Enterprise Linux 6
The lastlog and faillog commands are used to view user login-related events?
43. What is the main config file for the DHCP service?
Using the chcon command - you can change the context of a file to work with Apache.
The rpm command can operate in install - query - or verify modes.
browseable option
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
44. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Physical volumes - volume groups - and logical volumes.
The yum and rpm commands are used for package management.
atq
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.
45. What command can you use to query information from the kernel about RAID arrays?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
cat /proc/mdstat
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
46. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
SELinux provides enhanced granular security for the Linux operating system.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The htpasswd command can be used to password-protect a web page.
47. What does the partprobe command do?
The user_list file can be used to limit which users have access to the FTP server.
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.
LUKS encryption
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
48. What is the default port that Squid runs on?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
entering rescue mode and repairing the problem.
By default - Squid runs on port 3128.
49. Which log file is used to keep track of policy violations?
user's home directory in the /etc/skel directory
The /var/log/audit/audit.log file contains all policy violations.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
50. 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