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. A PXE server eases the automation process but isn't required for...
kickstart installations to work
You can use the remove or erase options with yum to remove a package.
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.
The rndc utility provides a method for managing the DNS server remotely and securely.
2. What are the three modes in which the rpm command can operate?
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.
mkfs.ext4
The rpm command can operate in install - query - or verify modes.
3. What three components are needed to fully automate a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
A user's home directory is created under the /home directory.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
4. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
This command reboots virtual guest Client04.
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.
semanage boolean -l
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
5. What option needs to be used with the mount command to mount an NFS resource?
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
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The -t nfs option is used with the mount command to mount NFS resources.
6. Which log file is used to keep track of policy violations?
you have access to the correct packages or repositories.
serve both files and printers to users
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /var/log/audit/audit.log file contains all policy violations.
7. What is the top command used for?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the top command to view CPU and memory usage.
Use the yum groupinstall command to install multiple packages in a single group at once.
The /etc/fstab file.
8. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
9. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
SELinux provides enhanced granular security for the Linux operating system.
The DHCP server listens on port 67 by default.
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.
10. What is the xinetd service used for?
By default - the rndc utility listens on port 953.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
This chapter described tdbsm and smbpasswd back-end authentication.
11. What file needs to be edited so that the system will mount a file system at boot time?
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.
Using the chcon command - you can change the context of a file to work with Apache.
The /etc/fstab file.
schedule one-time-only jobs
12. What command can you use to change the context of files?
createrepo
chcon
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
13. Which remote management service is installed by default?Can you name the port that it uses?
The yum and rpm commands are used for package management.
serve both files and printers to users
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 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 command can you use to query Boolean values?
enabled by default
getsebool
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
user's home directory in the /etc/skel directory
15. What port does NFS use by default?
service httpd configtest
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The NFS service uses TCP port 2049 by default.
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.
16. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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.
The two main config files are master.cf and main.cf.
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 lastlog and faillog commands are used to view user login-related events?
17. What command can you use to validate the syntax of the Apache config file?
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the route command with the add option to create a static route.
service httpd configtest
rpmbuild
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...
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.
By default - the rndc utility listens on port 953.
The two main config files are master.cf and main.cf.
have the same effect
19. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The smbpasswd command is used to create Samba users.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
A user's home directory is created under the /home directory.
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.
20. What does the partprobe command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The vsftpd package is used to install an FTP server.
chkconfig—list
21. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Enforcing during installation
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.
22. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The SMTP service runs on TCP port 110.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
via the command line
23. What three commands can you use to help verify that the DNS server is functioning properly?
The du and df commands are used to view available space on the system.
The two main config files are master.cf and main.cf.
SSH is used for secure remote management of Linux systems.
The dig - host - and ping commands can be used to test DNS server functionality.
24. Where are Yum repository config files located?
The yum and rpm commands are used for package management.
The lftp command can be used on a client to test FTP server connections.
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.
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.
25. What port on the firewall needs to be open for the TFTP server to work?
choose which mode you'd like it to operate in
The two main config files are master.cf and main.cf.
The TFTP server uses UDP port 69.
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.
26. How would you view all Boolean options for the HTTP service?
The smbstatus command shows you currently mounted Samba resources.
getsebool -a | grep http
The mount command lists all currently mounted file systems.
The dig - host - and ping commands can be used to test DNS server functionality.
27. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
chkconfig xinetd --list
atq
The /var/log/audit/audit.log file contains all policy violations.
28. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The rpm command can operate in install - query - or verify modes.
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.
29. What command can you use to create your own repositories?
createrepo
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
kickstart installations to work
30. What are the three items that make up LVM?
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.
Physical volumes - volume groups - and logical volumes.
support for TCP Wrappers
Use the route command with the add option to create a static route.
31. What are the five required directories when building RPMS?
Version 2 is the latest and most secure version of SSH.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
32. Can you put your /boot partition on a RAID 5 array?
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.
The two main config files are master.cf and main.cf.
SELinux provides enhanced granular security for the Linux operating system.
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.
33. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
mkfs.ext4
34. What option is used with both the fdisk and parted commands to display the current partition tables?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig xinetd --list
The print option is used with both the fdisk and parted commands to display the current partition tables.
35. To export directories as resources - what file needs to be edited?
36. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
atq
The /etc/fstab file.
You add your action to the end of the /home/user01/.bashrc file.
37. Place all files you want added to a _______________ during creation.
38. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
useradd -c "Jr Admin" George
Use the ps command to view processes and their CPU usage.
39. Which version of SSH should you use?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
chcon
Version 2 is the latest and most secure version of SSH.
40. The ____________ is available for each share.
browseable option
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 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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
41. What is the main config file for the DHCP service?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
createrepo
42. What is the benefit of using public/private key authentication?
43. What command and option do you use to view the description of Boolean values?
semanage boolean -l
A virtual host is a way of hosting multiple sites using a single IP address.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
createrepo
44. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
This command reboots virtual guest Client04.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Enforcing during installation
45. What command can you use to query information from the kernel about RAID arrays?
Use the top command to view CPU and memory usage.
support TCP Wrappers
cat /proc/mdstat
The user_list file can be used to limit which users have access to the FTP server.
46. What is a gateway used for on a network?
By default - Squid runs on port 3128.
support for TCP Wrappers
lvdisplay
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.
47. What happens to jobs that are scheduled to run while the system is off?
The /var/log/audit/audit.log file contains all policy violations.
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
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.
48. What command can you use to view the current ACL on a file?
getfacl
run on any port you'd like (provided that port is available)
The lftp command can be used on a client to test FTP server connections.
The service command is used to start - stop - and manage system services.
49. How can you check the currently mounted file systems?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
The tcpdump command is used to monitor network connections on different interfaces.
The mount command lists all currently mounted file systems.
50. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
repquota
atq
export one or all resources
Use the setgid flag to create the appropriate permissions (chmod 2770).