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 do you use to change the permissions on a file or directory - To change ownership?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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 rndc utility provides a method for managing the DNS server remotely and securely.
chkconfig xinetd --list
2. What are the three items that make up LVM?
support TCP Wrappers
The /var/log/audit/audit.log file contains all policy violations.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Physical volumes - volume groups - and logical volumes.
3. What three commands can you use to help verify that the DNS server is functioning properly?
useradd -c "Jr Admin" George
You add your action to the end of the /home/user01/.bashrc file.
The dig - host - and ping commands can be used to test DNS server functionality.
chkconfig sshd off
4. What options with the yum command would you use to remove a package?
The SMTP service runs on TCP port 110.
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.
You can use the remove or erase options with yum to remove a package.
You add your action to the end of the /home/user01/.bashrc file.
5. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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.
useradd -c "Jr Admin" George
By defining a %post section - you can run scripts after a kickstart installation is complete.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
6. What command can you use to manage system services?
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.
The service command is used to start - stop - and manage system services.
choose which mode you'd like it to operate in
7. What commands can you use to add a client machine to an LDAP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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
amount of RAM
You can use the authconfig-tui command or the authconfig command.
8. What does the rdnc-confgen command do?
The print option is used with both the fdisk and parted commands to display the current partition tables.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
This chapter described tdbsm and smbpasswd back-end authentication.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
9. What does it mean if you ping a host and you receive the response Destination Unreachable?
Sendmail
export one or all 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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
10. What is the rndc utility used for?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
LUKS encryption
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
11. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
enabled by default
Kickstart supports both basic and advanced partitioning (RAID/LVM).
atq
12. What command is used to create a user for Samba?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The smbpasswd command is used to create Samba users.
mkfs.ext4
13. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The vsftpd package is used to install an FTP server.
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.
kickstart installations to work
Sendmail
14. What is the biggest benefit to using LVM over basic partitions?
getsebool -a | grep http
createrepo
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.
halts the system
15. What command do you use to report information on quota usage?
repquota
By default - Squid runs on port 3128.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
A user's home directory is created under the /home directory.
16. What is PAM used for?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The -t nfs option is used with the mount command to mount NFS resources.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
17. What is the name of the section used to run scripts after a kickstart installation?
The user_list file can be used to limit which users have access to the FTP server.
By defining a %post section - you can run scripts after a kickstart installation is complete.
schedule one-time-only jobs
load balancing and redundancy benefits
18. What command and option can you use to enable a service to start on boot?
The DHCP server listens on port 67 by default.
The vsftpd package is used to install an FTP server.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
19. What critical step must you take after updating the kernel to a newer version?
Use the resize2fs command to grow a file system.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
You can use the authconfig-tui command or the authconfig command.
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.
20. How can virtual hosts be used?
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.
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.
choose which mode you'd like it to operate in
21. What option is used with both the fdisk and parted commands to display the current partition tables?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
LUKS encryption
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.
22. 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 rpm command can operate in install - query - or verify modes.
Use the ps command to view processes and their CPU usage.
load balancing and redundancy benefits
23. Most boot issues can be resolved by...
Enforcing during installation
entering rescue mode and repairing the problem.
You can use the authconfig-tui command or the authconfig command.
Using the chcon command - you can change the context of a file to work with Apache.
24. Do you need to write changes to the disk when using the parted command? What about fdisk?
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
useradd -c "Jr Admin" George
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
25. 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
The /etc/dhcp/dhcpd.conf file 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.
Enforcing during installation
26. GRUB has three stages. Can you name them?
The /etc/fstab file.
defining a %pre section although it is rarely used
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.
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
27. What two commands are used for package management?
The rpm command can operate in install - query - or verify modes.
The yum and rpm commands are used for package management.
The htpasswd command can be used to password-protect a web page.
you have access to the correct packages or repositories.
28. What is VNC?
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
VNC is used to control a remote desktop session.
Use the setgid flag to create the appropriate permissions (chmod 2770).
29. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
load balancing and redundancy benefits
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
30. What command can you use to check the config file of the DHCP server?
The SMTP service runs on TCP port 110.
service dhcpd configtest
browseable option
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
31. What is the main config file for the DHCP service?
used for kickstart and/or network installs
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
32. Are additional packages besides httpd required for a secure website - If so - what are they?
The yum and rpm commands are used for package management.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The TFTP server uses UDP port 69.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
33. What directory is used to represent the virtual file system created by the kernel?
The DHCP server listens on port 67 by default.
LUKS encryption
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
34. What is the name of the package used to install an FTP?
cat /proc/mdstat
The vsftpd package is used to install an FTP server.
have the same effect
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.
35. What is a virtual host?
export one or all resources
via the command line
A virtual host is a way of hosting multiple sites using a single IP address.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
36. You must dictate the ____________ you want allocated to your virtual machine when you create it.
This command reboots virtual guest Client04.
amount of RAM
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The dig - host - and ping commands can be used to test DNS server functionality.
37. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
SELinux Booleans provide restrictions to different aspects of a service.
The dig - host - and ping commands can be used to test DNS server functionality.
run on any port you'd like (provided that port is available)
38. What are the side effects of shrinking a volume group or logical volume?
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.
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.
ifconfig
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.
39. What file needs to be edited so that the system will mount a file system at boot time?
chkconfig—list
The TFTP server uses UDP port 69.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /etc/fstab file.
40. What command can you use to test the config files before starting the DNS service?
You add your action to the end of the /home/user01/.bashrc file.
defining a %pre section although it is rarely used
service named configtest
SELinux provides enhanced granular security for the Linux operating system.
41. What is the point of using SELinux?
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
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.
setsebool -P nfs_export_all_rw=1
SELinux provides enhanced granular security for the Linux operating system.
42. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
A user's home directory is created under the /home directory.
By default - Squid runs on port 3128.
Use the top command to view CPU and memory usage.
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.
43. Red Hat Enterprise Linux 6 is the only version that officially supports _______
A user's home directory is created under the /home directory.
Sendmail
run on any port you'd like (provided that port is available)
LUKS encryption
44. What port on the firewall needs to be open for the TFTP server to work?
Apache uses port 80 for HTTP and port 443 for HTTPS.
halts the system
The TFTP server uses UDP port 69.
semanage boolean -l
45. What command and options can you use to update the time?
chcon
Enforcing during installation
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
createrepo
46. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
47. How can you display all virtual guests after they're connected to a hypervisor?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
48. What command can you use to create a new SSL certificate?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
49. How would you go about creating a static route?
The DHCP server listens on port 67 by default.
ifconfig
This command reboots virtual guest Client04.
Use the route command with the add option to create a static route.
50. What command can be used to view the queue for at service jobs?
atq
The yum and rpm commands are used for package management.
The three utilities are: route - ping - and nslookup.
Use the resize2fs command to grow a file system.