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 benefit does a web proxy provide to your network?
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 -t nfs option is used with the mount command to mount NFS resources.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
2. What is the top command used for?
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Use the top command to view CPU and memory usage.
3. What command do you use to change the permissions on a file or directory - To change ownership?
This chapter described tdbsm and smbpasswd back-end authentication.
Use the top command to view CPU and memory usage.
The three utilities are: route - ping - and nslookup.
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.
4. What does the testparm command do?
serve both files and printers to users
You can use the remove or erase options with yum to remove a package.
This chapter described tdbsm and smbpasswd back-end authentication.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
5. What is the name of the section used to run scripts after a kickstart installation?
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
run on any port you'd like (provided that port is available)
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.
6. 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
7. How can you list all services on the system to tell whether they will boot during startup?
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.
chkconfig—list
lvdisplay
8. 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.
cat /proc/mdstat
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
createrepo
9. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
chkconfig—list
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
service sshd statuts
10. What is the main config file for the DHCP service?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
You can use the authconfig-tui command or the authconfig command.
11. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
Use the ps command to view processes and their CPU usage.
via the command line
schedule one-time-only jobs
The du and df commands are used to view available space on the system.
12. What is the /var/lib/nfs/etab file used for?
browseable option
Enforcing during installation
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the yum groupinstall command to install multiple packages in a single group at once.
13. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
load balancing and redundancy benefits
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
14. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
15. 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...
The du and df commands are used to view available space on the system.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
have the same effect
16. What command disables the SSH service from running when the system boots?
chkconfig sshd off
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Version 2 is the latest and most secure version of SSH.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
17. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
useradd -c "Jr Admin" George
You can use the remove or erase options with yum to remove a package.
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.
18. 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
19. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
service named configtest
Use the setgid flag to create the appropriate permissions (chmod 2770).
20. 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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
SELinux Booleans provide restrictions to different aspects of a service.
via the command line
21. 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
22. What does virsh reboot Client04 do?
Use the yum groupinstall command to install multiple packages in a single group at once.
This command reboots virtual guest Client04.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
23. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
chkconfig xinetd --list
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.
24. What three protocols can you use to perform network installations?
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.
Use the top command to view CPU and memory usage.
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
25. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
26. What does the partprobe command do?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
defining a %pre section although it is rarely used
27. Samba servers can...
serve both files and printers to users
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Typing the mail or mutt command allows you to read mail from the command line.
28. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
entering rescue mode and repairing the problem.
browseable option
createrepo
29. What does it mean if you ping a host and you receive the response Destination Unreachable?
SSH is used for secure remote management of Linux systems.
The NFS service uses TCP port 2049 by default.
The -t nfs option is used with the mount command to mount NFS resources.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
30. What is NAT - How is it used?
The ping command can be used to verify connectivity to another host.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
used for kickstart and/or network installs
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.
31. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Use the ps command to view processes and their CPU usage.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
32. What command can you use to query Boolean values?
The tcpdump command is used to monitor network connections on different interfaces.
getsebool
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Enforcing during installation
33. What command do you use to report information on quota usage?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The lastlog and faillog commands are used to view user login-related events?
support for TCP Wrappers
repquota
34. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
mkfs.ext4
35. What is the rndc utility used for?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The rndc utility provides a method for managing the DNS server remotely and securely.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
36. How can you verify the status of the SSH service after the system has booted?
amount of RAM
service sshd statuts
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.
semanage boolean -l
37. Where are Yum repository config files located?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
rpcbind service
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
38. What are the three different types of RAID described in this chapter?
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /var/log/audit/audit.log file contains all policy violations.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
39. What command-line program can you use to check your mail?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Typing the mail or mutt command allows you to read mail from the command line.
via the command line
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.
40. What command can you use to view NFS statistics?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Enforcing during installation
alternatives --config mta
The nfsstat command can be used to view NFS statistics.
41. 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
Typing the mail or mutt command allows you to read mail from the command line.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The virsh command is used to manage virtual guests.
42. Which version of SSH should you use?
service named configtest
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Version 2 is the latest and most secure version of SSH.
43. What are the three modes in which the rpm command can operate?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The ping command can be used to verify connectivity to another host.
The rpm command can operate in install - query - or verify modes.
A virtual host is a way of hosting multiple sites using a single IP address.
44. What two commands are used for package management?
Enforcing during installation
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.
createrepo
45. What is the biggest benefit to using LVM over basic partitions?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The dig - host - and ping commands can be used to test DNS server functionality.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
46. Which remote management service is installed by default?Can you name the port that it uses?
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 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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
47. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The lftp command can be used on a client to test FTP server connections.
The nfsstat command can be used to view NFS statistics.
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
48. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The lftp command can be used on a client to test FTP server connections.
chkconfig—list
49. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
chkconfig xinetd --list
The vsftpd package is used to install an FTP server.
The /etc/fstab file.
50. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
service sshd statuts
The lastlog and faillog commands are used to view user login-related events?
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.
You add your action to the end of the /home/user01/.bashrc file.