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 is used to create an RPM package?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
rpmbuild
The smbpasswd command is used to create Samba users.
mkfs.ext4
2. What command can you use to monitor and troubleshoot network connections?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The tcpdump command is used to monitor network connections on different interfaces.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The smbstatus command shows you currently mounted Samba resources.
3. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
amount of RAM
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
4. What does virsh reboot Client04 do?
The smbstatus command shows you currently mounted Samba resources.
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.
This command reboots virtual guest Client04.
Enforcing during installation
5. What is the superblock used for?
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.
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
6. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
This command reboots virtual guest Client04.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
support for TCP Wrappers
7. What port on the firewall needs to be open for the TFTP server to work?
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 TFTP server uses UDP port 69.
Use the resize2fs command to grow a file system.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
8. What benefit does a web proxy provide to your network?
setsebool -P nfs_export_all_rw=1
The user_list file can be used to limit which users have access to the FTP server.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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 three commands can you use to help verify that the DNS server is functioning properly?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The dig - host - and ping commands can be used to test DNS server functionality.
By default - Squid runs on port 3128.
Use the yum groupinstall command to install multiple packages in a single group at once.
10. What is the benefit to using centralized authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
11. Can you name three utilities that can be used for network or DNS client troubleshooting?
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.
The three utilities are: route - ping - and nslookup.
chkconfig sshd off
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
12. A slave DNS server provides...
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.
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.
load balancing and redundancy benefits
13. How would you disable SELinux protection for NFS - allowing shares to be read/write?
Enforcing during installation
You can use the authconfig-tui command or the authconfig command.
setsebool -P nfs_export_all_rw=1
The -t nfs option is used with the mount command to mount NFS resources.
14. What client-side command can you use to test your FTP server connection?
setsebool -P nfs_export_all_rw=1
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The lftp command can be used on a client to test FTP server connections.
support TCP Wrappers
15. What command can you use to manage system services?
Sendmail
The service command is used to start - stop - and manage system services.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The tcpdump command is used to monitor network connections on different interfaces.
16. Can you name the two commands that can be used to view the free space on the system?
By default - the rndc utility listens on port 953.
The lftp command can be used on a client to test FTP server connections.
The du and df commands are used to view available space on the system.
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.
17. Which file shows you all the client IP addresses?
Enforcing during installation
amount of RAM
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The smbstatus command shows you currently mounted Samba resources.
18. SSH does...
support TCP Wrappers
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 three utilities are: route - ping - and nslookup.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
19. What is SSH used for?
For Apache to run a secure site - the mod_ssl package is required to be installed.
VNC is used to control a remote desktop session.
SSH is used for secure remote management of Linux systems.
Enforcing during installation
20. How do you run a command with elevated privileges?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
choose which mode you'd like it to operate in
generates errors under Red Hat Enterprise Linux 6
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
21. What command do you use to report information on quota usage?
repquota
The htpasswd command can be used to password-protect a web page.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
22. Which remote management service is installed by default?Can you name the port that it uses?
For Apache to run a secure site - the mod_ssl package is required to be installed.
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 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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
23. Where are Yum repository config files located?
VNC is used to control a remote desktop session.
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 user's home directory is created under the /home directory.
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.
24. To grow a file system
The dig - host - and ping commands can be used to test DNS server functionality.
choose which mode you'd like it to operate in
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.
Use the resize2fs command to grow a file system.
25. What port does the SMTP service run on?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The NFS service uses TCP port 2049 by default.
The SMTP service runs on TCP port 110.
The du and df commands are used to view available space on the system.
26. What port does the Apache web server run on - What about HTTPS?
schedule one-time-only jobs
Typing the mail or mutt command allows you to read mail from the command line.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
27. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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
You can use the authconfig-tui command or the authconfig command.
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 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.
28. What file needs to be edited so that the system will mount a file system at boot time?
getfacl
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Enforcing during installation
The /etc/fstab file.
29. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
Use the resize2fs command to grow a file system.
support for TCP Wrappers
30. What happens if you call the command from question 3 with the -c option after it has already been run?
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.
user's home directory in the /etc/skel directory
run on any port you'd like (provided that port is available)
31. Red Hat Enterprise Linux 6 is the only version that officially supports _______
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The nfsstat command can be used to view NFS statistics.
LUKS encryption
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
32. 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
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
semanage boolean -l
SELinux provides enhanced granular security for the Linux operating system.
33. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
alternatives --config mta
service named configtest
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
34. Before you work with ACLs - what do you need to do to the file system?
halts the system
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
35. What is the /var/lib/nfs/etab file used for?
chcon
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
36. What command can you use to create a file system?
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.
The -t nfs option is used with the mount command to mount NFS resources.
mkfs.ext4
You add your action to the end of the /home/user01/.bashrc file.
37. 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
38. What port does the rndc utility listen on by default?
The mount command lists all currently mounted file systems.
The /etc/fstab file.
By default - the rndc utility listens on port 953.
semanage boolean -l
39. What is the name of the section used to run scripts after a kickstart installation?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.
alternatives --config mta
40. What command can you use to change the context of files?
The rpm command can operate in install - query - or verify modes.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
chcon
By default - the rndc utility listens on port 953.
41. What command can you use to validate the syntax of the Apache config file?
The TFTP server uses UDP port 69.
Use the route command with the add option to create a static route.
The nfsstat command can be used to view NFS statistics.
service httpd configtest
42. What does the rdnc-confgen command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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
Network installations can be performed using the HTTP - FTP - and NFS protocols.
43. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
service dhcpd configtest
chkconfig—list
serve both files and printers to users
44. The at command is used to ____________. The cron service handles reoccurring system jobs.
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.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
support for TCP Wrappers
schedule one-time-only jobs
45. What three components are needed to fully automate a kickstart installation?
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.
By default - Squid runs on port 3128.
via the command line
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
46. What is the difference between an A record and a PTR record?
generates errors under Red Hat Enterprise Linux 6
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
repquota
Enforcing during installation
47. What does it mean if you ping a host and you receive the response Destination Unreachable?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
export one or all resources
atq
48. What are the three items that make up LVM?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
rpcbind service
You can use the remove or erase options with yum to remove a package.
Physical volumes - volume groups - and logical volumes.
49. 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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
cat /proc/mdstat
service sshd statuts
Enforcing during installation
50. What is the top command used for?
The three utilities are: route - ping - and nslookup.
The du and df commands are used to view available space on the system.
Use the top command to view CPU and memory usage.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.