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 the xinetd service used for?
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The rpm command can operate in install - query - or verify modes.
useradd -c "Jr Admin" George
2. How can you list all services on the system to tell whether they will boot during startup?
The two main config files are master.cf and main.cf.
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 du and df commands are used to view available space on the system.
chkconfig—list
3. What is a gateway used for on a network?
A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
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.
schedule one-time-only jobs
The smbstatus command shows you currently mounted Samba resources.
4. What command do you use to report information on quota usage?
repquota
The lastlog and faillog commands are used to view user login-related events?
choose which mode you'd like it to operate in
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
5. What command is used to show all services being controlled by the xinetd daemon?
SELinux provides enhanced granular security for the Linux operating system.
chkconfig xinetd --list
setsebool -P nfs_export_all_rw=1
By default - Squid runs on port 3128.
6. What is the name of the section used to run scripts after a kickstart installation?
A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
SELinux Booleans provide restrictions to different aspects of a service.
7. SSH does...
support TCP Wrappers
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
DNS uses port 53.
The user_list file can be used to limit which users have access to the FTP server.
8. What command can you use to view NFS statistics?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The nfsstat command can be used to view NFS statistics.
9. What command is used to create a user for Samba?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The smbpasswd command is used to create Samba users.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
schedule one-time-only jobs
10. How would you install a group of packages all at a single time?
The lastlog and faillog commands are used to view user login-related events?
The mount command lists all currently mounted file systems.
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.
11. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
A user's home directory is created under the /home directory.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
12. Red Hat Enterprise Linux 6 is the only version that officially supports _______
A user's home directory is created under the /home directory.
LUKS encryption
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
13. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
choose which mode you'd like it to operate in
You can use the authconfig-tui command or the authconfig command.
The vsftpd package is used to install an FTP server.
14. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The dig - host - and ping commands can be used to test DNS server functionality.
used for kickstart and/or network installs
generates errors under Red Hat Enterprise Linux 6
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
15. Before you work with ACLs - what do you need to do to the file system?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
16. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /etc/fstab file.
mkfs.ext4
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.
17. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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>.
rpmbuild
amount of RAM
18. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The TFTP server uses UDP port 69.
Sendmail
This chapter described tdbsm and smbpasswd back-end authentication.
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
19. A slave DNS server provides...
Typing the mail or mutt command allows you to read mail from the command line.
cat /proc/mdstat
choose which mode you'd like it to operate in
load balancing and redundancy benefits
20. What port must be opened on the firewall for DNS?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
DNS uses port 53.
21. What is NAT - How is it used?
choose which mode you'd like it to operate in
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.
You can use the remove or erase options with yum to remove a package.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
22. What three protocols can you use to perform network installations?
The SMTP service runs on TCP port 110.
via the command line
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
23. What command disables the SSH service from running when the system boots?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
chkconfig sshd off
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
24. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
chkconfig—list
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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
25. 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.
chkconfig—list
SELinux provides enhanced granular security for the Linux operating system.
getfacl
26. Which log file is used to keep track of policy violations?
Use the ps command to view processes and their CPU usage.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
defining a %pre section although it is rarely used
The /var/log/audit/audit.log file contains all policy violations.
27. What command can you use to get information about logical volumes?
For Apache to run a secure site - the mod_ssl package is required to be installed.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
lvdisplay
28. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
rpmbuild
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
29. What command do you use to change the permissions on a file or directory - To change ownership?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
user's home directory in the /etc/skel directory
30. What are the three items that make up 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.
You can use the remove or erase options with yum to remove a package.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Physical volumes - volume groups - and logical volumes.
31. What is the biggest benefit to using LVM over basic partitions?
The du and df commands are used to view available space on the system.
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
32. What is the /etc/hosts file used for?
33. What command and option do you use to view the description of Boolean values?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
Version 2 is the latest and most secure version of SSH.
semanage boolean -l
34. What command displays your current interfaces and IP address?
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.
The du and df commands are used to view available space on the system.
ifconfig
35. How can you check the currently mounted file systems?
The service command is used to start - stop - and manage system services.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
rpmbuild
The mount command lists all currently mounted file systems.
36. What benefit does a web proxy provide to your network?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
37. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
You can use the remove or erase options with yum to remove a package.
mkfs.ext4
chkconfig xinetd --list
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.
38. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
schedule one-time-only jobs
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
you have access to the correct packages or repositories.
39. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
Apache uses port 80 for HTTP and port 443 for HTTPS.
You add your action to the end of the /home/user01/.bashrc file.
This chapter described tdbsm and smbpasswd back-end authentication.
run on any port you'd like (provided that port is available)
40. 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.
repquota
enabled by default
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
41. What does the partprobe command do?
alternatives --config mta
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
getsebool -a | grep http
42. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
A virtual host is a way of hosting multiple sites using a single IP address.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
43. Which version of SSH should you use?
via the command line
Use the top command to view CPU and memory usage.
Version 2 is the latest and most secure version of SSH.
The two main config files are master.cf and main.cf.
44. What command can you use to manage system services?
run on any port you'd like (provided that port is available)
The service command is used to start - stop - and manage system services.
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.
LUKS encryption
45. What is the difference between an ext2 and ext3 file system?
46. What is the point of using SELinux?
This chapter described tdbsm and smbpasswd back-end authentication.
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
SELinux provides enhanced granular security for the Linux operating system.
47. What command can be used to view the queue for at service jobs?
atq
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The virsh command is used to manage virtual guests.
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.
48. A service needs to have _______________ to be able to use it.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The lastlog and faillog commands are used to view user login-related events?
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.
support for TCP Wrappers
49. What is a virtual host?
Use the route command with the add option to create a static route.
A virtual host is a way of hosting multiple sites using a single IP address.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
VNC is used to control a remote desktop session.
50. Where are Yum repository config files located?
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.
via the command line
atq
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.