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 is used to create a user for Samba?
A user's home directory is created under the /home directory.
The two main config files are master.cf and main.cf.
The smbpasswd command is used to create Samba users.
Enforcing during installation
2. What command disables the SSH service from running when the system boots?
chkconfig sshd off
LUKS encryption
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
run on any port you'd like (provided that port is available)
3. What command and options can you use to update the time?
via the command line
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
SSH is used for secure remote management of Linux systems.
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.
4. What command can you use to view NFS statistics?
run on any port you'd like (provided that port is available)
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.
chkconfig—list
The nfsstat command can be used to view NFS statistics.
5. A slave DNS server provides...
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
load balancing and redundancy benefits
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
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.
6. What is the /etc/vsftpd/user_list file used for?
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 user_list file can be used to limit which users have access to the FTP server.
Using the chcon command - you can change the context of a file to work with Apache.
The lastlog and faillog commands are used to view user login-related events?
7. How would you view all Boolean options for the HTTP service?
export one or all resources
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
chkconfig sshd off
getsebool -a | grep http
8. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The dig - host - and ping commands can be used to test DNS server functionality.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
9. How can you list all services on the system to tell whether they will boot during startup?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
chkconfig—list
The yum and rpm commands are used for package management.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
10. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The user_list file can be used to limit which users have access to the FTP server.
rpcbind service
The virsh command is used to manage virtual guests.
The three utilities are: route - ping - and nslookup.
11. What option needs to be used with the mount command to mount an NFS resource?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The -t nfs option is used with the mount command to mount NFS resources.
12. Runlevel 0 ___________. Runlevel 6 reboots the system.
service named configtest
The TFTP server uses UDP port 69.
The DHCP server listens on port 67 by default.
halts the system
13. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
atq
14. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
SSH is used for secure remote management of Linux systems.
Physical volumes - volume groups - and logical volumes.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
15. What is the main config file for the DHCP service?
serve both files and printers to users
generates errors under Red Hat Enterprise Linux 6
atq
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
16. What is the rndc utility used for?
LUKS encryption
The rndc utility provides a method for managing the DNS server remotely and securely.
browseable option
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
17. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
Sendmail
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
chkconfig—list
18. What command can you use to change the context of files?
chcon
you have access to the correct packages or repositories.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
19. What is the point of using SELinux?
The rndc utility provides a method for managing the DNS server remotely and securely.
The print option is used with both the fdisk and parted commands to display the current partition tables.
SELinux provides enhanced granular security for the Linux operating system.
For Apache to run a secure site - the mod_ssl package is required to be installed.
20. How do you run a command with elevated privileges?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
createrepo
alternatives --config mta
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
21. What command displays your current interfaces and IP address?
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.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
ifconfig
service sshd statuts
22. How would you disable SELinux protection for NFS - allowing shares to be read/write?
Use the top command to view CPU and memory usage.
setsebool -P nfs_export_all_rw=1
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.
23. What are the two config files for Postfix called?
SELinux Booleans provide restrictions to different aspects of a service.
Sendmail
Use the route command with the add option to create a static route.
The two main config files are master.cf and main.cf.
24. Before you work with ACLs - what do you need to do to the file system?
The three utilities are: route - ping - and nslookup.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
25. What port on the firewall needs to be open for the TFTP server to work?
Version 2 is the latest and most secure version of SSH.
The TFTP server uses UDP port 69.
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
26. What port does the rndc utility listen on by default?
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.
via the command line
By default - the rndc utility listens on port 953.
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.
27. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
Use the yum groupinstall command to install multiple packages in a single group at once.
generates errors under Red Hat Enterprise Linux 6
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
schedule one-time-only jobs
28. 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
29. 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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
chkconfig xinetd --list
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 port does the DHCP server listen on by default?
The user_list file can be used to limit which users have access to the FTP server.
You can use the remove or erase options with yum to remove a package.
ifconfig
The DHCP server listens on port 67 by default.
31. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
32. What client-side command can you use to test your FTP server connection?
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 ping command can be used to verify connectivity to another host.
enabled by default
The lftp command can be used on a client to test FTP server connections.
33. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
ifconfig
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The TFTP server uses UDP port 69.
34. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
35. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
Version 2 is the latest and most secure version of SSH.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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
36. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
By default - Squid runs on port 3128.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
semanage boolean -l
37. How can you check the currently mounted file systems?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The mount command lists all currently mounted file systems.
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
rpmbuild
38. What is the name of the section used to run scripts after a kickstart installation?
The lftp command can be used on a client to test FTP server connections.
The NFS service uses TCP port 2049 by default.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
By defining a %post section - you can run scripts after a kickstart installation is complete.
39. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
export one or all resources
user's home directory in the /etc/skel directory
chkconfig—list
40. What is VNC?
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.
generates errors under Red Hat Enterprise Linux 6
VNC is used to control a remote desktop session.
alternatives --config mta
41. The exportfs command is used to...
You can use the authconfig-tui command or the authconfig command.
export one or all resources
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The yum and rpm commands are used for package management.
42. What command would you use to create a group - to add the user George to the group?
export one or all resources
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
getsebool
Version 2 is the latest and most secure version of SSH.
43. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
DNS uses port 53.
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.
chkconfig—list
SSH is used for secure remote management of Linux systems.
44. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
mkfs.ext4
lvdisplay
service named configtest
45. What does it mean if you ping a host and you receive the response Destination Unreachable?
schedule one-time-only jobs
The two main config files are master.cf and main.cf.
You can use the remove or erase options with yum to remove a package.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
46. What are the three items that make up LVM?
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
47. What command can you use to create a password-protected page?
used for kickstart and/or network installs
support for TCP Wrappers
The htpasswd command can be used to password-protect a web page.
The service command is used to start - stop - and manage system services.
48. What options with the yum command would you use to remove a package?
The NFS service uses TCP port 2049 by default.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Sendmail
You can use the remove or erase options with yum to remove a package.
49. What command can be used to view the queue for at service jobs?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The /var/log/audit/audit.log file contains all policy violations.
atq
50. What is PAM used for?
rpcbind service
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.