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. Before you work with ACLs - what do you need to do to the file system?
chkconfig sshd off
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
service named configtest
For Apache to run a secure site - the mod_ssl package is required to be installed.
2. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
A virtual host is a way of hosting multiple sites using a single IP address.
3. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
4. What file is used to maintain custom parameters for the kernel during system boot?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
5. What is VNC?
cat /proc/mdstat
The NFS service uses TCP port 2049 by default.
entering rescue mode and repairing the problem.
VNC is used to control a remote desktop session.
6. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
getfacl
Enforcing during installation
7. How can virtual hosts be used?
load balancing and redundancy benefits
By default - Squid runs on port 3128.
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 are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
8. What two commands are used for package management?
kickstart installations to work
service httpd configtest
A user's home directory is created under the /home directory.
The yum and rpm commands are used for package management.
9. 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
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
By default - the rndc utility listens on port 953.
10. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Enforcing during installation
support TCP Wrappers
The du and df commands are used to view available space on the system.
11. What are the two config files for Postfix called?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
By default - Squid runs on port 3128.
The two main config files are master.cf and main.cf.
12. 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
13. What three components are needed to fully automate a kickstart installation?
Use the setgid flag to create the appropriate permissions (chmod 2770).
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
chkconfig sshd off
14. 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
15. 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 ping command can be used to verify connectivity to another host.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Typing the mail or mutt command allows you to read mail from the command line.
16. What is the xinetd service used for?
The /var/log/audit/audit.log file contains all policy violations.
Use the top command to view CPU and memory usage.
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.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
17. What is the name of the package that allows you to install VNC?
run on any port you'd like (provided that port is available)
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The dig - host - and ping commands can be used to test DNS server functionality.
18. What command can you use to view NFS statistics?
Physical volumes - volume groups - and logical volumes.
getsebool -a | grep http
The nfsstat command can be used to view NFS statistics.
halts the system
19. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
run on any port you'd like (provided that port is available)
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.
service sshd statuts
chcon
20. What port does NFS use by default?
schedule one-time-only jobs
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
You can use the authconfig-tui command or the authconfig command.
The NFS service uses TCP port 2049 by default.
21. How do you run a command with elevated privileges?
Using the chcon command - you can change the context of a file to work with Apache.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers 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 route command with the add option to create a static route.
22. What is the virsh command used for?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The virsh command is used to manage virtual guests.
By default - Squid runs on port 3128.
useradd -c "Jr Admin" George
23. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
This command reboots virtual guest Client04.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
rpcbind service
amount of RAM
24. What port must be opened on the firewall for DNS?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
DNS uses port 53.
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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
25. Which log file is used to keep track of policy violations?
have the same effect
support TCP Wrappers
The /var/log/audit/audit.log file contains all policy violations.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
26. 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.
load balancing and redundancy benefits
The two main config files are master.cf and main.cf.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
27. 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
The vsftpd package is used to install an FTP server.
The yum and rpm commands are used for package management.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
28. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
SELinux Booleans provide restrictions to different aspects of a service.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
For Apache to run a secure site - the mod_ssl package is required to be installed.
29. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Typing the mail or mutt command allows you to read mail from the command line.
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.
service sshd statuts
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
30. What is a swap? Is it created as a partition or device file?
The -t nfs option is used with the mount command to mount NFS resources.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
support for TCP Wrappers
31. What command can you use to view the current ACL on a file?
getfacl
support TCP Wrappers
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.
halts the system
32. The exportfs command is used to...
getfacl
support TCP Wrappers
export one or all resources
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
33. Where are Yum repository config files located?
This command reboots virtual guest Client04.
defining a %pre section although it is rarely used
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.
Sendmail
34. 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
35. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
service httpd configtest
enabled by default
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.
36. What option needs to be used with the mount command to mount an NFS resource?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
This command reboots virtual guest Client04.
The yum and rpm commands are used for package management.
The -t nfs option is used with the mount command to mount NFS resources.
37. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
entering rescue mode and repairing the problem.
This chapter described tdbsm and smbpasswd back-end authentication.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
38. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The ping command can be used to verify connectivity to another host.
rpcbind service
39. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
This chapter described tdbsm and smbpasswd back-end authentication.
Enforcing during installation
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Use the yum groupinstall command to install multiple packages in a single group at once.
40. What are the five required directories when building RPMS?
A virtual host is a way of hosting multiple sites using a single IP address.
The rndc utility provides a method for managing the DNS server remotely and securely.
have the same effect
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
41. What command can you use to query Boolean values?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
getsebool
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
choose which mode you'd like it to operate in
42. Runlevel 0 ___________. Runlevel 6 reboots the system.
The four types of DNS servers are master - slave - caching-only - and forwarding.
halts the system
browseable option
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.
43. What command can you use to change the context of files?
The rndc utility provides a method for managing the DNS server remotely and securely.
used for kickstart and/or network installs
run on any port you'd like (provided that port is available)
chcon
44. 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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
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.
45. What command can you use to query information from the kernel about RAID arrays?
entering rescue mode and repairing the problem.
support TCP Wrappers
cat /proc/mdstat
The print option is used with both the fdisk and parted commands to display the current partition tables.
46. To create a RAID or LVM partition using kickstart
Apache uses port 80 for HTTP and port 443 for HTTPS.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
47. What is the biggest benefit to using LVM over basic partitions?
The smbpasswd command is used to create Samba users.
The ping command can be used to verify connectivity to another host.
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.
SSH is used for secure remote management of Linux systems.
48. What command can be used to easily list all the options in the FTP main config file?
service sshd statuts
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
49. What port does the rndc utility listen on by default?
Use the ps command to view processes and their CPU usage.
By default - the rndc utility listens on port 953.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The NFS service uses TCP port 2049 by default.
50. What is a gateway used for on a network?
Enforcing during installation
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.
The DHCP server listens on port 67 by default.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.