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 portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
serve both files and printers to users
SELinux Booleans provide restrictions to different aspects of a service.
rpcbind service
You add your action to the end of the /home/user01/.bashrc file.
2. What port does the DHCP server listen on by default?
You can use the authconfig-tui command or the authconfig command.
kickstart installations to work
You add your action to the end of the /home/user01/.bashrc file.
The DHCP server listens on port 67 by default.
3. 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...
service named configtest
user's home directory in the /etc/skel directory
schedule one-time-only jobs
have the same effect
4. How can you verify the status of the SSH service after the system has booted?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
service sshd statuts
Enforcing during installation
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
5. What command can you use to change the context of files?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Use the setgid flag to create the appropriate permissions (chmod 2770).
chcon
6. How would you go about creating a static route?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the route command with the add option to create a static route.
defining a %pre section although it is rarely used
SELinux provides enhanced granular security for the Linux operating system.
7. The exportfs command is used to...
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.
export one or all resources
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
8. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
browseable option
For Apache to run a secure site - the mod_ssl package is required to be installed.
9. What happens to jobs that are scheduled to run while the system is off?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
service sshd statuts
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.
10. What command is used to create a user for Samba?
By default - Squid runs on port 3128.
The smbpasswd command is used to create Samba users.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
11. What is the superblock used for?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The TFTP server uses UDP port 69.
halts the system
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
12. What two commands are used for package management?
You must open TCP ports 20 and 21 for the FTP server to function properly.
cat /proc/mdstat
A virtual host is a way of hosting multiple sites using a single IP address.
The yum and rpm commands are used for package management.
13. The ____________ is available for each share.
useradd -c "Jr Admin" George
browseable option
amount of RAM
The DHCP server listens on port 67 by default.
14. It is possible to run scripts before a kickstart installation. This is done by...
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The NFS service uses TCP port 2049 by default.
mkfs.ext4
defining a %pre section although it is rarely used
15. The firewall service is...
enabled by default
mkfs.ext4
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
DNS uses port 53.
16. A PXE server eases the automation process but isn't required for...
kickstart installations to work
Use the setgid flag to create the appropriate permissions (chmod 2770).
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You can use the authconfig-tui command or the authconfig command.
17. What command can you use to view NFS statistics?
service sshd statuts
serve both files and printers to users
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The nfsstat command can be used to view NFS statistics.
18. What command can you use to monitor and troubleshoot network connections?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The tcpdump command is used to monitor network connections on different interfaces.
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.
19. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
Sendmail
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The rpm command can operate in install - query - or verify modes.
20. 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.
Use the route command with the add option to create a static route.
Enforcing during installation
Use the resize2fs command to grow a file system.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
21. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Version 2 is the latest and most secure version of SSH.
cat /proc/mdstat
Sendmail
Enforcing during installation
22. Does a DHCP server allow reserved IP addresses - If so - how?
The vsftpd package is used to install an FTP server.
export one or all resources
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
used for kickstart and/or network installs
23. What is the xinetd service used for?
This chapter described tdbsm and smbpasswd back-end authentication.
atq
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
24. What command can you use to create a new SSL certificate?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
kickstart installations to work
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
25. How can virtual hosts be used?
enabled by default
The virsh command is used to manage virtual guests.
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
26. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Use the resize2fs command to grow a file system.
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
27. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
A user's home directory is created under the /home directory.
support TCP Wrappers
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.
28. What commands can you use to add a client machine to an LDAP server?
SSH is used for secure remote management of Linux systems.
You can use the authconfig-tui command or the authconfig command.
chkconfig xinetd --list
VNC is used to control a remote desktop session.
29. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
service sshd statuts
30. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
kickstart installations to work
rpmbuild
user's home directory in the /etc/skel directory
31. What is a swap? Is it created as a partition or device file?
service httpd configtest
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.
You can use the authconfig-tui command or the authconfig command.
The mount command lists all currently mounted file systems.
32. SSH does...
support TCP Wrappers
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The lftp command can be used on a client to test FTP server connections.
The nfsstat command can be used to view NFS statistics.
33. You must dictate the ____________ you want allocated to your virtual machine when you create it.
Using the chcon command - you can change the context of a file to work with Apache.
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
amount of RAM
By defining a %post section - you can run scripts after a kickstart installation is complete.
34. What command can you use to create a file system?
Use the yum groupinstall command to install multiple packages in a single group at once.
via the command line
mkfs.ext4
The DHCP server listens on port 67 by default.
35. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The service command is used to start - stop - and manage system services.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
You must open TCP ports 20 and 21 for the FTP server to function properly.
36. What is the biggest benefit to using LVM over basic partitions?
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.
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 smbstatus command shows you currently mounted Samba resources.
SELinux Booleans provide restrictions to different aspects of a service.
37. 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.
SELinux provides enhanced granular security for the Linux operating system.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
getsebool
38. What is a virtual host?
useradd -c "Jr Admin" George
A virtual host is a way of hosting multiple sites using a single IP address.
lvdisplay
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
39. What is the virsh command used for?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
The virsh command is used to manage virtual guests.
load balancing and redundancy benefits
40. What command disables the SSH service from running when the system boots?
chkconfig sshd off
ifconfig
You must open TCP ports 20 and 21 for the FTP server to function properly.
SSH is used for secure remote management of Linux systems.
41. What benefit does a web proxy provide to your network?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getsebool
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
42. GRUB has three stages. Can you name them?
ifconfig
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 add your action to the end of the /home/user01/.bashrc file.
The three utilities are: route - ping - and nslookup.
43. 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
44. Do you need to write changes to the disk when using the parted command? What about fdisk?
Enforcing during installation
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 lastlog and faillog commands are used to view user login-related events?
repquota
45. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
run on any port you'd like (provided that port is available)
used for kickstart and/or network installs
cat /proc/mdstat
46. What three commands can you use to help verify that the DNS server is functioning properly?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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 dig - host - and ping commands can be used to test DNS server functionality.
47. What command can you use to create a password-protected page?
repquota
rpmbuild
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 htpasswd command can be used to password-protect a web page.
48. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the resize2fs command to grow a file system.
The /var/log/audit/audit.log file contains all policy violations.
For Apache to run a secure site - the mod_ssl package is required to be installed.
A virtual host is a way of hosting multiple sites using a single IP address.
49. What command can you use to query Boolean values?
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 - the rndc utility listens on port 953.
chcon
getsebool
50. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The htpasswd command can be used to password-protect a web page.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.