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. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Sendmail
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 /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
2. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
Use the yum groupinstall command to install multiple packages in a single group at once.
Physical volumes - volume groups - and logical volumes.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
3. What is the default port that Squid runs on?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By default - Squid runs on port 3128.
DNS uses port 53.
4. What command can you use to check the config file of the DHCP server?
The four types of DNS servers are master - slave - caching-only - and forwarding.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
service dhcpd configtest
useradd -c "Jr Admin" George
5. The exportfs command is used to...
schedule one-time-only jobs
export one or all resources
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
load balancing and redundancy benefits
6. To create a RAID or LVM partition using kickstart
You must open TCP ports 20 and 21 for the FTP server to function 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.
service httpd configtest
Kickstart supports both basic and advanced partitioning (RAID/LVM).
7. What option at the GRUB boot menu can you use to append something to a kernel?
SELinux Booleans provide restrictions to different aspects of a service.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
createrepo
The -t nfs option is used with the mount command to mount NFS resources.
8. Most boot issues can be resolved by...
service sshd statuts
entering rescue mode and repairing the problem.
halts the system
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.
9. There are four types of DNS servers. Name them.
Use the route command with the add option to create a static route.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The four types of DNS servers are master - slave - caching-only - and forwarding.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
10. What option would you use to query an installed package using the rpm command?
chkconfig—list
The -t nfs option is used with the mount command to mount NFS resources.
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.
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.
11. What is the virsh command used for?
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.
via the command line
The virsh command is used to manage virtual guests.
The mount command lists all currently mounted file systems.
12. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The tcpdump command is used to monitor network connections on different interfaces.
repquota
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.
13. How can you list all services on the system to tell whether they will boot during startup?
setsebool -P nfs_export_all_rw=1
Use the yum groupinstall command to install multiple packages in a single group at once.
chkconfig—list
This command reboots virtual guest Client04.
14. What are the five required directories when building RPMS?
The mount command lists all currently mounted file systems.
A user's home directory is created under the /home directory.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
15. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
used for kickstart and/or network installs
kickstart installations to work
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 -t nfs option is used with the mount command to mount NFS resources.
16. What are SELinux Booleans?
repquota
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
SELinux Booleans provide restrictions to different aspects of a service.
LUKS encryption
17. What command can you use to view mounted Samba shares?
The DHCP server listens on port 67 by default.
The nfsstat command can be used to view NFS statistics.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The smbstatus command shows you currently mounted Samba resources.
18. What two commands are special for dealing with user login events?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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 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?
19. What command can be used to easily list all the options in the FTP main config file?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
halts the system
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
20. What does the partprobe command do?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
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. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
chkconfig sshd off
DNS uses port 53.
serve both files and printers to users
22. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
rpmbuild
23. What is PAM used for?
You add your action to the end of the /home/user01/.bashrc 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.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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
24. What command disables the SSH service from running when the system boots?
The service command is used to start - stop - and manage system services.
Use the yum groupinstall command to install multiple packages in a single group at once.
used for kickstart and/or network installs
chkconfig sshd off
25. How would you install a group of packages all at a single time?
The htpasswd command can be used to password-protect a web page.
browseable option
Use the yum groupinstall command to install multiple packages in a single group at once.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
26. The firewall service is...
enabled by default
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.
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
For Apache to run a secure site - the mod_ssl package is required to be installed.
27. What is the biggest benefit to using LVM over basic partitions?
service dhcpd configtest
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.
run on any port you'd like (provided that port is available)
amount of RAM
28. You must dictate the ____________ you want allocated to your virtual machine when you create it.
getsebool
export one or all resources
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.
amount of RAM
29. What is VNC?
VNC is used to control a remote desktop session.
used for kickstart and/or network installs
Use the resize2fs command to grow a file system.
Using the chcon command - you can change the context of a file to work with Apache.
30. What is the top command used for?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
Use the top command to view CPU and memory usage.
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.
chcon
31. What command can you use to test the config files before starting the DNS service?
The rpm command can operate in install - query - or verify modes.
alternatives --config mta
defining a %pre section although it is rarely used
service named configtest
32. What three components are needed to fully automate a kickstart installation?
browseable option
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
getfacl
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
33. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
halts the system
rpmbuild
LUKS encryption
34. What option needs to be used with the mount command to mount an NFS resource?
halts the system
You add your action to the end of the /home/user01/.bashrc file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The -t nfs option is used with the mount command to mount NFS resources.
35. What command (and options) can be used to create a user named George with the description "Jr Admin"?
You can use the authconfig-tui command or the authconfig command.
useradd -c "Jr Admin" George
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
service sshd statuts
36. 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.
Use the top command to view CPU and memory usage.
Use the route command with the add option to create a static route.
lvdisplay
37. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
38. What command can you use to view NFS statistics?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The nfsstat command can be used to view NFS statistics.
The three utilities are: route - ping - and nslookup.
39. What command can be used to view the queue for at service jobs?
LUKS encryption
VNC is used to control a remote desktop session.
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.
atq
40. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
41. What command can you use to view the current ACL on a file?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
getfacl
SELinux provides enhanced granular security for the Linux operating system.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
42. What three commands can you use to help verify that the DNS server is functioning properly?
useradd -c "Jr Admin" George
getfacl
export one or all resources
The dig - host - and ping commands can be used to test DNS server functionality.
43. What command can you use to manage system services?
serve both files and printers to users
chcon
LUKS encryption
The service command is used to start - stop - and manage system services.
44. What two ports should be opened on the firewall for the FTP server to function properly?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
mkfs.ext4
45. What is the rndc utility used for?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The -t nfs option is used with the mount command to mount NFS resources.
SSH is used for secure remote management of Linux systems.
The rndc utility provides a method for managing the DNS server remotely and securely.
46. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The user_list file can be used to limit which users have access to the FTP server.
The service command is used to start - stop - and manage system services.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
47. What is the name of the package that allows you to install VNC?
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
Enforcing during installation
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
48. Before you work with quotas - what do you need to do to the file system?
setsebool -P nfs_export_all_rw=1
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The yum and rpm commands are used for package management.
chkconfig xinetd --list
49. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
service sshd statuts
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the setgid flag to create the appropriate permissions (chmod 2770).
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
50. What does the testparm command do?
load balancing and redundancy benefits
The rpm command can operate in install - query - or verify modes.
export one or all resources
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.