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 does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
setsebool -P nfs_export_all_rw=1
SSH is used for secure remote management of Linux systems.
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.
alternatives --config mta
2. How can you check the currently mounted file systems?
Version 2 is the latest and most secure version of SSH.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The mount command lists all currently mounted file systems.
3. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
The NFS service uses TCP port 2049 by default.
You add your action to the end of the /home/user01/.bashrc file.
service dhcpd configtest
4. What option at the GRUB boot menu can you use to append something to a kernel?
The user_list file can be used to limit which users have access to the FTP server.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
via the command line
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
5. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
generates errors under Red Hat Enterprise Linux 6
via the command line
kickstart installations to work
6. What three protocols can you use to perform network installations?
export one or all resources
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
7. What command can you use to create a file system?
mkfs.ext4
You can use the authconfig-tui command or the authconfig command.
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.
you have access to the correct packages or repositories.
8. What three components are needed to fully automate a kickstart installation?
generates errors under Red Hat Enterprise Linux 6
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
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
9. What option needs to be used with the mount command to mount an NFS resource?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
10. What does it mean if you ping a host and you receive the response Destination Unreachable?
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.
Enforcing during installation
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
11. What is the virsh command used for?
Use the setgid flag to create the appropriate permissions (chmod 2770).
kickstart installations to work
The virsh command is used to manage virtual guests.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
12. What command-line program can you use to check your mail?
Use the ps command to view processes and their CPU usage.
Typing the mail or mutt command allows you to read mail from the command line.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
13. What command do you use to report information on quota usage?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
repquota
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
14. How can virtual hosts be used?
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.
A user's home directory is created under the /home directory.
used for kickstart and/or network installs
Use the resize2fs command to grow a file system.
15. What command and options can you use to update the time?
chkconfig—list
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
defining a %pre section although it is rarely used
getsebool
16. What command can you use to query information from the kernel about RAID arrays?
The lftp command can be used on a client to test FTP server connections.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
cat /proc/mdstat
17. SSH does...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
support TCP Wrappers
18. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The mount command lists all currently mounted file systems.
This command reboots virtual guest Client04.
You must open TCP ports 20 and 21 for the FTP server to function properly.
19. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
Enforcing during installation
You must open TCP ports 20 and 21 for the FTP server to function properly.
VNC is used to control a remote desktop session.
20. What command and option can you use to enable a service to start on boot?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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 chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
By default - Squid runs on port 3128.
21. 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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
22. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. What is the name of the package used to install an FTP?
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.
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 reboots virtual guest Client04.
The vsftpd package is used to install an FTP server.
24. What two commands are used for package management?
The yum and rpm commands are used for package management.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
run on any port you'd like (provided that port is available)
The NFS service uses TCP port 2049 by default.
25. 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
26. What is the top command used for?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the top command to view CPU and memory usage.
lvdisplay
The service command is used to start - stop - and manage system services.
27. What command can you use to get information about logical volumes?
The two main config files are master.cf and main.cf.
The three utilities are: route - ping - and nslookup.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
lvdisplay
28. Which version of SSH should you use?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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 SMTP service runs on TCP port 110.
Version 2 is the latest and most secure version of SSH.
29. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The DHCP server listens on port 67 by default.
have the same effect
Sendmail
mkfs.ext4
30. 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.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
31. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The lastlog and faillog commands are used to view user login-related events?
ifconfig
32. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Typing the mail or mutt command allows you to read mail from the command line.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
33. What is VNC?
You can use the remove or erase options with yum to remove a package.
By default - Squid runs on port 3128.
lvdisplay
VNC is used to control a remote desktop session.
34. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The tcpdump command is used to monitor network connections on different interfaces.
Use the resize2fs command to grow a file system.
The rpm command can operate in install - query - or verify modes.
35. How do you run a command with elevated privileges?
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 service command is used to start - stop - and manage system services.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
36. A slave DNS server provides...
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
load balancing and redundancy benefits
The /var/log/audit/audit.log file contains all policy violations.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
37. What client-side command can you use to test your FTP server connection?
createrepo
semanage boolean -l
support for TCP Wrappers
The lftp command can be used on a client to test FTP server connections.
38. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
39. What command can you use to change the context of files?
chcon
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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 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.
40. What are SELinux Booleans?
By default - the rndc utility listens on port 953.
SELinux provides enhanced granular security for the Linux operating system.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
SELinux Booleans provide restrictions to different aspects of a service.
41. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
user's home directory in the /etc/skel directory
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
42. What is the biggest benefit to using LVM over basic partitions?
enabled by default
entering rescue mode and repairing the problem.
You add your action to the end of the /home/user01/.bashrc file.
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.
43. The firewall service is...
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
enabled by default
The SMTP service runs on TCP port 110.
For Apache to run a secure site - the mod_ssl package is required to be installed.
44. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. How can you list all services on the system to tell whether they will boot during startup?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The service command is used to start - stop - and manage system services.
chkconfig—list
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.
46. What protocols are used with Dovecot?
The htpasswd command can be used to password-protect a web page.
The /etc/fstab file.
choose which mode you'd like it to operate in
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
47. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
via the command line
atq
Physical volumes - volume groups - and logical volumes.
48. What command can you use to create a new SSL certificate?
VNC is used to control a remote desktop session.
halts the system
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
getfacl
49. Before you work with ACLs - what do you need to do to the file system?
By default - the rndc utility listens on port 953.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
rpmbuild
export one or all resources
50. What command disables the SSH service from running when the system boots?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
chkconfig sshd off
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.