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. To create a RAID or LVM partition using kickstart
getfacl
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Typing the mail or mutt command allows you to read mail from the command line.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
2. What command can you use to view NFS statistics?
The dig - host - and ping commands can be used to test DNS server functionality.
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.
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 nfsstat command can be used to view NFS statistics.
3. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The lastlog and faillog commands are used to view user login-related events?
kickstart installations to work
4. What client-side command can you use to test your FTP server connection?
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The lftp command can be used on a client to test FTP server connections.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
5. What two ports should be opened on the firewall for the FTP server to function properly?
getfacl
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.
defining a %pre section although it is rarely used
You must open TCP ports 20 and 21 for the FTP server to function properly.
6. What happens to jobs that are scheduled to run while the system is off?
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/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
getfacl
Apache uses port 80 for HTTP and port 443 for HTTPS.
7. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. What are the side effects of shrinking a volume group or logical volume?
cat /proc/mdstat
LUKS encryption
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
9. What command can you use to change the context of files?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
chcon
You can use the remove or erase options with yum to remove a package.
Enforcing during installation
10. 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...
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.
setsebool -P nfs_export_all_rw=1
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
have the same effect
11. What command can you use to create a file system?
The htpasswd command can be used to password-protect a web page.
browseable option
run on any port you'd like (provided that port is available)
mkfs.ext4
12. How would you disable SELinux protection for NFS - allowing shares to be read/write?
SELinux provides enhanced granular security for the Linux operating system.
setsebool -P nfs_export_all_rw=1
entering rescue mode and repairing the problem.
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.
13. What is the default port that Squid runs on?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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
support for TCP Wrappers
By default - Squid runs on port 3128.
14. Before you work with quotas - what do you need to do to the file system?
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 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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
15. What is the name of the section used to run scripts after a kickstart installation?
Using the chcon command - you can change the context of a file to work with Apache.
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.
schedule one-time-only jobs
16. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
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.
serve both files and printers to users
17. What does the testparm command do?
service named configtest
A user's home directory is created under the /home directory.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
18. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
The mount command lists all currently mounted file systems.
The three utilities are: route - ping - and nslookup.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
19. What two commands are special for dealing with user login events?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The lastlog and faillog commands are used to view user login-related events?
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
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.
20. What command can you use to view system processes and their CPU usage?
ifconfig
Use the ps command to view processes and their CPU usage.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
21. What command can you use to manage system services?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The lastlog and faillog commands are used to view user login-related events?
The service command is used to start - stop - and manage system services.
22. Which file shows you all the client IP addresses?
have the same effect
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
23. 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
24. What is the name of the package that allows you to install VNC?
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.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
25. What are the five required directories when building RPMS?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
getfacl
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
26. 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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The user_list file can be used to limit which users have access to the FTP server.
Enforcing during installation
rpmbuild
27. Red Hat Enterprise Linux 6 is the only version that officially supports _______
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
By default - the rndc utility listens on port 953.
The nfsstat command can be used to view NFS statistics.
LUKS encryption
28. What directory is used to represent the virtual file system created by the kernel?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
repquota
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
29. What are SELinux Booleans?
user's home directory in the /etc/skel directory
SELinux Booleans provide restrictions to different aspects of a service.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
via the command line
30. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
alternatives --config mta
31. What command can you use to get information about logical volumes?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
lvdisplay
The du and df commands are used to view available space on the system.
32. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
The lastlog and faillog commands are used to view user login-related events?
Use the setgid flag to create the appropriate permissions (chmod 2770).
33. GRUB has three stages. Can you name them?
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.
By default - the rndc utility listens on port 953.
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
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.
34. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
enabled by default
Sendmail
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
35. How can virtual hosts be used?
via the command line
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
36. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
run on any port you'd like (provided that port is available)
Use the ps command to view processes and their CPU usage.
The -t nfs option is used with the mount command to mount NFS resources.
37. What command would you use to create a group - to add the user George to the group?
chkconfig xinetd --list
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Apache uses port 80 for HTTP and port 443 for HTTPS.
38. What is the /etc/vsftpd/user_list file used for?
you have access to the correct packages or repositories.
rpmbuild
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The user_list file can be used to limit which users have access to the FTP server.
39. What is the xinetd service used for?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Version 2 is the latest and most secure version of SSH.
40. What three commands can you use to help verify that the DNS server is functioning properly?
choose which mode you'd like it to operate in
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The user_list file can be used to limit which users have access to the FTP server.
The dig - host - and ping commands can be used to test DNS server functionality.
41. Which remote management service is installed by default?Can you name the port that it uses?
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.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
The yum and rpm commands are used for package management.
42. There are four types of DNS servers. Name them.
The NFS service uses TCP port 2049 by default.
chcon
The four types of DNS servers are master - slave - caching-only - and forwarding.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
43. What is the biggest benefit to using LVM over basic partitions?
The NFS service uses TCP port 2049 by default.
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.
ifconfig
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.
44. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
The SMTP service runs on TCP port 110.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
45. What is the rndc utility used for?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
setsebool -P nfs_export_all_rw=1
The rndc utility provides a method for managing the DNS server remotely and securely.
The mount command lists all currently mounted file systems.
46. What is the point of using SELinux?
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.
SELinux provides enhanced granular security for the Linux operating system.
The nfsstat command can be used to view NFS statistics.
cat /proc/mdstat
47. What options with the yum command would you use to remove a package?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
By default - the rndc utility listens on port 953.
You can use the remove or erase options with yum to remove a package.
48. Can you put your /boot partition on a RAID 5 array?
The lastlog and faillog commands are used to view user login-related events?
used for kickstart and/or network installs
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.
service sshd statuts
49. What command-line program can you use to check your mail?
amount of RAM
Typing the mail or mutt command allows you to read mail from the command line.
The TFTP server uses UDP port 69.
Enforcing during installation
50. What is the virsh command used for?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The virsh command is used to manage virtual guests.
service named configtest