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 can you use to change the context of files?
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.
chcon
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Using the chcon command - you can change the context of a file to work with Apache.
2. Red Hat Enterprise Linux 6 is the only version that officially supports _______
entering rescue mode and repairing the problem.
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.
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.
LUKS encryption
3. What two ports should be opened on the firewall for the FTP server to function properly?
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 must open TCP ports 20 and 21 for the FTP server to function properly.
This chapter described tdbsm and smbpasswd back-end authentication.
choose which mode you'd like it to operate in
4. What is the top command used for?
DNS uses port 53.
getsebool
Use the top command to view CPU and memory usage.
The lftp command can be used on a client to test FTP server connections.
5. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
6. A PXE server eases the automation process but isn't required for...
support TCP Wrappers
kickstart installations to work
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
7. GRUB has three stages. Can you name them?
service named configtest
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.
useradd -c "Jr Admin" George
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
8. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Enforcing during installation
The /etc/fstab file.
serve both files and printers to users
9. The at command is used to ____________. The cron service handles reoccurring system jobs.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 service command is used to start - stop - and manage system services.
schedule one-time-only jobs
10. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
11. What three commands can you use to help verify that the DNS server is functioning properly?
service httpd configtest
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
chkconfig xinetd --list
The dig - host - and ping commands can be used to test DNS server functionality.
12. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The DHCP server listens on port 67 by default.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
generates errors under Red Hat Enterprise Linux 6
13. 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 httpd configtest
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Using the chcon command - you can change the context of a file to work with Apache.
have the same effect
14. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Sendmail
By default - Squid runs on port 3128.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
15. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
amount of RAM
service dhcpd configtest
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.
16. What are SELinux Booleans?
getfacl
service httpd configtest
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
SELinux Booleans provide restrictions to different aspects of a service.
17. There are four types of DNS servers. Name them.
The virsh command is used to manage virtual guests.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
18. What is the main config file for the DHCP service?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
19. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
chcon
You add your action to the end of the /home/user01/.bashrc file.
20. What happens if you call the command from question 3 with the -c option after it has already been run?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Apache uses port 80 for HTTP and port 443 for HTTPS.
defining a %pre section although it is rarely used
21. 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.
service dhcpd configtest
Enforcing during installation
The tcpdump command is used to monitor network connections on different interfaces.
halts the system
22. What command would you use to create a group - to add the user George to the group?
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Kickstart supports both basic and advanced partitioning (RAID/LVM).
23. What file needs to be edited so that the system will mount a file system at boot time?
you have access to the correct packages or repositories.
The NFS service uses TCP port 2049 by default.
The /etc/fstab file.
rpcbind service
24. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
useradd -c "Jr Admin" George
rpcbind service
26. What command can you use to create your own repositories?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
have the same effect
entering rescue mode and repairing the problem.
createrepo
27. What command can you use to check the config file of the DHCP server?
The nfsstat command can be used to view NFS statistics.
service dhcpd configtest
cat /proc/mdstat
chkconfig xinetd --list
28. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
29. What command and options can you use to update the time?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
SSH is used for secure remote management of Linux systems.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
30. What port on the firewall needs to be open for the TFTP server to work?
The smbpasswd command is used to create Samba users.
The NFS service uses TCP port 2049 by default.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The TFTP server uses UDP port 69.
31. Where are Yum repository config files located?
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
The rndc utility provides a method for managing the DNS server remotely and securely.
The nfsstat command can be used to view NFS statistics.
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.
32. Which version of SSH should you use?
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.
SELinux Booleans provide restrictions to different aspects of a service.
Version 2 is the latest and most secure version of SSH.
By defining a %post section - you can run scripts after a kickstart installation is complete.
33. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
34. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
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.
You add your action to the end of the /home/user01/.bashrc file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
35. What port does the DHCP server listen on by default?
The nfsstat command can be used to view NFS statistics.
The DHCP server listens on port 67 by default.
mkfs.ext4
ifconfig
36. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
browseable option
You add your action to the end of the /home/user01/.bashrc file.
service named configtest
37. What command can you use to view the current ACL on a file?
lvdisplay
getfacl
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
38. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
getfacl
The du and df commands are used to view available space on 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.
39. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. What command is used to create an RPM package?
rpmbuild
This chapter described tdbsm and smbpasswd back-end authentication.
The smbpasswd command is used to create Samba users.
kickstart installations to work
41. To grow a file system
enabled by default
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
Use the resize2fs command to grow a file system.
42. What are the three different types of RAID described in this chapter?
support TCP Wrappers
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
43. The exportfs command is used to...
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
lvdisplay
load balancing and redundancy benefits
export one or all resources
44. A slave DNS server provides...
load balancing and redundancy benefits
The smbpasswd command is used to create Samba users.
The vsftpd package is used to install an FTP server.
LUKS encryption
45. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
lvdisplay
useradd -c "Jr Admin" George
chkconfig xinetd --list
via the command line
46. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
47. What command can you use to validate the syntax of the Apache config file?
used for kickstart and/or network installs
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.
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 httpd configtest
48. What command can you use to manage system services?
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 service command is used to start - stop - and manage system services.
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.
By default - Squid runs on port 3128.
49. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Use the route command with the add option to create a static route.
The smbstatus command shows you currently mounted Samba resources.
mkfs.ext4
50. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
used for kickstart and/or network installs
DNS uses port 53.
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.
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.