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 change the mail server from Sendmail to Postfix (useful only if you have both installed)?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
alternatives --config mta
user's home directory in the /etc/skel directory
2. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
have the same effect
The nfsstat command can be used to view NFS statistics.
Enforcing during installation
entering rescue mode and repairing the problem.
3. To create a RAID or LVM partition using kickstart
used for kickstart and/or network installs
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
4. Can you name the two commands that can be used to view the free space on the system?
SSH is used for secure remote management of Linux 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
The /etc/fstab file.
The du and df commands are used to view available space on the system.
5. How can you check the currently mounted file systems?
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.
The mount command lists all currently mounted file systems.
ifconfig
Version 2 is the latest and most secure version of SSH.
6. What happens to jobs that are scheduled to run while the system is off?
serve both files and printers to users
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.
Use the route command with the add option to create a static route.
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.
7. How would you install a group of packages all at a single time?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
DNS uses port 53.
have the same effect
Use the yum groupinstall command to install multiple packages in a single group at once.
8. A service needs to have _______________ to be able to use it.
service dhcpd configtest
support for TCP Wrappers
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
9. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
user's home directory in the /etc/skel directory
The rpm command can operate in install - query - or verify modes.
The tcpdump command is used to monitor network connections on different interfaces.
Use the setgid flag to create the appropriate permissions (chmod 2770).
10. How would you view all Boolean options for the HTTP service?
run on any port you'd like (provided that port is available)
By default - Squid runs on port 3128.
The -t nfs option is used with the mount command to mount NFS resources.
getsebool -a | grep http
11. Which log file is used to keep track of policy violations?
Typing the mail or mutt command allows you to read mail from the command line.
The /var/log/audit/audit.log file contains all policy violations.
The yum and rpm commands are used for package management.
DNS uses port 53.
12. How can virtual hosts be used?
service sshd statuts
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 nfsstat command can be used to view NFS statistics.
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.
13. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
The lastlog and faillog commands are used to view user login-related events?
ifconfig
kickstart installations to work
14. 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.
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.
kickstart installations to work
The -t nfs option is used with the mount command to mount NFS resources.
Enforcing during installation
15. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
chkconfig xinetd --list
16. What are the three different types of RAID described in this chapter?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
17. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. What is the main config file for the DHCP service?
The lastlog and faillog commands are used to view user login-related events?
The /var/log/audit/audit.log file contains all policy violations.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
chcon
19. The exportfs command is used to...
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
export one or all resources
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
SSH is used for secure remote management of Linux systems.
20. What does virsh reboot Client04 do?
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
getfacl
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.
This command reboots virtual guest Client04.
21. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
defining a %pre section although it is rarely used
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.
22. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
user's home directory in the /etc/skel directory
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.
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.
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 manage system services?
generates errors under Red Hat Enterprise Linux 6
Kickstart supports both basic and advanced partitioning (RAID/LVM).
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The service command is used to start - stop - and manage system services.
25. What command would you use to create a group - to add the user George to the group?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The user_list file can be used to limit which users have access to the FTP server.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
26. What file needs to be edited so that the system will mount a file system at boot time?
Using the chcon command - you can change the context of a file to work with Apache.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
user's home directory in the /etc/skel directory
The /etc/fstab file.
27. Can you name three utilities that can be used for network or DNS client troubleshooting?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The three utilities are: route - ping - and nslookup.
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.
28. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
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 four types of DNS servers are master - slave - caching-only - and forwarding.
user's home directory in the /etc/skel directory
29. What three protocols can you use to perform network installations?
support for TCP Wrappers
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
schedule one-time-only jobs
30. What is the difference between an A record and a PTR record?
service dhcpd configtest
DNS uses port 53.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
schedule one-time-only jobs
31. What option needs to be used with the mount command to mount an NFS resource?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The -t nfs option is used with the mount command to mount NFS resources.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the setgid flag to create the appropriate permissions (chmod 2770).
32. A slave DNS server provides...
This chapter described tdbsm and smbpasswd back-end authentication.
SELinux provides enhanced granular security for the Linux operating system.
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.
load balancing and redundancy benefits
33. How would you go about creating a static route?
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
Use the route command with the add option to create a static route.
The four types of DNS servers are master - slave - caching-only - and forwarding.
chkconfig sshd off
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 displays your current interfaces and IP address?
used for kickstart and/or network installs
Using the chcon command - you can change the context of a file to work with Apache.
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.
ifconfig
36. What two commands are special for dealing with user login events?
The service command is used to start - stop - and manage system services.
The lastlog and faillog commands are used to view user login-related events?
chcon
LUKS encryption
37. What is NAT - How is it used?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
lvdisplay
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
38. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Use the yum groupinstall command to install multiple packages in a single group at once.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
39. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
A user's home directory is created under the /home directory.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
40. What command can you use to view the current ACL on a file?
rpcbind service
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getfacl
The smbstatus command shows you currently mounted Samba resources.
41. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
getsebool -a | grep http
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.
LUKS encryption
42. How would you disable SELinux protection for NFS - allowing shares to be read/write?
load balancing and redundancy benefits
setsebool -P nfs_export_all_rw=1
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The tcpdump command is used to monitor network connections on different interfaces.
43. Do you need to write changes to the disk when using the parted command? What about fdisk?
atq
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Use the resize2fs command to grow a file system.
44. What command can you use to validate the syntax of the Apache config file?
service named configtest
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The lastlog and faillog commands are used to view user login-related events?
service httpd configtest
45. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
46. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. What command can be used to easily list all the options in the FTP main config file?
halts the system
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
48. What command can you use to get information about logical volumes?
The smbstatus command shows you currently mounted Samba resources.
SELinux provides enhanced granular security for the Linux operating system.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
lvdisplay
49. What command can be used to view the queue for at service jobs?
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.
getsebool
The /etc/fstab file.
atq
50. What are the three modes in which the rpm command can operate?
ifconfig
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.
The rpm command can operate in install - query - or verify modes.