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 file needs to be edited so that the system will mount a file system at boot time?
createrepo
The /etc/fstab file.
The du and df commands are used to view available space on the system.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
2. What are the two types of back-end authentication mechanisms discussed in this chapter?
Enforcing during installation
This chapter described tdbsm and smbpasswd back-end authentication.
The vsftpd package is used to install an FTP server.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
3. What are the five required directories when building RPMS?
Physical volumes - volume groups - and logical volumes.
The three utilities are: route - ping - and nslookup.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
mkfs.ext4
4. Runlevel 0 ___________. Runlevel 6 reboots the system.
The virsh command is used to manage virtual guests.
enabled by default
halts the system
The two main config files are master.cf and main.cf.
5. What command can you use to test connectivity to another host?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
The ping command can be used to verify connectivity to another host.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
6. Does a DHCP server allow reserved IP addresses - If so - how?
serve both files and printers to users
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the top command to view CPU and memory usage.
getsebool -a | grep http
7. What are the three different types of RAID described in this chapter?
The vsftpd package is used to install an FTP server.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The lastlog and faillog commands are used to view user login-related events?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
8. What happens if you call the command from question 3 with the -c option after it has already been run?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The htpasswd command can be used to password-protect a web page.
9. The firewall service is...
enabled by default
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 virsh command is used to manage virtual guests.
The nfsstat command can be used to view NFS statistics.
10. Before you work with quotas - what do you need to do to the file system?
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
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /var/log/audit/audit.log file contains all policy violations.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
11. What happens if a host changes its IP address and the keys don't match?
12. Which remote management service is installed by default?Can you name the port that it uses?
By defining a %post section - you can run scripts after a kickstart installation is complete.
VNC is used to control a remote desktop session.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
13. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
generates errors under Red Hat Enterprise Linux 6
via the command line
Enforcing during installation
Using the chcon command - you can change the context of a file to work with Apache.
14. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The service command is used to start - stop - and manage system services.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
used for kickstart and/or network installs
browseable option
15. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
chkconfig—list
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
alternatives --config mta
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
16. What command can you use to view mounted Samba shares?
service sshd statuts
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
load balancing and redundancy benefits
The smbstatus command shows you currently mounted Samba resources.
17. How would you go about creating a static route?
Use the route command with the add option to create a static route.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
By default - Squid runs on port 3128.
cat /proc/mdstat
18. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
LUKS encryption
By defining a %post section - you can run scripts after a kickstart installation is complete.
19. What is the top command used for?
You add your action to the end of the /home/user01/.bashrc 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.
Use the top command to view CPU and memory usage.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
20. What two commands are used for package management?
Enforcing during installation
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The yum and rpm commands are used for package management.
The /etc/fstab file.
21. What port must be opened on the firewall for DNS?
The two main config files are master.cf and main.cf.
DNS uses port 53.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
22. What is PAM used for?
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.
cat /proc/mdstat
The rpm command can operate in install - query - or verify modes.
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.
23. What are the two config files for Postfix called?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The two main config files are master.cf and main.cf.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The dig - host - and ping commands can be used to test DNS server functionality.
24. What port does NFS use by default?
A user's home directory is created under the /home directory.
useradd -c "Jr Admin" George
The NFS service uses TCP port 2049 by default.
service sshd statuts
25. What command (and options) can be used to create a user named George with the description "Jr Admin"?
chcon
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
useradd -c "Jr Admin" George
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.
26. SSH does...
support TCP Wrappers
The nfsstat command can be used to view NFS statistics.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
27. What command is used to create an RPM package?
rpmbuild
The two main config files are master.cf and main.cf.
The tcpdump command is used to monitor network connections on different interfaces.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
28. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The lftp command can be used on a client to test FTP server connections.
29. What is a virtual host?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
service sshd statuts
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
A virtual host is a way of hosting multiple sites using a single IP address.
30. You must dictate the ____________ you want allocated to your virtual machine when you create it.
mkfs.ext4
amount of RAM
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
31. What are the three modes in which the rpm command can operate?
Use the yum groupinstall command to install multiple packages in a single group at once.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
chkconfig sshd off
The rpm command can operate in install - query - or verify modes.
32. What happens to jobs that are scheduled to run while the system is off?
Enforcing during installation
SELinux provides enhanced granular security for the Linux operating system.
Use the route command with the add option to create a static route.
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.
33. What benefit does a web proxy provide to your network?
The two main config files are master.cf and main.cf.
The htpasswd command can be used to password-protect a web page.
cat /proc/mdstat
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
34. 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.
setsebool -P nfs_export_all_rw=1
The print option is used with both the fdisk and parted commands to display the current partition tables.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
35. To export directories as resources - what file needs to be edited?
36. How would you view all Boolean options for the HTTP service?
The lastlog and faillog commands are used to view user login-related events?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
getsebool -a | grep http
serve both files and printers to users
37. What command disables the SSH service from running when the system boots?
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The lastlog and faillog commands are used to view user login-related events?
chkconfig sshd off
38. GRUB has three stages. Can you name them?
getsebool -a | grep http
Use the ps command to view processes and their CPU usage.
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
39. To create a RAID or LVM partition using kickstart
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
SELinux provides enhanced granular security for the Linux operating system.
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).
40. What is the /var/lib/nfs/etab file used for?
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 dig - host - and ping commands can be used to test DNS server functionality.
You can use the authconfig-tui command or the authconfig command.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
41. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
Physical volumes - volume groups - and logical volumes.
The yum and rpm commands are used for package management.
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.
42. What is SSH used for?
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
SSH is used for secure remote management of Linux systems.
VNC is used to control a remote desktop session.
43. What command can you use to query Boolean values?
getsebool
The three utilities are: route - ping - and nslookup.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the ps command to view processes and their CPU usage.
44. What port does the Apache web server run on - What about HTTPS?
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.
serve both files and printers to users
Apache uses port 80 for HTTP and port 443 for HTTPS.
45. 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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
export one or all resources
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.
46. 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.
The tcpdump command is used to monitor network connections on different interfaces.
lvdisplay
This command reboots virtual guest Client04.
47. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
SELinux provides enhanced granular security for the Linux operating system.
atq
48. What command and options can you use to update the time?
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.
run on any port you'd like (provided that port is available)
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The dig - host - and ping commands can be used to test DNS server functionality.
49. What is the name of the section used to run scripts after a kickstart installation?
service httpd configtest
alternatives --config mta
Use the yum groupinstall command to install multiple packages in a single group at once.
By defining a %post section - you can run scripts after a kickstart installation is complete.
50. Before you work with ACLs - what do you need to do to the file system?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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
This command reboots virtual guest Client04.