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 the /etc/vsftpd/user_list file used for?
The service command is used to start - stop - and manage system services.
SSH is used for secure remote management of Linux systems.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The user_list file can be used to limit which users have access to the FTP server.
2. What is the top command used for?
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the top command to view CPU and memory usage.
3. What command do you use to change the permissions on a file or directory - To change ownership?
The user_list file can be used to limit which users have access to the FTP server.
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.
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 DHCP server listens on port 67 by default.
4. What command can you use to create a new SSL certificate?
The lftp command can be used on a client to test FTP server connections.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
getfacl
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
5. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
getfacl
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
You add your action to the end of the /home/user01/.bashrc file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
6. What is the main config file for the DHCP service?
The mount command lists all currently mounted file systems.
support TCP Wrappers
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
7. Can you name the two commands that can be used to view the free space on the system?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The smbstatus command shows you currently mounted Samba resources.
service httpd configtest
The du and df commands are used to view available space on the system.
8. What port does the Apache web server run on - What about HTTPS?
The SMTP service runs on TCP port 110.
Apache uses port 80 for HTTP and port 443 for HTTPS.
have the same effect
setsebool -P nfs_export_all_rw=1
9. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Enforcing during installation
Use the setgid flag to create the appropriate permissions (chmod 2770).
Version 2 is the latest and most secure version of SSH.
10. There are four types of DNS servers. Name them.
VNC is used to control a remote desktop session.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The four types of DNS servers are master - slave - caching-only - and forwarding.
service named configtest
11. Which file shows you all the client IP addresses?
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.
By default - Squid runs on port 3128.
entering rescue mode and repairing the problem.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
12. What is SSH used for?
browseable option
entering rescue mode and repairing the problem.
SSH is used for secure remote management of Linux systems.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
13. What command can be used to easily list all the options in the FTP main config file?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The DHCP server listens on port 67 by default.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
14. What command can you use to manage system services?
DNS uses port 53.
The service command is used to start - stop - and manage system services.
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.
lvdisplay
15. What command and option do you use to view the description of Boolean values?
VNC is used to control a remote desktop session.
The four types of DNS servers are master - slave - caching-only - and forwarding.
semanage boolean -l
You can use the remove or erase options with yum to remove a package.
16. What three components are needed to fully automate a kickstart installation?
The service command is used to start - stop - and manage system services.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
17. What command (and options) can be used to create a user named George with the description "Jr Admin"?
export one or all resources
The dig - host - and ping commands can be used to test DNS server functionality.
useradd -c "Jr Admin" George
Typing the mail or mutt command allows you to read mail from the command line.
18. What command can you use to test the config files before starting the DNS service?
The ping command can be used to verify connectivity to another host.
service named configtest
user's home directory in the /etc/skel directory
The smbstatus command shows you currently mounted Samba resources.
19. What is the virsh command used for?
atq
used for kickstart and/or network installs
Use the yum groupinstall command to install multiple packages in a single group at once.
The virsh command is used to manage virtual guests.
20. What two commands are special for dealing with user login events?
The rndc utility provides a method for managing the DNS server remotely and securely.
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
setsebool -P nfs_export_all_rw=1
The lastlog and faillog commands are used to view user login-related events?
21. What option is used with both the fdisk and parted commands to display the current partition tables?
The SMTP service runs on TCP port 110.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The dig - host - and ping commands can be used to test DNS server functionality.
For Apache to run a secure site - the mod_ssl package is required to be installed.
22. 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.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Enforcing during installation
The ping command can be used to verify connectivity to another host.
getsebool -a | grep http
23. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
For Apache to run a secure site - the mod_ssl package is required to be installed.
Use the ps command to view processes and their CPU usage.
The /var/log/audit/audit.log file contains all policy violations.
24. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
ifconfig
The NFS service uses TCP port 2049 by default.
25. Which log file is used to keep track of policy violations?
The /var/log/audit/audit.log file contains all policy violations.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
alternatives --config mta
The SMTP service runs on TCP port 110.
26. What is VNC?
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.
VNC is used to control a remote desktop session.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
27. What port does the DHCP server listen on by default?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
entering rescue mode and repairing the problem.
The DHCP server listens on port 67 by default.
28. What command can you use to query Boolean values?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
getsebool
29. What are the three modes in which the rpm command can operate?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The rpm command can operate in install - query - or verify modes.
The tcpdump command is used to monitor network connections on different interfaces.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
30. Are additional packages besides httpd required for a secure website - If so - what are they?
For Apache to run a secure site - the mod_ssl package is required to be installed.
By default - Squid runs on port 3128.
The dig - host - and ping commands can be used to test DNS server functionality.
Use the resize2fs command to grow a file system.
31. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
32. By default - what is the path to a user's home directory?
33. 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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
SELinux Booleans provide restrictions to different aspects of a service.
getsebool
34. 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).
The four types of DNS servers are master - slave - caching-only - and forwarding.
The vsftpd package is used to install an FTP server.
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.
35. Should you allow remote root access - Why or why not?
36. How can you verify the status of the SSH service after the system has booted?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
service sshd statuts
Version 2 is the latest and most secure version of SSH.
37. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
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
Physical volumes - volume groups - and logical volumes.
38. What command can you use to view the current ACL on a file?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
getfacl
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The smbpasswd command is used to create Samba users.
39. To export directories as resources - what file needs to be edited?
40. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
you have access to the correct packages or repositories.
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 SMTP service runs on TCP port 110.
41. What critical step must you take after updating the kernel to a newer version?
Version 2 is the latest and most secure version of SSH.
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.
By default - the rndc utility listens on port 953.
defining a %pre section although it is rarely used
42. Samba servers can...
serve both files and printers to users
Using the chcon command - you can change the context of a file to work with Apache.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The rpm command can operate in install - query - or verify modes.
43. What command can you use to monitor and troubleshoot network connections?
run on any port you'd like (provided that port is available)
Use the ps command to view processes and their CPU usage.
The tcpdump command is used to monitor network connections on different interfaces.
ifconfig
44. What command can you use to create a file system?
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.
service sshd statuts
mkfs.ext4
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
45. It is possible to run scripts before a kickstart installation. This is done by...
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The ping command can be used to verify connectivity to another host.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
defining a %pre section although it is rarely used
46. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
via the command line
A user's home directory is created under the /home directory.
alternatives --config mta
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.
47. What options with the yum command would you use to remove a package?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
SELinux Booleans provide restrictions to different aspects of a service.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
You can use the remove or erase options with yum to remove a package.
48. Which remote management service is installed by default?Can you name the port that it uses?
The print option is used with both the fdisk and parted commands to display the current partition tables.
mkfs.ext4
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.
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.
49. How do you run a command with elevated privileges?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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.
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
50. Through its main config file - SSH can be configured to...