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 can you use to create a file system?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
mkfs.ext4
export one or all resources
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
2. What command-line program can you use to check your mail?
chkconfig—list
rpcbind service
Typing the mail or mutt command allows you to read mail from the command line.
The vsftpd package is used to install an FTP server.
3. What command can you use to view system processes and their CPU usage?
Use the ps command to view processes and their CPU usage.
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.
enabled by default
getsebool -a | grep http
4. Through its main config file - SSH can be configured to...
5. What file needs to be edited so that the system will mount a file system at boot time?
have the same effect
Using the chcon command - you can change the context of a file to work with Apache.
The /etc/fstab file.
A user's home directory is created under the /home directory.
6. The package selection screen allows you to install any software you want during the installation process as long as...
rpmbuild
SELinux provides enhanced granular security for the Linux operating system.
you have access to the correct packages or repositories.
used for kickstart and/or network installs
7. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
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.
have the same effect
Use the yum groupinstall command to install multiple packages in a single group at once.
8. What command is used to create an RPM package?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
rpmbuild
You can use the remove or erase options with yum to remove a package.
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.
9. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
getfacl
You can use the authconfig-tui command or the authconfig command.
SELinux provides enhanced granular security for the Linux operating system.
10. What command disables the SSH service from running when the system boots?
The virsh command is used to manage virtual guests.
chkconfig sshd off
The user_list file can be used to limit which users have access to the FTP server.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
11. The firewall service is...
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 /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
enabled by default
12. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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 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 user_list file can be used to limit which users have access to the FTP server.
13. What is PAM used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
The -t nfs option is used with the mount command to mount NFS resources.
14. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Typing the mail or mutt command allows you to read mail from the command line.
support TCP Wrappers
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.
15. What command can you use to view NFS statistics?
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 nfsstat command can be used to view NFS statistics.
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.
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.
16. What critical step must you take after updating the kernel to a newer version?
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
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
17. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
export one or all resources
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
18. A slave DNS server provides...
load balancing and redundancy benefits
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.
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
19. What command can you use to create a new SSL certificate?
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
chkconfig—list
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.
20. It is possible to run scripts before a kickstart installation. This is done by...
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.
VNC is used to control a remote desktop session.
defining a %pre section although it is rarely used
Use the setgid flag to create the appropriate permissions (chmod 2770).
21. What is a swap? Is it created as a partition or device file?
Physical volumes - volume groups - and logical volumes.
getsebool
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.
getfacl
22. How would you disable SELinux protection for NFS - allowing shares to be read/write?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
setsebool -P nfs_export_all_rw=1
23. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Physical volumes - volume groups - and logical volumes.
run on any port you'd like (provided that port is available)
Use the ps command to view processes and their CPU usage.
24. Before you work with quotas - what do you need to do to the file 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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
user's home directory in the /etc/skel directory
25. What is a virtual host?
chkconfig xinetd --list
A virtual host is a way of hosting multiple sites using a single IP address.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
26. What port on the firewall needs to be open for the TFTP server to work?
schedule one-time-only jobs
Use the yum groupinstall command to install multiple packages in a single group at once.
The TFTP server uses UDP port 69.
service sshd statuts
27. Which file shows you all the client IP addresses?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
schedule one-time-only jobs
28. What two ports should be opened on the firewall for the FTP server to function properly?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You must open TCP ports 20 and 21 for the FTP server to function properly.
chkconfig—list
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
29. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The /var/log/audit/audit.log file contains all policy violations.
ifconfig
alternatives --config mta
30. What command can you use to query Boolean values?
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.
getsebool
This chapter described tdbsm and smbpasswd back-end authentication.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
31. By default - what is the path to a user's home directory?
32. What is the virsh command used for?
The virsh command is used to manage virtual guests.
The du and df commands are used to view available space on the system.
ifconfig
Network installations can be performed using the HTTP - FTP - and NFS protocols.
33. What option is used with both the fdisk and parted commands to display the current partition tables?
schedule one-time-only jobs
Version 2 is the latest and most secure version of SSH.
VNC is used to control a remote desktop session.
The print option is used with both the fdisk and parted commands to display the current partition tables.
34. What is the rndc utility used for?
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
service named configtest
The rndc utility provides a method for managing the DNS server remotely and securely.
35. What does the partprobe command do?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
By defining a %post section - you can run scripts after a kickstart installation is complete.
atq
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
36. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The mount command lists all currently mounted file systems.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the ps command to view processes and their CPU usage.
37. What happens if you call the command from question 3 with the -c option after it has already been run?
The ping command can be used to verify connectivity to another host.
chkconfig xinetd --list
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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
38. What is the top command used for?
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.
schedule one-time-only jobs
Use the top command to view CPU and memory usage.
Use the setgid flag to create the appropriate permissions (chmod 2770).
39. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Version 2 is the latest and most secure version of SSH.
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.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
40. How would you go about creating a static route?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Use the route command with the add option to create a static route.
You have the flexibility to resize and add new volumes on the fly. With basic partitions - any time that you want to make a change - you need to destroy the partition and create it again.
You must open TCP ports 20 and 21 for the FTP server to function properly.
41. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
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.
Use the top command to view CPU and memory usage.
Use the setgid flag to create the appropriate permissions (chmod 2770).
42. What command is used to show all services being controlled by the xinetd daemon?
chcon
Version 2 is the latest and most secure version of SSH.
chkconfig xinetd --list
The /var/log/audit/audit.log file contains all policy violations.
43. What does virsh reboot Client04 do?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
browseable option
This command reboots virtual guest Client04.
Use the ps command to view processes and their CPU usage.
44. What are the three modes in which the rpm command can operate?
user's home directory in the /etc/skel directory
Use the top command to view CPU and memory usage.
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.
45. GRUB has three stages. Can you name them?
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
The virsh command is used to manage virtual guests.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
user's home directory in the /etc/skel directory
46. What options with the yum command would you use to remove a package?
The lftp command can be used on a client to test FTP server connections.
Use the setgid flag to create the appropriate permissions (chmod 2770).
You can use the remove or erase options with yum to remove a package.
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.
47. What is a gateway used for on a network?
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
lvdisplay
By default - Squid runs on port 3128.
48. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
49. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
A user's home directory is created under the /home directory.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
50. Red Hat Enterprise Linux 6 is the only version that officially supports _______
repquota
serve both files and printers to users
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
LUKS encryption