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 command can you use to get information about logical volumes?
The tcpdump command is used to monitor network connections on different interfaces.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
lvdisplay
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
2. GRUB has three stages. Can you name them?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
atq
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
3. What commands can you use to add a client machine to an LDAP server?
Use the route command with the add option to create a static route.
By default - the rndc utility listens on port 953.
You can use the authconfig-tui command or the authconfig command.
SELinux Booleans provide restrictions to different aspects of a service.
4. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /etc/fstab file.
getfacl
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
5. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
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.
chkconfig sshd off
This chapter described tdbsm and smbpasswd back-end authentication.
6. The at command is used to ____________. The cron service handles reoccurring system jobs.
alternatives --config mta
load balancing and redundancy benefits
schedule one-time-only jobs
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
7. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
Use the ps command to view 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.
enabled by default
8. Where are Yum repository config files located?
via the command line
chkconfig—list
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
9. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
amount of RAM
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Enforcing during installation
10. How can you change the security context of a directory to work with Apache?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the chcon command - you can change the context of a file to work with Apache.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf 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.
11. How can you check the currently mounted file systems?
This chapter described tdbsm and smbpasswd back-end authentication.
The mount command lists all currently mounted file systems.
The ping command can be used to verify connectivity to another host.
The lftp command can be used on a client to test FTP server connections.
12. What are the side effects of shrinking a volume group or logical volume?
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.
repquota
Use the top command to view CPU and memory usage.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
13. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
createrepo
Typing the mail or mutt command allows you to read mail from the command line.
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.
14. What is the name of the package used to install an FTP?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The vsftpd package is used to install an FTP server.
kickstart installations to work
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
15. What is PAM used for?
VNC is used to control a remote desktop session.
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.
DNS uses port 53.
entering rescue mode and repairing the problem.
16. What is a gateway used for on a network?
defining a %pre section although it is rarely used
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP 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.
17. It is possible to run scripts before a kickstart installation. This is done by...
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The four types of DNS servers are master - slave - caching-only - and forwarding.
defining a %pre section although it is rarely used
18. Samba servers can...
halts the system
serve both files and printers to users
ifconfig
createrepo
19. What is a swap? Is it created as a partition or device file?
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.
export one or all resources
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 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.
20. What two commands are special for dealing with user login events?
For Apache to run a secure site - the mod_ssl package is required to be installed.
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The lastlog and faillog commands are used to view user login-related events?
21. What is the default port that Squid runs on?
cat /proc/mdstat
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the route command with the add option to create a static route.
By default - Squid runs on port 3128.
22. What is the name of the section used to run scripts after a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
23. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. What command can you use to view mounted Samba shares?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The DHCP server listens on port 67 by default.
The smbstatus command shows you currently mounted Samba resources.
The du and df commands are used to view available space on the system.
25. What option is used to allow anonymous uploads to the FTP server?
Enforcing during installation
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
26. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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 -t nfs option is used with the mount command to mount NFS resources.
alternatives --config mta
27. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
alternatives --config mta
The lastlog and faillog commands are used to view user login-related events?
You must open TCP ports 20 and 21 for the FTP server to function properly.
28. What command is used to create a user for Samba?
Use the yum groupinstall command to install multiple packages in a single group at once.
service named configtest
The smbpasswd command is used to create Samba users.
kickstart installations to work
29. 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 SMTP service runs on TCP port 110.
via the command line
Enforcing during installation
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
30. Which remote management service is installed by default?Can you name the port that it uses?
serve both files and printers to users
getfacl
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.
schedule one-time-only jobs
31. 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.
kickstart installations to work
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.
32. What port does the Apache web server run on - What about HTTPS?
Typing the mail or mutt command allows you to read mail from the command line.
setsebool -P nfs_export_all_rw=1
The -t nfs option is used with the mount command to mount NFS resources.
Apache uses port 80 for HTTP and port 443 for HTTPS.
33. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
chkconfig sshd off
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
Enforcing during installation
34. What command-line program can you use to check your mail?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Enforcing during installation
Use the route command with the add option to create a static route.
Typing the mail or mutt command allows you to read mail from the command line.
35. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
Physical volumes - volume groups - and logical volumes.
service named configtest
via the command line
36. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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.
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.
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.
37. What command and options can you use to update the time?
The user_list file can be used to limit which users have access to the FTP server.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
support for TCP Wrappers
38. What three components are needed to fully automate a kickstart installation?
DNS uses port 53.
The print option is used with both the fdisk and parted commands to display the current partition tables.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
39. The ____________ is available for each share.
This command reboots virtual guest Client04.
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.
browseable option
Physical volumes - volume groups - and logical volumes.
40. What is the main config file for the DHCP service?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work 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.
DNS uses port 53.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
41. What command can you use to change the context of files?
getsebool
Using the chcon command - you can change the context of a file to work with Apache.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
chcon
42. 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).
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
export one or all resources
The rpm command can operate in install - query - or verify modes.
43. What command is used to create an RPM package?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
rpmbuild
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
By default - Squid runs on port 3128.
44. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What port does the DHCP server listen on by default?
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.
getfacl
The vsftpd package is used to install an FTP server.
46. 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.
getsebool
ifconfig
For Apache to run a secure site - the mod_ssl package is required to be installed.
47. What command can you use to test connectivity to another host?
The TFTP server uses UDP port 69.
The ping command can be used to verify connectivity to another host.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
DNS uses port 53.
48. What command can you use to view NFS statistics?
entering rescue mode and repairing the problem.
The nfsstat command can be used to view NFS statistics.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The mount command lists all currently mounted file systems.
49. What port does NFS use by default?
lvdisplay
The mount command lists all currently mounted file systems.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The NFS service uses TCP port 2049 by default.
50. How can you list all services on the system to tell whether they will boot during startup?
export one or all resources
chkconfig—list
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
Apache uses port 80 for HTTP and port 443 for HTTPS.