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 three components are needed to fully automate a kickstart installation?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
By default - the rndc utility listens on port 953.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
2. What command can you use to create a password-protected page?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
You can use the remove or erase options with yum to remove a package.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The htpasswd command can be used to password-protect a web page.
3. What is the /var/lib/nfs/etab file used for?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The SMTP service runs on TCP port 110.
4. 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.
generates errors under Red Hat Enterprise Linux 6
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
5. What command do you use to change the permissions on a file or directory - To change ownership?
setsebool -P nfs_export_all_rw=1
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The ping command can be used to verify connectivity to another host.
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.
6. What port does the Apache web server run on - What about HTTPS?
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The tcpdump command is used to monitor network connections on different interfaces.
7. What command can be used to view the queue for at service jobs?
atq
you have access to the correct packages or repositories.
The service command is used to start - stop - and manage system services.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
8. What command can you use to monitor and troubleshoot network connections?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Version 2 is the latest and most secure version of SSH.
9. What is the name of the package that allows you to install VNC?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The vsftpd package is used to install an FTP server.
10. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
kickstart installations to work
11. Should you allow remote root access - Why or why not?
12. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
enabled by default
Use the yum groupinstall command to install multiple packages in a single group at once.
13. What is the difference between an A record and a PTR record?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
You add your action to the end of the /home/user01/.bashrc file.
atq
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
14. What port does the DHCP server listen on by default?
The htpasswd command can be used to password-protect a web page.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig sshd off
The DHCP server listens on port 67 by default.
15. What does virsh reboot Client04 do?
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.
chkconfig sshd off
This command reboots virtual guest Client04.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
16. 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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The du and df commands are used to view available space on the system.
A virtual host is a way of hosting multiple sites using a single IP address.
17. What is the /etc/hosts file used for?
18. How can you change the security context of a directory to work with Apache?
The mount command lists all currently mounted file systems.
service dhcpd configtest
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Using the chcon command - you can change the context of a file to work with Apache.
19. What is SSH used for?
SSH is used for secure remote management of Linux systems.
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.
halts the system
The mount command lists all currently mounted file systems.
20. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
Use the route command with the add option to create a static route.
cat /proc/mdstat
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
21. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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 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.
22. A slave DNS server provides...
kickstart installations to work
This command reboots virtual guest Client04.
load balancing and redundancy benefits
support TCP Wrappers
23. Explain the difference between soft and hard limits in quotas.
24. How do you run a command with elevated privileges?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers 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.
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
25. To export directories as resources - what file needs to be edited?
26. What is the xinetd service used for?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
service dhcpd configtest
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
27. Through its main config file - SSH can be configured to...
28. How would you install a group of packages all at a single time?
defining a %pre section although it is rarely used
Use the yum groupinstall command to install multiple packages in a single group at once.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
29. What command can you use to view the current ACL on a file?
schedule one-time-only jobs
getfacl
createrepo
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
30. What is the benefit of using public/private key authentication?
31. Which log file is used to keep track of policy violations?
useradd -c "Jr Admin" George
This chapter described tdbsm and smbpasswd back-end authentication.
The /var/log/audit/audit.log file contains all policy violations.
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.
32. What port does NFS use by default?
alternatives --config mta
The NFS service uses TCP port 2049 by default.
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 vsftpd package is used to install an FTP server.
33. What three commands can you use to help verify that the DNS server is functioning properly?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The dig - host - and ping commands can be used to test DNS server functionality.
you have access to the correct packages or repositories.
used for kickstart and/or network installs
34. What protocols are used with Dovecot?
service dhcpd configtest
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
DNS uses port 53.
The rpm command can operate in install - query - or verify modes.
35. What command and options can you use to update the time?
The -t nfs option is used with the mount command to mount NFS resources.
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 SMTP service runs on TCP port 110.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
36. Can you name three utilities that can be used for network or DNS client troubleshooting?
chkconfig xinetd --list
The print option is used with both the fdisk and parted commands to display the current partition tables.
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 three utilities are: route - ping - and nslookup.
37. What two commands are special for dealing with user login events?
By default - the rndc utility listens on port 953.
VNC is used to control a remote desktop session.
service dhcpd configtest
The lastlog and faillog commands are used to view user login-related events?
38. 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.
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
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the ps command to view processes and their CPU usage.
39. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
You can use the remove or erase options with yum to remove a package.
The four types of DNS servers are master - slave - caching-only - and forwarding.
atq
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
40. To grow a file system
Use the setgid flag to create the appropriate permissions (chmod 2770).
Version 2 is the latest and most secure version of SSH.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Use the resize2fs command to grow a file system.
41. To create a RAID or LVM partition using kickstart
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The smbstatus command shows you currently mounted Samba resources.
42. Samba servers can...
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
serve both files and printers to users
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
chkconfig sshd off
43. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
support for TCP Wrappers
service dhcpd configtest
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
SSH is used for secure remote management of Linux systems.
44. What command can you use to change the context of files?
SELinux Booleans provide restrictions to different aspects of a service.
chcon
export one or all resources
By default - Squid runs on port 3128.
45. What command can you use to check the config file of the DHCP server?
This command reboots virtual guest Client04.
service dhcpd configtest
VNC is used to control a remote desktop session.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
46. What are the side effects of shrinking a volume group or logical volume?
ifconfig
Use the top command to view CPU and memory usage.
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.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
47. What command is used to create a user for Samba?
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.
The yum and rpm commands are used for package management.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The smbpasswd command is used to create Samba users.
48. What port must be opened on the firewall for DNS?
This chapter described tdbsm and smbpasswd back-end authentication.
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
49. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
you have access to the correct packages or repositories.
You add your action to the end of the /home/user01/.bashrc file.
via the command line
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.
50. What are the two config files for Postfix called?
chkconfig—list
By defining a %post section - you can run scripts after a kickstart installation is complete.
createrepo
The two main config files are master.cf and main.cf.