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 VNC?
VNC is used to control a remote desktop session.
Enforcing during installation
support TCP Wrappers
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
2. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
Version 2 is the latest and most secure version of SSH.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The nfsstat command can be used to view NFS statistics.
serve both files and printers to users
3. What is the default port that Squid runs on?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
By default - Squid runs on port 3128.
4. What option needs to be used with the mount command to mount an NFS resource?
The nfsstat command can be used to view NFS statistics.
The -t nfs option is used with the mount command to mount NFS resources.
chcon
The vsftpd package is used to install an FTP server.
5. There are four types of DNS servers. Name them.
The two main config files are master.cf and main.cf.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
service dhcpd configtest
6. What port does the rndc utility listen on by default?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
By default - the rndc utility listens on port 953.
The service command is used to start - stop - and manage system services.
7. The ____________ is available for each share.
The nfsstat command can be used to view NFS statistics.
browseable option
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.
You add your action to the end of the /home/user01/.bashrc file.
8. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
9. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The TFTP server uses UDP port 69.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
10. What command displays your current interfaces and IP address?
service named configtest
The anonymous_enable=YES option in the main config file allows anonymous uploads.
ifconfig
The /etc/fstab file.
11. What is the virsh command used for?
service sshd statuts
The lftp command can be used on a client to test FTP server connections.
The virsh command is used to manage virtual guests.
The SMTP service runs on TCP port 110.
12. Samba servers can...
support for TCP Wrappers
You can use the remove or erase options with yum to remove a package.
serve both files and printers to users
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
13. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
14. SSH does...
support TCP Wrappers
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.
A user's home directory is created under the /home directory.
Typing the mail or mutt command allows you to read mail from the command line.
15. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
support TCP Wrappers
The two main config files are master.cf and main.cf.
Use the resize2fs command to grow a file system.
16. What two commands are used for package management?
service dhcpd configtest
The yum and rpm commands are used for package management.
The smbstatus command shows you currently mounted Samba resources.
Use the yum groupinstall command to install multiple packages in a single group at once.
17. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
By default - the rndc utility listens on port 953.
alternatives --config mta
enabled by default
user's home directory in the /etc/skel directory
18. What is the main config file for the DHCP service?
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
LUKS encryption
19. What is the superblock used for?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
20. What are the three items that make up LVM?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
Physical volumes - volume groups - and logical volumes.
chcon
21. How would you view all Boolean options for the HTTP service?
The -t nfs option is used with the mount command to mount NFS resources.
SELinux provides enhanced granular security for the Linux operating system.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
getsebool -a | grep http
22. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
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.
browseable option
23. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
By default - the rndc utility listens on port 953.
export one or all resources
service sshd statuts
24. How would you go about creating a static route?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the route command with the add option to create a static route.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
By default - the rndc utility listens on port 953.
25. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
The mount command lists all currently mounted file systems.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the route command with the add option to create a static route.
26. What command can you use to query information from the kernel about RAID arrays?
getfacl
cat /proc/mdstat
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
27. What does it mean if you ping a host and you receive the response Destination Unreachable?
SELinux provides enhanced granular security for the Linux operating system.
Use the route command with the add option to create a static route.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
enabled by default
28. What port does the Apache web server run on - What about HTTPS?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Using the chcon command - you can change the context of a file to work with Apache.
Version 2 is the latest and most secure version of SSH.
29. What command do you use to change the permissions on a file or directory - To change ownership?
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.
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.
browseable option
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.
30. 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
31. What command can you use to monitor and troubleshoot network connections?
rpmbuild
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The tcpdump command is used to monitor network connections on different interfaces.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
32. 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.
The three utilities are: route - ping - and nslookup.
The two main config files are master.cf and main.cf.
getsebool -a | grep http
33. Does a DHCP server allow reserved IP addresses - If so - how?
rpcbind service
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The /var/log/audit/audit.log file contains all policy violations.
34. What command-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The three utilities are: route - ping - and nslookup.
Enforcing during installation
35. What three commands can you use to help verify that the DNS server is functioning properly?
user's home directory in the /etc/skel directory
The dig - host - and ping commands can be used to test DNS server functionality.
The rndc utility provides a method for managing the DNS server remotely and securely.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
36. What is the format of the /etc/shadow file?
atq
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
chkconfig xinetd --list
37. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
The htpasswd command can be used to password-protect a web page.
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.
defining a %pre section although it is rarely used
38. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
defining a %pre section although it is rarely used
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
have the same effect
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.
39. Before you work with ACLs - what do you need to do to the file system?
Enforcing during installation
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the route command with the add option to create a static route.
By default - Squid runs on port 3128.
40. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
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.
enabled by default
chkconfig—list
41. What is PAM used for?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
lvdisplay
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
42. What does the rdnc-confgen command do?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
getsebool -a | grep http
The dig - host - and ping commands can be used to test DNS server functionality.
43. How can you change the security context of a directory to work with Apache?
By default - Squid runs on port 3128.
Using the chcon command - you can change the context of a file to work with Apache.
Use the top command to view CPU and memory usage.
The service command is used to start - stop - and manage system services.
44. Which file shows you all the client IP addresses?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
A virtual host is a way of hosting multiple sites using a single IP address.
45. What is the name of the section used to run scripts after a kickstart installation?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
46. What command can you use to query Boolean values?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getfacl
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
getsebool
47. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The rndc utility provides a method for managing the DNS server remotely and securely.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Sendmail
useradd -c "Jr Admin" George
48. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The three utilities are: route - ping - and nslookup.
You can use the remove or erase options with yum to remove a package.
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 SMTP service runs on TCP port 110.
49. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
used for kickstart and/or network installs
Enforcing during installation
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 service command is used to start - stop - and manage system services.
50. 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
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
generates errors under Red Hat Enterprise Linux 6
The DHCP server listens on port 67 by default.