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 happens to jobs that are scheduled to run while the system is off?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The DHCP server listens on port 67 by default.
The SMTP service runs on TCP port 110.
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 command and option do you use to view the description of Boolean values?
via the command line
semanage boolean -l
run on any port you'd like (provided that port is available)
Using the chcon command - you can change the context of a file to work with Apache.
3. What is the /etc/vsftpd/user_list file used for?
The smbstatus command shows you currently mounted Samba resources.
The user_list file can be used to limit which users have access to the FTP server.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
4. What port does the rndc utility listen on by default?
choose which mode you'd like it to operate in
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 user_list file can be used to limit which users have access to the FTP server.
By default - the rndc utility listens on port 953.
5. 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.
chkconfig sshd off
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.
choose which mode you'd like it to operate in
6. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
The smbpasswd command is used to create Samba users.
have the same effect
Enforcing during installation
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
7. What command can you use to validate the syntax of the Apache config file?
have the same effect
cat /proc/mdstat
The smbpasswd command is used to create Samba users.
service httpd configtest
8. How do you run a command with elevated privileges?
support for TCP Wrappers
A user's home directory is created under the /home directory.
chcon
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
9. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SELinux Booleans provide restrictions to different aspects of a service.
LUKS encryption
The virsh command is used to manage virtual guests.
10. 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
11. To create a RAID or LVM partition using kickstart
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Enforcing during installation
The three utilities are: route - ping - and nslookup.
12. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
The user_list file can be used to limit which users have access to the FTP server.
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 add your action to the end of the /home/user01/.bashrc file.
Enforcing during installation
13. What command displays your current interfaces and IP address?
ifconfig
The yum and rpm commands are used for package management.
Use the ps command to view processes and their CPU usage.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
14. What happens if you call the command from question 3 with the -c option after it has already been run?
The three utilities are: route - ping - and nslookup.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
service dhcpd configtest
15. What is the virsh command used for?
Use the top command to view CPU and memory usage.
The /var/log/audit/audit.log file contains all policy violations.
The virsh command is used to manage virtual guests.
run on any port you'd like (provided that port is available)
16. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
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.
chkconfig—list
rpmbuild
17. Runlevel 0 ___________. Runlevel 6 reboots the system.
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.
lvdisplay
halts the system
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
18. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
user's home directory in the /etc/skel directory
VNC is used to control a remote desktop session.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
19. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
rpcbind service
The /etc/fstab file.
20. What is the main config file for the DHCP service?
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The print option is used with both the fdisk and parted commands to display the current partition tables.
21. What file is used to maintain custom parameters for the kernel during system boot?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The du and df commands are used to view available space on the system.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The print option is used with both the fdisk and parted commands to display the current partition tables.
22. 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
23. A PXE server eases the automation process but isn't required for...
kickstart installations to work
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
24. How would you go about creating a static route?
Use the route command with the add option to create a static route.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
25. What file needs to be edited so that the system will mount a file system at boot time?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /etc/fstab file.
This command reboots virtual guest Client04.
export one or all resources
26. What is NAT - How is it used?
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.
The mount command lists all currently mounted file systems.
mkfs.ext4
By default - the rndc utility listens on port 953.
27. How would you install a group of packages all at a single time?
Using the chcon command - you can change the context of a file to work with Apache.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
chkconfig sshd off
Use the yum groupinstall command to install multiple packages in a single group at once.
28. What option at the GRUB boot menu can you use to append something to a kernel?
A user's home directory is created under the /home directory.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
VNC is used to control a remote desktop session.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
29. What command can you use to monitor and troubleshoot network connections?
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.
The tcpdump command is used to monitor network connections on different interfaces.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
30. What command can you use to create a password-protected page?
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.
The htpasswd command can be used to password-protect a web page.
The lftp command can be used on a client to test FTP server connections.
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.
31. What command can you use to create your own repositories?
chkconfig sshd off
serve both files and printers to users
createrepo
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
32. 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 du and df commands are used to view available space on the system.
atq
schedule one-time-only jobs
33. What command can you use to create a file system?
run on any port you'd like (provided that port is available)
rpcbind service
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.
mkfs.ext4
34. What is a gateway used for on a network?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
getfacl
chkconfig xinetd --list
35. What command can you use to change the context of files?
setsebool -P nfs_export_all_rw=1
getsebool -a | grep http
chcon
The rndc utility provides a method for managing the DNS server remotely and securely.
36. What options with the yum command would you use to remove a package?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The -t nfs option is used with the mount command to mount NFS resources.
You can use the remove or erase options with yum to remove a package.
The SMTP service runs on TCP port 110.
37. The exportfs command is used to...
The tcpdump command is used to monitor network connections on different interfaces.
repquota
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
export one or all resources
38. What option is used with both the fdisk and parted commands to display the current partition tables?
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.
A user's home directory is created under the /home directory.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The service command is used to start - stop - and manage system services.
39. What command can you use to create a new SSL certificate?
The yum and rpm commands are used for package management.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Apache uses port 80 for HTTP and port 443 for HTTPS.
load balancing and redundancy benefits
40. What are SELinux Booleans?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Typing the mail or mutt command allows you to read mail from the command line.
SELinux Booleans provide restrictions to different aspects of a service.
41. What is the top command used for?
support for TCP Wrappers
The service command is used to start - stop - and manage system services.
Use the top command to view CPU and memory usage.
entering rescue mode and repairing the problem.
42. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
generates errors under Red Hat Enterprise Linux 6
choose which mode you'd like it to operate in
43. 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
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
service named configtest
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.
44. What command-line program can you use to check your mail?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Typing the mail or mutt command allows you to read mail from the command line.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Physical volumes - volume groups - and logical volumes.
45. What two commands are used for package management?
The yum and rpm commands are used for package management.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
46. Most boot issues can be resolved by...
createrepo
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
entering rescue mode and repairing the problem.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
47. GRUB has three stages. Can you name them?
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 sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
defining a %pre section although it is rarely used
cat /proc/mdstat
48. What command is used to create an RPM package?
The virsh command is used to manage virtual guests.
The NFS service uses TCP port 2049 by default.
user's home directory in the /etc/skel directory
rpmbuild
49. How can virtual hosts be used?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
This chapter described tdbsm and smbpasswd back-end authentication.
The print option is used with both the fdisk and parted commands to display the current partition tables.
50. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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 smbstatus command shows you currently mounted Samba resources.
amount of RAM
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.