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 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
2. What two ports should be opened on the firewall for the FTP server to function properly?
cat /proc/mdstat
via the command line
The smbpasswd command is used to create Samba users.
You must open TCP ports 20 and 21 for the FTP server to function properly.
3. How can you check the currently mounted file systems?
schedule one-time-only jobs
Use the ps command to view processes and their CPU usage.
The nfsstat command can be used to view NFS statistics.
The mount command lists all currently mounted file systems.
4. The package selection screen allows you to install any software you want during the installation process as long as...
chkconfig—list
you have access to the correct packages or repositories.
atq
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
5. What does the partprobe command do?
The virsh command is used to manage virtual guests.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
load balancing and redundancy benefits
Version 2 is the latest and most secure version of SSH.
6. What command can you use to monitor and troubleshoot network connections?
The -t nfs option is used with the mount command to mount NFS resources.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The virsh command is used to manage virtual guests.
The tcpdump command is used to monitor network connections on different interfaces.
7. What is the virsh command used for?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
chcon
The virsh command is used to manage virtual guests.
8. To grow a file system
service named configtest
The ping command can be used to verify connectivity to another host.
The lftp command can be used on a client to test FTP server connections.
Use the resize2fs command to grow a file system.
9. How can you list all services on the system to tell whether they will boot during startup?
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.
chkconfig—list
Version 2 is the latest and most secure version of SSH.
By default - Squid runs on port 3128.
10. What does the testparm command do?
service httpd configtest
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
service sshd statuts
11. What port does the Apache web server run on - What about HTTPS?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
load balancing and redundancy benefits
Apache uses port 80 for HTTP and port 443 for HTTPS.
You must open TCP ports 20 and 21 for the FTP server to function properly.
12. What command can you use to query information from the kernel about RAID arrays?
choose which mode you'd like it to operate in
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
cat /proc/mdstat
atq
13. 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
14. What command is used to create an RPM package?
rpmbuild
alternatives --config mta
A virtual host is a way of hosting multiple sites using a single IP address.
Typing the mail or mutt command allows you to read mail from the command line.
15. What file needs to be edited so that the system will mount a file system at boot time?
Use the route command with the add option to create a static route.
The /etc/fstab file.
The virsh command is used to manage virtual guests.
browseable option
16. What are the two config files for Postfix called?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The two main config files are master.cf and main.cf.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
17. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
halts the system
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
generates errors under Red Hat Enterprise Linux 6
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
18. What command and option do you use to view the description of Boolean values?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
semanage boolean -l
serve both files and printers to users
19. Do you need to write changes to the disk when using the parted command? What about fdisk?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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 have access to the correct packages or repositories.
ifconfig
20. 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...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
21. What two commands are used for package management?
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 yum and rpm commands are used for package management.
choose which mode you'd like it to operate in
The SMTP service runs on TCP port 110.
22. 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 service command is used to start - stop - and manage system services.
run on any port you'd like (provided that port is available)
The nfsstat command can be used to view NFS statistics.
23. What command disables the SSH service from running when the system boots?
The smbstatus command shows you currently mounted Samba resources.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
24. The at command is used to ____________. The cron service handles reoccurring system jobs.
The ping command can be used to verify connectivity to another host.
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.
You can use the authconfig-tui command or the authconfig command.
schedule one-time-only jobs
25. What command can you use to test the config files before starting the DNS service?
SSH is used for secure remote management of Linux systems.
service named configtest
enabled by default
used for kickstart and/or network installs
26. What are SELinux Booleans?
Use the yum groupinstall command to install multiple packages in a single group at once.
generates errors under Red Hat Enterprise Linux 6
The two main config files are master.cf and main.cf.
SELinux Booleans provide restrictions to different aspects of a service.
27. How would you install a group of packages all at a single time?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Use the yum groupinstall command to install multiple packages in a single group at once.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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
28. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
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.
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.
29. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The user_list file can be used to limit which users have access to the FTP server.
SSH is used for secure remote management of Linux systems.
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.
30. Can you name the two commands that can be used to view the free space on the system?
service dhcpd configtest
support TCP Wrappers
The du and df commands are used to view available space on the system.
The tcpdump command is used to monitor network connections on different interfaces.
31. What option is used to allow anonymous uploads to the FTP server?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
You can use the remove or erase options with yum to remove a package.
32. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
33. What is the xinetd service used for?
entering rescue mode and repairing the problem.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The yum and rpm commands are used for package management.
defining a %pre section although it is rarely used
34. What is the top command used for?
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.
Use the top command to view CPU and memory usage.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The user_list file can be used to limit which users have access to the FTP server.
35. What command can be used to view the queue for at service jobs?
atq
For Apache to run a secure site - the mod_ssl package is required to be installed.
have the same effect
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
36. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
The lftp command can be used on a client to test FTP server connections.
The three utilities are: route - ping - and nslookup.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
37. What command can you use to manage system services?
You add your action to the end of the /home/user01/.bashrc file.
The service command is used to start - stop - and manage system services.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
38. What is the name of the package used to install an FTP?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The ping command can be used to verify connectivity to another host.
The vsftpd package is used to install an FTP server.
The TFTP server uses UDP port 69.
39. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
chkconfig sshd off
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
40. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
via the command line
The dig - host - and ping commands can be used to test DNS server functionality.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getfacl
41. What is a virtual host?
semanage boolean -l
This command reboots virtual guest Client04.
The print option is used with both the fdisk and parted commands to display the current partition tables.
A virtual host is a way of hosting multiple sites using a single IP address.
42. What option needs to be used with the mount command to mount an NFS resource?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The -t nfs option is used with the mount command to mount NFS resources.
43. What is the main config file for the DHCP service?
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.
service dhcpd configtest
The /etc/dhcp/dhcpd.conf file 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.
44. The ____________ is available for each share.
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.
browseable option
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
A user's home directory is created under the /home directory.
45. What options with the yum command would you use to remove a package?
Use the top command to view CPU and memory usage.
Using the chcon command - you can change the context of a file to work with Apache.
You can use the remove or erase options with yum to remove a package.
getsebool
46. What directory is used to represent the virtual file system created by the kernel?
Using the chcon command - you can change the context of a file to work with Apache.
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 three utilities are: route - ping - and nslookup.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
47. What does the rdnc-confgen command do?
Use the yum groupinstall command to install multiple packages in a single group at once.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
48. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
The vsftpd package is used to install an FTP server.
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.
Enforcing during installation
49. Before you work with ACLs - what do you need to do to the file system?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Sendmail
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
rpmbuild
50. 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