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 is a gateway used for on a network?
chkconfig sshd off
semanage boolean -l
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
2. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
The TFTP server uses UDP port 69.
serve both files and printers to users
DNS uses port 53.
3. What options with the yum command would you use to remove a package?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
You can use the remove or erase options with yum to remove a package.
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.
atq
4. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
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.
5. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
alternatives --config mta
LUKS encryption
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
6. How would you view all Boolean options for the HTTP service?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The rndc utility provides a method for managing the DNS server remotely and securely.
Physical volumes - volume groups - and logical volumes.
getsebool -a | grep http
7. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
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 /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
8. How can you display all virtual guests after they're connected to a hypervisor?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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
9. What command can you use to create a file system?
getfacl
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
mkfs.ext4
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
10. 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
11. How can you change the security context of a directory to work with Apache?
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.
Enforcing during installation
DNS uses port 53.
Using the chcon command - you can change the context of a file to work with Apache.
12. What option needs to be used with the mount command to mount an NFS resource?
getsebool
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The virsh command is used to manage virtual guests.
The -t nfs option is used with the mount command to mount NFS resources.
13. What command can you use to create your own repositories?
SELinux provides enhanced granular security for the Linux operating system.
The lastlog and faillog commands are used to view user login-related events?
createrepo
Use the setgid flag to create the appropriate permissions (chmod 2770).
14. 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.
You add your action to the end of the /home/user01/.bashrc file.
The /var/log/audit/audit.log file contains all policy violations.
Use the resize2fs command to grow a file system.
15. What command can you use to get information about logical volumes?
via the command line
browseable option
lvdisplay
The four types of DNS servers are master - slave - caching-only - and forwarding.
16. What command would you use to create a group - to add the user George to the group?
LUKS encryption
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.
DNS uses port 53.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
17. A service needs to have _______________ to be able to use it.
The SMTP service runs on TCP port 110.
The yum and rpm commands are used for package management.
support for TCP Wrappers
You can use the authconfig-tui command or the authconfig command.
18. 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
19. To grow a file system
This command reboots virtual guest Client04.
Use the top command to view CPU and memory usage.
Use the resize2fs command to grow a file system.
The mount command lists all currently mounted file systems.
20. What port does NFS use by default?
DNS uses port 53.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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 NFS service uses TCP port 2049 by default.
21. What is the biggest benefit to using LVM over basic partitions?
The du and df commands are used to view available space on the system.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
getsebool
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.
22. Samba servers can...
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.
repquota
serve both files and printers to users
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
23. What option is used with both the fdisk and parted commands to display the current partition tables?
The yum and rpm commands are used for package management.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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
The print option is used with both the fdisk and parted commands to display the current partition tables.
24. Can you put your /boot partition on a RAID 5 array?
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.
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.
user's home directory in the /etc/skel directory
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
25. What is the top command used for?
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.
Use the top command to view CPU and memory usage.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
By default - Squid runs on port 3128.
26. What command do you use to report information on quota usage?
support for TCP Wrappers
repquota
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.
Enforcing during installation
27. What two commands are used for package management?
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.
The yum and rpm commands are used for package management.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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 command can you use to monitor and troubleshoot network connections?
cat /proc/mdstat
The tcpdump command is used to monitor network connections on different interfaces.
Typing the mail or mutt command allows you to read mail from the command line.
schedule one-time-only jobs
29. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
You add your action to the end of the /home/user01/.bashrc file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
30. What is SSH used for?
enabled by default
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the yum groupinstall command to install multiple packages in a single group at once.
SSH is used for secure remote management of Linux systems.
31. What are SELinux Booleans?
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
service named configtest
SELinux Booleans provide restrictions to different aspects of a service.
32. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
LUKS encryption
33. What are the side effects of shrinking a volume group or logical volume?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
createrepo
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.
34. 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.
The two main config files are master.cf and main.cf.
You can use the authconfig-tui command or the authconfig command.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
35. What file is used to maintain custom parameters for the kernel during system boot?
load balancing and redundancy benefits
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /var/log/audit/audit.log file contains all policy violations.
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.
36. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The dig - host - and ping commands can be used to test DNS server functionality.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The smbstatus command shows you currently mounted Samba resources.
37. What port on the firewall needs to be open for the TFTP server to work?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The TFTP server uses UDP port 69.
You can use the authconfig-tui command or the authconfig command.
used for kickstart and/or network installs
38. What are the five required directories when building RPMS?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Version 2 is the latest and most secure version of SSH.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
39. What port must be opened on the firewall for DNS?
DNS uses port 53.
This chapter described tdbsm and smbpasswd back-end authentication.
You can use the authconfig-tui command or the authconfig command.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
40. The ____________ is available for each share.
chkconfig sshd off
browseable option
Sendmail
support TCP Wrappers
41. Where are Yum repository config files located?
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 file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The lftp command can be used on a client to test FTP server connections.
serve both files and printers to users
42. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The smbstatus command shows you currently mounted Samba resources.
The ping command can be used to verify connectivity to another host.
run on any port you'd like (provided that port is available)
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.
43. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
The lftp command can be used on a client to test FTP server connections.
run on any port you'd like (provided that port is available)
defining a %pre section although it is rarely used
44. What command can you use to query information from the kernel about RAID arrays?
The virsh command is used to manage virtual guests.
cat /proc/mdstat
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
45. 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.
Enforcing during installation
The virsh command is used to manage virtual guests.
Enforcing during installation
46. What three protocols can you use to perform network installations?
have the same effect
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
47. 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
48. 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
49. A PXE server eases the automation process but isn't required for...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The three utilities are: route - ping - and nslookup.
kickstart installations to work
The two main config files are master.cf and main.cf.
50. What two commands are special for dealing with user login events?
Use the resize2fs command to grow a file system.
The lastlog and faillog commands are used to view user login-related events?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
chcon