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. GRUB has three stages. Can you name them?
amount of RAM
have the same effect
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
support for TCP Wrappers
2. 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.
Using the chcon command - you can change the context of a file to work with Apache.
The mount command lists all currently mounted file systems.
SELinux provides enhanced granular security for the Linux operating system.
3. What are the three different types of RAID described in this chapter?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
You must open TCP ports 20 and 21 for the FTP server to function properly.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
4. What is the name of the section used to run scripts after a kickstart installation?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The rndc utility provides a method for managing the DNS server remotely and securely.
By defining a %post section - you can run scripts after a kickstart installation is complete.
rpmbuild
5. What command and options can you use to update the time?
The DHCP server listens on port 67 by default.
chkconfig sshd off
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
6. 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
repquota
The vsftpd package is used to install an FTP server.
Use the route command with the add option to create a static route.
7. What command is used to create an RPM package?
rpmbuild
You add your action to the end of the /home/user01/.bashrc file.
entering rescue mode and repairing the problem.
SELinux provides enhanced granular security for the Linux operating system.
8. What is the name of the package used to install an FTP?
Use the resize2fs command to grow a file system.
The lastlog and faillog commands are used to view user login-related events?
The vsftpd package is used to install an FTP server.
chkconfig sshd off
9. Should you allow remote root access - Why or why not?
10. What is a gateway used for on a network?
atq
semanage boolean -l
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.
SSH is used for secure remote management of Linux systems.
11. Most boot issues can be resolved by...
service httpd configtest
entering rescue mode and repairing the problem.
Use the ps command to view processes and their CPU usage.
You add your action to the end of the /home/user01/.bashrc file.
12. To create a RAID or LVM partition using kickstart
The smbstatus command shows you currently mounted Samba resources.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the yum groupinstall command to install multiple packages in a single group at once.
The dig - host - and ping commands can be used to test DNS server functionality.
13. 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.
chkconfig sshd off
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Enforcing during installation
The du and df commands are used to view available space on the system.
14. Can you name the two commands that can be used to view the free space on the system?
export one or all resources
The du and df commands are used to view available space on the system.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
You must open TCP ports 20 and 21 for the FTP server to function properly.
15. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
choose which mode you'd like it to operate in
atq
The NFS service uses TCP port 2049 by default.
16. The package selection screen allows you to install any software you want during the installation process as long as...
amount of RAM
you have access to the correct packages or repositories.
Typing the mail or mutt command allows you to read mail from the command line.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
17. What command can be used to view the queue for at service jobs?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
atq
18. What command can you use to query Boolean values?
The smbpasswd command is used to create Samba users.
chkconfig—list
getsebool
The service command is used to start - stop - and manage system services.
19. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
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.
Typing the mail or mutt command allows you to read mail from the command line.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
20. What critical step must you take after updating the kernel to a newer version?
rpmbuild
Using the chcon command - you can change the context of a file to work with Apache.
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.
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.
21. What is SSH used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
SSH is used for secure remote management of Linux systems.
you have access to the correct packages or repositories.
22. The at command is used to ____________. The cron service handles reoccurring system jobs.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
schedule one-time-only jobs
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 SMTP service runs on TCP port 110.
23. To export directories as resources - what file needs to be edited?
24. How can virtual hosts be used?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
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.
semanage boolean -l
25. How can you list all services on the system to tell whether they will boot during startup?
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.
chkconfig—list
A virtual host is a way of hosting multiple sites using a single IP address.
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.
26. What three components are needed to fully automate a kickstart installation?
support for TCP Wrappers
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
enabled by default
This chapter described tdbsm and smbpasswd back-end authentication.
27. What are the three modes in which the rpm command can operate?
Physical volumes - volume groups - and logical volumes.
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 rpm command can operate in install - query - or verify modes.
service named configtest
28. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
You can use the authconfig-tui command or the authconfig command.
support for TCP Wrappers
generates errors under Red Hat Enterprise Linux 6
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
29. There are four types of DNS servers. Name them.
The mount command lists all currently mounted file systems.
The nfsstat command can be used to view NFS statistics.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the setgid flag to create the appropriate permissions (chmod 2770).
30. What option needs to be used with the mount command to mount an NFS resource?
Use the route command with the add option to create a static route.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The -t nfs option is used with the mount command to mount NFS resources.
31. What is the difference between an A record and a PTR record?
Use the route command with the add option to create a static route.
Use the setgid flag to create the appropriate permissions (chmod 2770).
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
32. What is the difference between an ext2 and ext3 file system?
33. Red Hat Enterprise Linux 6 is the only version that officially supports _______
used for kickstart and/or network installs
LUKS encryption
DNS uses port 53.
halts the system
34. What is the /etc/hosts file used for?
35. What are the three items that make up LVM?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Physical volumes - volume groups - and logical volumes.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
36. A service needs to have _______________ to be able to use it.
The ping command can be used to verify connectivity to another host.
support for TCP Wrappers
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
37. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /etc/fstab file.
used for kickstart and/or network installs
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
38. Can you put your /boot partition on a RAID 5 array?
load balancing and redundancy benefits
VNC is used to control a remote desktop session.
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.
chkconfig sshd off
39. The firewall service is...
run on any port you'd like (provided that port is available)
Use the top command to view CPU and memory usage.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
enabled by default
40. What is the last rule in the iptables file?
41. What command can you use to view the current ACL on a file?
The dig - host - and ping commands can be used to test DNS server functionality.
getfacl
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
42. How would you view all Boolean options for the HTTP service?
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
getsebool -a | grep http
Use the setgid flag to create the appropriate permissions (chmod 2770).
43. 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...
mkfs.ext4
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
have the same effect
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
44. How would you disable SELinux protection for NFS - allowing shares to be read/write?
service named configtest
A virtual host is a way of hosting multiple sites using a single IP address.
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.
setsebool -P nfs_export_all_rw=1
45. Before you work with quotas - what do you need to do to the file system?
The SMTP service runs on TCP port 110.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
have the same effect
46. What client-side command can you use to test your FTP server connection?
enabled by default
Use the ps command to view processes and their CPU usage.
load balancing and redundancy benefits
The lftp command can be used on a client to test FTP server connections.
47. What option is used with both the fdisk and parted commands to display the current partition tables?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The mount command lists all currently mounted file 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.
48. What command can you use to query information from the kernel about RAID arrays?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
This command reboots virtual guest Client04.
cat /proc/mdstat
serve both files and printers to users
49. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
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.
50. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
have the same effect
You can use the authconfig-tui command or the authconfig command.
service sshd statuts