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 command and option do you use to view the description of Boolean values?
semanage boolean -l
have the same effect
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.
When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
2. What two commands are used for package management?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The yum and rpm commands are used for package management.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
3. What command and options can you use to update the time?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The smbstatus command shows you currently mounted Samba resources.
4. What does it mean if you ping a host and you receive the response Destination Unreachable?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The rpm command can operate in install - query - or verify modes.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
5. What option would you use to query an installed package using the rpm command?
You can use the remove or erase options with yum to remove a package.
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.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
6. What three components are needed to fully automate a kickstart installation?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The vsftpd package is used to install an FTP server.
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.
7. What commands can you use to add a client machine to an LDAP server?
Physical volumes - volume groups - and logical volumes.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
You can use the authconfig-tui command or the authconfig command.
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.
8. What is a swap? Is it created as a partition or device file?
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 nfsstat command can be used to view NFS statistics.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
9. How can you change the security context of a directory to work with Apache?
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Using the chcon command - you can change the context of a file to work with Apache.
10. What command can you use to test the config files before starting the DNS service?
getsebool -a | grep http
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
service named configtest
11. What command is used to create a user for Samba?
lvdisplay
The smbpasswd command is used to create Samba users.
Use the yum groupinstall command to install multiple packages in a single group at once.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
12. What command do you use to change the permissions on a file or directory - To change ownership?
alternatives --config mta
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
13. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The mount command lists all currently mounted file systems.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
14. What is a gateway used for on a network?
service dhcpd configtest
Using the chcon command - you can change the context of a file to work with Apache.
defining a %pre section although it is rarely used
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.
15. What command can be used to view the queue for at service jobs?
atq
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.
The du and df commands are used to view available space on the system.
halts the system
16. What port does the Apache web server run on - What about HTTPS?
Sendmail
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
A virtual host is a way of hosting multiple sites using a single IP address.
17. What command can you use to create a file system?
mkfs.ext4
rpmbuild
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
have the same effect
18. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
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.
SELinux Booleans provide restrictions to different aspects of a service.
The /etc/fstab file.
19. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
20. What are the five required directories when building RPMS?
This chapter described tdbsm and smbpasswd back-end authentication.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
21. The firewall service is...
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The virsh command is used to manage virtual guests.
enabled by default
The dig - host - and ping commands can be used to test DNS server functionality.
22. 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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
serve both files and printers to users
user's home directory in the /etc/skel directory
23. You must dictate the ____________ you want allocated to your virtual machine when you create it.
For Apache to run a secure site - the mod_ssl package is required to be installed.
amount of RAM
The user_list file can be used to limit which users have access to the FTP server.
export one or all resources
24. What is the format of the /etc/shadow file?
mkfs.ext4
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
Use the top command to view CPU and memory usage.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
25. Can you name the two commands that can be used to view the free space on the system?
via the command line
The du and df commands are used to view available space on the system.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
support for TCP Wrappers
26. What file is used to maintain custom parameters for the kernel during system boot?
Use the ps command to view processes and their CPU usage.
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
27. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
VNC is used to control a remote desktop session.
28. Samba servers can...
serve both files and printers to users
The tcpdump command is used to monitor network connections on different interfaces.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
29. What command can you use to query information from the kernel about RAID arrays?
VNC is used to control a remote desktop session.
lvdisplay
getsebool
cat /proc/mdstat
30. 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...
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.
have the same effect
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.
DNS uses port 53.
31. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
chcon
rpcbind service
32. The ____________ is available for each share.
The lftp command can be used on a client to test FTP server connections.
service sshd statuts
browseable option
The lastlog and faillog commands are used to view user login-related events?
33. What are the two types of back-end authentication mechanisms discussed in this chapter?
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 setgid flag to create the appropriate permissions (chmod 2770).
This chapter described tdbsm and smbpasswd back-end authentication.
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.
34. What is the top command used for?
Use the top command to view CPU and memory usage.
Use the setgid flag to create the appropriate permissions (chmod 2770).
you have access to the correct packages or repositories.
have the same effect
35. A PXE server eases the automation process but isn't required for...
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
SSH is used for secure remote management of Linux systems.
kickstart installations to work
36. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
via the command line
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
ifconfig
37. What command can you use to create a new SSL certificate?
Enforcing during installation
The two main config files are master.cf and main.cf.
By default - Squid runs on port 3128.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
38. What command and option can you use to enable a service to start on boot?
user's home directory in the /etc/skel directory
Use the top command to view CPU and memory usage.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
39. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
createrepo
40. What are the three modes in which the rpm command can operate?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The service command is used to start - stop - and manage system services.
The rpm command can operate in install - query - or verify modes.
A virtual host is a way of hosting multiple sites using a single IP address.
41. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
42. What is the /var/lib/nfs/etab file used for?
chkconfig xinetd --list
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
service httpd configtest
The three utilities are: route - ping - and nslookup.
43. 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.
Sendmail
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.
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.
44. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The service command is used to start - stop - and manage system services.
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.
atq
45. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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.
46. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
Physical volumes - volume groups - and logical volumes.
By default - Squid runs on port 3128.
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.
47. 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
48. There are four types of DNS servers. Name them.
The virsh command is used to manage virtual guests.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the ps command to view processes and their CPU usage.
The four types of DNS servers are master - slave - caching-only - and forwarding.
49. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
you have access to the correct packages or repositories.
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.
chkconfig—list
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
50. What command can you use to monitor and troubleshoot network connections?
You add your action to the end of the /home/user01/.bashrc file.
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.
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.
The tcpdump command is used to monitor network connections on different interfaces.