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 port does the Apache web server run on - What about HTTPS?
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.
support TCP Wrappers
The TFTP server uses UDP port 69.
2. What command can you use to query Boolean values?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
A virtual host is a way of hosting multiple sites using a single IP address.
The /var/log/audit/audit.log file contains all policy violations.
getsebool
3. What are the two config files for Postfix called?
Typing the mail or mutt command allows you to read mail from the command line.
The two main config files are master.cf and main.cf.
The nfsstat command can be used to view NFS statistics.
For Apache to run a secure site - the mod_ssl package is required to be installed.
4. Do you need to write changes to the disk when using the parted command? What about fdisk?
The smbpasswd command is used to create Samba users.
Use the top command to view CPU and memory usage.
atq
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 command can be used to view the queue for at service jobs?
run on any port you'd like (provided that port is available)
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.
schedule one-time-only jobs
atq
6. What command disables the SSH service from running when the system boots?
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
generates errors under Red Hat Enterprise Linux 6
chkconfig sshd off
7. What critical step must you take after updating the kernel to a newer version?
rpcbind service
The htpasswd command can be used to password-protect a web page.
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.
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.
8. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The yum and rpm commands are used for package management.
run on any port you'd like (provided that port is available)
9. 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
10. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The SMTP service runs on TCP port 110.
halts the system
Use the setgid flag to create the appropriate permissions (chmod 2770).
11. 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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
have the same effect
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.
useradd -c "Jr Admin" George
12. What is the superblock used for?
The service command is used to start - stop - and manage system services.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
13. The at command is used to ____________. The cron service handles reoccurring system jobs.
service named configtest
schedule one-time-only jobs
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 TFTP server uses UDP port 69.
14. What is SSH used for?
SSH is used for secure remote management of Linux systems.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
15. What port does the DHCP server listen on by default?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The DHCP server listens on port 67 by default.
getfacl
The rndc utility provides a method for managing the DNS server remotely and securely.
16. How would you go about creating a static route?
browseable option
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 route command with the add option to create a static route.
Use the resize2fs command to grow a file system.
17. How can you change the security context of a directory to work with Apache?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
Using the chcon command - you can change the context of a file to work with Apache.
18. How would you disable SELinux protection for NFS - allowing shares to be read/write?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
useradd -c "Jr Admin" George
setsebool -P nfs_export_all_rw=1
SELinux Booleans provide restrictions to different aspects of a service.
19. To grow a file system
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the resize2fs command to grow a file 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.
The -t nfs option is used with the mount command to mount NFS resources.
20. What command can you use to get information about logical volumes?
createrepo
lvdisplay
Version 2 is the latest and most secure version of SSH.
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.
21. What three protocols can you use to perform network installations?
Apache uses port 80 for HTTP and port 443 for HTTPS.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
you have access to the correct packages or repositories.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
22. What is the name of the package that allows you to install VNC?
export one or all resources
defining a %pre section although it is rarely used
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
23. What command do you use to change the permissions on a file or directory - To change ownership?
have the same effect
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /etc/fstab file.
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.
24. 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
25. What command displays your current interfaces and IP address?
You must open TCP ports 20 and 21 for the FTP server to function properly.
This chapter described tdbsm and smbpasswd back-end authentication.
ifconfig
Kickstart supports both basic and advanced partitioning (RAID/LVM).
26. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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 yum and rpm commands are used for package management.
27. How can you check the currently mounted file systems?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Version 2 is the latest and most secure version of SSH.
useradd -c "Jr Admin" George
The mount command lists all currently mounted file systems.
28. Runlevel 0 ___________. Runlevel 6 reboots the system.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
SELinux Booleans provide restrictions to different aspects of a service.
halts the system
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.
29. What command can you use to view system processes and their CPU usage?
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
Use the ps command to view processes and their CPU usage.
By default - the rndc utility listens on port 953.
30. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By defining a %post section - you can run scripts after a kickstart installation is complete.
browseable option
The /etc/fstab file.
31. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
chcon
33. What does the partprobe command do?
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
The tcpdump command is used to monitor network connections on different interfaces.
The user_list file can be used to limit which users have access to the FTP server.
34. 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
35. Which log file is used to keep track of policy violations?
The dig - host - and ping commands can be used to test DNS server functionality.
By default - the rndc utility listens on port 953.
semanage boolean -l
The /var/log/audit/audit.log file contains all policy violations.
36. What command and option do you use to view the description of Boolean values?
semanage boolean -l
defining a %pre section although it is rarely used
The NFS service uses TCP port 2049 by default.
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.
37. What file is used to maintain custom parameters for the kernel during system boot?
By default - the rndc utility listens on port 953.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
This chapter described tdbsm and smbpasswd back-end authentication.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
38. What port must be opened on the firewall for DNS?
choose which mode you'd like it to operate in
chkconfig—list
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
DNS uses port 53.
39. What file needs to be edited so that the system will mount a file system at boot time?
repquota
The /etc/fstab file.
alternatives --config mta
service dhcpd configtest
40. Samba servers can...
The smbpasswd command is used to create Samba users.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
serve both files and printers to users
41. What command and option can you use to enable a service to start on boot?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
rpmbuild
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
42. What is VNC?
schedule one-time-only jobs
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
service dhcpd configtest
VNC is used to control a remote desktop session.
43. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
atq
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.
you have access to the correct packages or repositories.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
44. What command-line program can you use to check your mail?
Use the top command to view CPU and memory usage.
entering rescue mode and repairing the problem.
Typing the mail or mutt command allows you to read mail from the command line.
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.
45. A PXE server eases the automation process but isn't required for...
The smbpasswd command is used to create Samba users.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
kickstart installations to work
By default - Squid runs on port 3128.
46. What two commands are special for dealing with user login events?
The virsh command is used to manage virtual guests.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The lastlog and faillog commands are used to view user login-related events?
The lftp command can be used on a client to test FTP server connections.
47. The firewall service is...
createrepo
enabled by default
SELinux provides enhanced granular security for the Linux operating system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
48. What port does NFS use by default?
serve both files and printers to users
run on any port you'd like (provided that port is available)
The NFS service uses TCP port 2049 by default.
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.
49. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
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
Use the route command with the add option to create a static route.
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.
50. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
generates errors under Red Hat Enterprise Linux 6
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 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.