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. To grow a file system
Sendmail
Use the ps command to view processes and their CPU usage.
Use the resize2fs command to grow a file system.
The virsh command is used to manage virtual guests.
2. What command can you use to get information about logical volumes?
lvdisplay
getsebool -a | grep http
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
load balancing and redundancy benefits
3. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
useradd -c "Jr Admin" George
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
have the same effect
4. 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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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
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.
5. What option at the GRUB boot menu can you use to append something to a kernel?
SELinux Booleans provide restrictions to different aspects of a service.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The DHCP server listens on port 67 by default.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
6. What is a swap? Is it created as a partition or device file?
choose which mode you'd like it to operate in
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.
LUKS encryption
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
7. What option is used to allow anonymous uploads to the FTP server?
createrepo
The mount command lists all currently mounted file systems.
The rndc utility provides a method for managing the DNS server remotely and securely.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
8. There are four types of DNS servers. Name them.
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.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
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.
9. Most boot issues can be resolved by...
via the command line
LUKS encryption
A user's home directory is created under the /home directory.
entering rescue mode and repairing the problem.
10. What port must be opened on the firewall for DNS?
Sendmail
DNS uses port 53.
LUKS encryption
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
11. Does a DHCP server allow reserved IP addresses - If so - how?
The htpasswd command can be used to password-protect a web page.
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
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
service httpd configtest
12. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
13. Runlevel 0 ___________. Runlevel 6 reboots the system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
getsebool
cat /proc/mdstat
halts the system
14. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
SELinux provides enhanced granular security for the Linux operating system.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
15. What command can you use to manage system services?
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 service command is used to start - stop - and manage system services.
The -t nfs option is used with the mount command to mount NFS resources.
By defining a %post section - you can run scripts after a kickstart installation is complete.
16. Before you work with quotas - what do you need to do to the file system?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
chkconfig xinetd --list
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
17. What is the /var/lib/nfs/etab file used for?
service httpd configtest
A user's home directory is created under the /home directory.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
18. 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.
atq
You can use the authconfig-tui command or the authconfig command.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
19. What command do you use to report information on quota usage?
The mount command lists all currently mounted file systems.
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.
getfacl
repquota
20. How would you go about creating a static route?
Use the route command with the add option to create a static route.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The nfsstat command can be used to view NFS statistics.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
21. What is SSH used for?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
SSH is used for secure remote management of Linux systems.
service named configtest
choose which mode you'd like it to operate in
22. What command can you use to monitor and troubleshoot network connections?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
getsebool -a | grep http
The tcpdump command is used to monitor network connections on different interfaces.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
23. What critical step must you take after updating the kernel to a newer version?
Enforcing during installation
Use the yum groupinstall command to install multiple packages in a single group at once.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
24. What command and option can you use to enable a service to start on boot?
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.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
service named configtest
25. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
You add your action to the end of the /home/user01/.bashrc file.
Sendmail
service named configtest
enabled by default
26. What port on the firewall needs to be open for the TFTP server to work?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The TFTP server uses UDP port 69.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
27. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
semanage boolean -l
28. 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.
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.
chkconfig—list
The vsftpd package is used to install an FTP server.
29. What command can you use to validate the syntax of the Apache config file?
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.
service httpd configtest
mkfs.ext4
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.
30. Where are Yum repository config files located?
atq
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.
run on any port you'd like (provided that port is available)
SELinux provides enhanced granular security for the Linux operating system.
31. 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
32. It is possible to run scripts before a kickstart installation. This is done by...
The htpasswd command can be used to password-protect a web page.
defining a %pre section although it is rarely used
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The TFTP server uses UDP port 69.
33. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
For Apache to run a secure site - the mod_ssl package is required to be installed.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
34. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
setsebool -P nfs_export_all_rw=1
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 have access to the correct packages or repositories.
35. The package selection screen allows you to install any software you want during the installation process as long as...
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 have access to the correct packages or repositories.
Physical volumes - volume groups - and logical volumes.
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.
36. What command (and options) can be used to create a user named George with the description "Jr Admin"?
SSH is used for secure remote management of Linux systems.
Enforcing during installation
useradd -c "Jr Admin" George
service httpd configtest
37. What does it mean if you ping a host and you receive the response Destination Unreachable?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
38. What is the name of the section used to run scripts after a kickstart installation?
Use the setgid flag to create the appropriate permissions (chmod 2770).
defining a %pre section although it is rarely used
By defining a %post section - you can run scripts after a kickstart installation is complete.
export one or all resources
39. What is the default port that Squid runs on?
entering rescue mode and repairing the problem.
Typing the mail or mutt command allows you to read mail from the command line.
Using the chcon command - you can change the context of a file to work with Apache.
By default - Squid runs on port 3128.
40. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the resize2fs command to grow a file system.
choose which mode you'd like it to operate in
41. What option is used with both the fdisk and parted commands to display the current partition tables?
export one or all resources
ifconfig
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 print option is used with both the fdisk and parted commands to display the current partition tables.
42. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
halts the system
load balancing and redundancy benefits
43. To create a RAID or LVM partition using kickstart
serve both files and printers to users
rpcbind service
Version 2 is the latest and most secure version of SSH.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
44. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What command disables the SSH service from running when the system boots?
You add your action to the end of the /home/user01/.bashrc file.
chkconfig sshd off
You can use the remove or erase options with yum to remove a package.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
46. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
Use the resize2fs command to grow a file system.
The /var/log/audit/audit.log file contains all policy violations.
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
47. What command is used to create an RPM package?
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.
chkconfig xinetd --list
rpmbuild
createrepo
48. What command can you use to create a new SSL certificate?
useradd -c "Jr Admin" George
You add your action to the end of the /home/user01/.bashrc file.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
49. Can you name three utilities that can be used for network or DNS client troubleshooting?
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.
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The three utilities are: route - ping - and nslookup.
50. Can you name the two commands that can be used to view the free space on the system?
DNS uses port 53.
The lftp command can be used on a client to test FTP server connections.
The du and df commands are used to view available space 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.