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. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The nfsstat command can be used to view NFS statistics.
amount of RAM
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
setsebool -P nfs_export_all_rw=1
2. The firewall service is...
entering rescue mode and repairing the problem.
A virtual host is a way of hosting multiple sites using a single IP address.
enabled by default
The TFTP server uses UDP port 69.
3. 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
4. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The virsh command is used to manage virtual guests.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
For Apache to run a secure site - the mod_ssl package is required to be installed.
5. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
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 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.
createrepo
6. What command is used to show all services being controlled by the xinetd daemon?
By default - Squid runs on port 3128.
chkconfig xinetd --list
getsebool -a | grep http
rpcbind service
7. What command displays your current interfaces and IP address?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
chkconfig sshd off
ifconfig
8. What is a gateway used for on a network?
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.
mkfs.ext4
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
You add your action to the end of the /home/user01/.bashrc file.
9. What command can you use to manage system services?
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.
service sshd statuts
service dhcpd configtest
The service command is used to start - stop - and manage system services.
10. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
schedule one-time-only jobs
The yum and rpm commands are used for package management.
The rpm command can operate in install - query - or verify modes.
11. The at command is used to ____________. The cron service handles reoccurring system jobs.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
schedule one-time-only jobs
12. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
load balancing and redundancy benefits
Use the resize2fs command to grow a file system.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
13. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. How would you go about creating a static route?
The lastlog and faillog commands are used to view user login-related events?
The two main config files are master.cf and main.cf.
Use the route command with the add option to create a static route.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
15. Which version of SSH should you use?
The lftp command can be used on a client to test FTP server connections.
Version 2 is the latest and most secure version of SSH.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Enforcing during installation
16. What critical step must you take after updating the kernel to a newer version?
LUKS encryption
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.
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.
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.
17. 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
18. What option at the GRUB boot menu can you use to append something to a kernel?
chcon
semanage boolean -l
Enforcing during installation
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
19. What is the difference between an A record and a PTR record?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
amount of RAM
Use the setgid flag to create the appropriate permissions (chmod 2770).
20. 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...
have the same effect
export one or all resources
Enforcing during installation
By default - the rndc utility listens on port 953.
21. What are the two types of back-end authentication mechanisms discussed in this chapter?
You can use the remove or erase options with yum to remove a package.
alternatives --config mta
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
This chapter described tdbsm and smbpasswd back-end authentication.
22. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
repquota
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The rpm command can operate in install - query - or verify modes.
23. How can you change the security context of a directory to work with Apache?
By default - the rndc utility listens on port 953.
load balancing and redundancy benefits
You can use the remove or erase options with yum to remove a package.
Using the chcon command - you can change the context of a file to work with Apache.
24. To grow a file system
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.
useradd -c "Jr Admin" George
You can use the authconfig-tui command or the authconfig command.
Use the resize2fs command to grow a file system.
25. What are the three items that make up LVM?
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
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Physical volumes - volume groups - and logical volumes.
SELinux provides enhanced granular security for the Linux operating system.
26. What is the name of the section used to run scripts after a kickstart installation?
atq
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
Physical volumes - volume groups - and logical volumes.
27. 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
28. What is the virsh command used for?
chkconfig sshd off
The virsh command is used to manage virtual guests.
lvdisplay
Use the resize2fs command to grow a file system.
29. What is the xinetd service used for?
user's home directory in the /etc/skel directory
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
service named configtest
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
30. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
31. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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.
alternatives --config mta
service dhcpd configtest
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.
32. Can you put your /boot partition on a RAID 5 array?
chcon
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
setsebool -P nfs_export_all_rw=1
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.
33. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
service dhcpd configtest
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
getsebool
The nfsstat command can be used to view NFS statistics.
34. What is SSH used for?
SSH is used for secure remote management of Linux systems.
schedule one-time-only jobs
Network installations can be performed using the HTTP - FTP - and NFS protocols.
atq
35. How can you list all services on the system to tell whether they will boot during startup?
The vsftpd package is used to install an FTP server.
chkconfig—list
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
ifconfig
36. 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.
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
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.
Use the route command with the add option to create a static route.
37. What option is used to allow anonymous uploads to the FTP server?
Use the ps command to view processes and their CPU usage.
Use the yum groupinstall command to install multiple packages in a single group at once.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
38. What command is used to create an RPM package?
Apache uses port 80 for HTTP and port 443 for HTTPS.
enabled by default
rpmbuild
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.
39. What are the three modes in which the rpm command can operate?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
The lftp command can be used on a client to test FTP server connections.
40. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
The nfsstat command can be used to view NFS statistics.
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.
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.
41. How can virtual hosts be used?
choose which mode you'd like it to operate in
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.
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
42. What are the side effects of shrinking a volume group or logical volume?
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.
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.
SSH is used for secure remote management of Linux systems.
VNC is used to control a remote desktop session.
43. What command can you use to query information from the kernel about RAID arrays?
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.
cat /proc/mdstat
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
SSH is used for secure remote management of Linux systems.
44. SSH does...
This chapter described tdbsm and smbpasswd back-end authentication.
support TCP Wrappers
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
defining a %pre section although it is rarely used
45. What command can you use to test the config files before starting the DNS service?
service named configtest
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
46. What command can be used to view the queue for at service jobs?
support for TCP Wrappers
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
atq
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
47. What is the rndc utility used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
have the same effect
The rndc utility provides a method for managing the DNS server remotely and securely.
service named configtest
48. What options with the yum command would you use to remove a package?
SSH is used for secure remote management of Linux systems.
The four types of DNS servers are master - slave - caching-only - and forwarding.
You can use the remove or erase options with yum to remove a package.
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.
49. Does a DHCP server allow reserved IP addresses - If so - how?
browseable option
The rpm command can operate in install - query - or verify modes.
via the command line
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
50. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
service dhcpd configtest
mkfs.ext4