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. Can you name the two commands that can be used to view the free space on the system?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The nfsstat command can be used to view NFS statistics.
Use the yum groupinstall command to install multiple packages in a single group at once.
The du and df commands are used to view available space on the system.
2. What three protocols can you use to perform network installations?
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.
A virtual host is a way of hosting multiple sites using a single IP address.
used for kickstart and/or network installs
Network installations can be performed using the HTTP - FTP - and NFS protocols.
3. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
amount of RAM
getsebool -a | grep http
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
4. How would you view all Boolean options for the HTTP service?
The smbstatus command shows you currently mounted Samba resources.
getsebool -a | grep http
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.
serve both files and printers to users
5. What command can you use to view system processes and their CPU usage?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The ping command can be used to verify connectivity to another host.
The mount command lists all currently mounted file systems.
Use the ps command to view processes and their CPU usage.
6. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
service dhcpd configtest
rpcbind service
7. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
You can use the authconfig-tui command or the authconfig command.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
8. What is the name of the package used to install an FTP?
The rndc utility provides a method for managing the DNS server remotely and securely.
service sshd statuts
entering rescue mode and repairing the problem.
The vsftpd package is used to install an FTP server.
9. What command and option do you use to view the description of Boolean values?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
semanage boolean -l
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.
10. What is the rndc utility used for?
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
11. What is the /var/lib/nfs/etab file used for?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The user_list file can be used to limit which users have access to the FTP server.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
By defining a %post section - you can run scripts after a kickstart installation is complete.
12. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
generates errors under Red Hat Enterprise Linux 6
The NFS service uses TCP port 2049 by default.
13. What command can you use to create a new SSL certificate?
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
14. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
Use the resize2fs command to grow a file system.
Use the route command with the add option to create a static route.
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.
15. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
The service command is used to start - stop - and manage system services.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
16. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
This chapter described tdbsm and smbpasswd back-end authentication.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
17. What command can you use to get information about logical volumes?
lvdisplay
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
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.
18. What is the virsh command used for?
Use the resize2fs command to grow a file system.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The virsh command is used to manage virtual guests.
This chapter described tdbsm and smbpasswd back-end authentication.
19. What command can you use to monitor and troubleshoot network connections?
The user_list file can be used to limit which users have access to the FTP server.
The dig - host - and ping commands can be used to test DNS server functionality.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The tcpdump command is used to monitor network connections on different interfaces.
20. Most boot issues can be resolved by...
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
entering rescue mode and repairing the problem.
The NFS service uses TCP port 2049 by default.
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.
21. What does the partprobe command do?
defining a %pre section although it is rarely used
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
22. What command can you use to test connectivity to another host?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
browseable option
23. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
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
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the setgid flag to create the appropriate permissions (chmod 2770).
24. What are the side effects of shrinking a volume group or logical volume?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
25. What is the point of using SELinux?
support TCP Wrappers
You add your action to the end of the /home/user01/.bashrc file.
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.
SELinux provides enhanced granular security for the Linux operating system.
26. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
used for kickstart and/or network installs
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
27. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
halts the system
You add your action to the end of the /home/user01/.bashrc file.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
28. How can you list all services on the system to tell whether they will boot during startup?
By default - Squid runs on port 3128.
The two main config files are master.cf and main.cf.
chkconfig—list
support for TCP Wrappers
29. What is the difference between an A record and a PTR record?
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
30. What benefit does a web proxy provide to your network?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
service dhcpd configtest
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
31. How would you install a group of packages all at a single time?
useradd -c "Jr Admin" George
support TCP Wrappers
Use the yum groupinstall command to install multiple packages in a single group at once.
rpmbuild
32. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Use the setgid flag to create the appropriate permissions (chmod 2770).
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
33. The ____________ is available for each share.
browseable option
The service command is used to start - stop - and manage system services.
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
34. What is the name of the package that allows you to install VNC?
rpmbuild
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The SMTP service runs on TCP port 110.
via the command line
35. Are additional packages besides httpd required for a secure website - If so - what are they?
For Apache to run a secure site - the mod_ssl package is required to be installed.
support TCP Wrappers
The vsftpd package is used to install an FTP server.
The four types of DNS servers are master - slave - caching-only - and forwarding.
36. What is VNC?
defining a %pre section although it is rarely used
You can use the remove or erase options with yum to remove a package.
service sshd statuts
VNC is used to control a remote desktop session.
37. Before you work with quotas - what do you need to do to the file system?
used for kickstart and/or network installs
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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
This chapter described tdbsm and smbpasswd back-end authentication.
38. Where are Yum repository config files located?
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 groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The ping command can be used to verify connectivity to another host.
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.
39. What critical step must you take after updating the kernel to a newer version?
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.
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 three utilities are: route - ping - and nslookup.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
40. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
service httpd configtest
The DHCP server listens on port 67 by default.
export one or all resources
41. How can you verify the status of the SSH service after the system has booted?
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.
The SMTP service runs on TCP port 110.
service sshd statuts
The vsftpd package is used to install an FTP server.
42. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
rpmbuild
Use the setgid flag to create the appropriate permissions (chmod 2770).
43. Samba servers can...
serve both files and printers to users
run on any port you'd like (provided that port is available)
SSH is used for secure remote management of Linux systems.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
44. The exportfs command is used to...
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The du and df commands are used to view available space on the system.
Use the top command to view CPU and memory usage.
export one or all resources
45. Can you put your /boot partition on a RAID 5 array?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
support for TCP Wrappers
The two main config files are master.cf and main.cf.
46. What are the two types of back-end authentication mechanisms discussed in this chapter?
cat /proc/mdstat
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
This chapter described tdbsm and smbpasswd back-end authentication.
setsebool -P nfs_export_all_rw=1
47. What is a swap? Is it created as a partition or device file?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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 print option is used with both the fdisk and parted commands to display the current partition tables.
48. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
run on any port you'd like (provided that port is available)
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.
49. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
LUKS encryption
The smbpasswd command is used to create Samba users.
enabled by default
50. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /var/log/audit/audit.log file contains all policy violations.
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.
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.