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. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
via the command line
kickstart installations to work
The tcpdump command is used to monitor network connections on different interfaces.
2. What option would you use to query an installed package using the rpm command?
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.
The mount command lists all currently mounted file systems.
The ping command can be used to verify connectivity to another host.
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.
3. What two commands are special for dealing with user login events?
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 lastlog and faillog commands are used to view user login-related events?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Physical volumes - volume groups - and logical volumes.
4. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The lftp command can be used on a client to test FTP server connections.
amount of RAM
5. How do you run a command with elevated privileges?
service httpd configtest
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The TFTP server uses UDP port 69.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
6. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
getsebool -a | grep http
entering rescue mode and repairing the problem.
The rndc utility provides a method for managing the DNS server remotely and securely.
7. What command and options can you use to update the time?
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 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.
A user's home directory is created under the /home directory.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
8. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The user_list file can be used to limit which users have access to the FTP server.
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.
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.
have the same effect
9. A service needs to have _______________ to be able to use it.
SELinux Booleans provide restrictions to different aspects of a service.
support for TCP Wrappers
Use the top command to view CPU and memory usage.
This chapter described tdbsm and smbpasswd back-end authentication.
10. What does the rdnc-confgen command do?
The -t nfs option is used with the mount command to mount NFS resources.
repquota
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
11. What is the benefit to using centralized authentication?
12. What two ports should be opened on the firewall for the FTP server to function 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.
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.
service httpd configtest
You must open TCP ports 20 and 21 for the FTP server to function properly.
13. What is VNC?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
LUKS encryption
The -t nfs option is used with the mount command to mount NFS resources.
VNC is used to control a remote desktop session.
14. Which remote management service is installed by default?Can you name the port that it uses?
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.
alternatives --config mta
By default - the rndc utility listens on port 953.
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.
15. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
The virsh command is used to manage virtual guests.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
16. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
mkfs.ext4
The smbpasswd command is used to create Samba users.
Use the ps command to view processes and their CPU usage.
17. 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...
18. What are the three items that make up LVM?
service dhcpd configtest
Typing the mail or mutt command allows you to read mail from the command line.
Physical volumes - volume groups - and logical volumes.
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.
19. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
load balancing and redundancy benefits
The lastlog and faillog commands are used to view user login-related events?
rpmbuild
20. What critical step must you take after updating the kernel to a newer version?
VNC is used to control a remote desktop session.
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.
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.
service sshd statuts
21. What command disables the SSH service from running when the system boots?
The two main config files are master.cf and main.cf.
The four types of DNS servers are master - slave - caching-only - and forwarding.
chkconfig sshd off
setsebool -P nfs_export_all_rw=1
22. How can you change the security context of a directory to work with Apache?
Enforcing during installation
semanage boolean -l
Using the chcon command - you can change the context of a file to work with Apache.
You add your action to the end of the /home/user01/.bashrc file.
23. What command is used to create a user for Samba?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The nfsstat command can be used to view NFS statistics.
The smbpasswd command is used to create Samba users.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
24. Do you need to write changes to the disk when using the parted command? What about fdisk?
The lastlog and faillog commands are used to view user login-related events?
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.
setsebool -P nfs_export_all_rw=1
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
25. What is a swap? Is it created as a partition or device file?
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.
The lftp command can be used on a client to test FTP server connections.
defining a %pre section although it is rarely used
You must open TCP ports 20 and 21 for the FTP server to function properly.
26. Are additional packages besides httpd required for a secure website - If so - what are they?
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 installations can be performed using the HTTP - FTP - and NFS protocols.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
For Apache to run a secure site - the mod_ssl package is required to be installed.
27. What command can you use to create your own repositories?
This command reboots virtual guest Client04.
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.
createrepo
export one or all resources
28. Can you name the two commands that can be used to view the free space on the system?
The du and df commands are used to view available space on the system.
service sshd statuts
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.
chkconfig—list
29. What command can you use to create a file system?
mkfs.ext4
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.
entering rescue mode and repairing the problem.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
30. What protocols are used with Dovecot?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
you have access to the correct packages or repositories.
The /var/log/audit/audit.log file contains all policy violations.
31. Through its main config file - SSH can be configured to...
32. SSH does...
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
support TCP Wrappers
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.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
33. What is the biggest benefit to using LVM over basic partitions?
chkconfig—list
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.
rpmbuild
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
34. What command can you use to get information about logical volumes?
The SMTP service runs on TCP port 110.
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
lvdisplay
35. What two commands are used for package management?
atq
The yum and rpm commands are used for package management.
The virsh command is used to manage virtual guests.
SSH is used for secure remote management of Linux systems.
36. What is the rndc utility used for?
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 service command is used to start - stop - and manage system services.
The rndc utility provides a method for managing the DNS server remotely and securely.
service dhcpd configtest
37. What option is used to allow anonymous uploads to the FTP server?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
kickstart installations to work
By default - Squid runs on port 3128.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
38. What command can you use to monitor and troubleshoot network connections?
The ping command can be used to verify connectivity to another host.
The tcpdump command is used to monitor network connections on different interfaces.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Use the top command to view CPU and memory usage.
39. Most boot issues can be resolved by...
The smbstatus command shows you currently mounted Samba resources.
entering rescue mode and repairing the problem.
used for kickstart and/or network installs
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.
40. What command is used to show all services being controlled by the xinetd daemon?
The mount command lists all currently mounted file systems.
The two main config files are master.cf and main.cf.
chkconfig xinetd --list
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
41. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
The rpm command can operate in install - query - or verify modes.
setsebool -P nfs_export_all_rw=1
The lastlog and faillog commands are used to view user login-related events?
You add your action to the end of the /home/user01/.bashrc file.
42. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
getfacl
Enforcing during installation
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.
43. What three components are needed to fully automate a kickstart installation?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
44. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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 TFTP server uses UDP port 69.
45. What three protocols can you use to perform network installations?
Use the top command to view CPU and memory usage.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The tcpdump command is used to monitor network connections on different interfaces.
46. Does a DHCP server allow reserved IP addresses - If so - how?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
lvdisplay
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.
47. Samba servers can...
After you connect to a hypervisor - you can use virsh list —all to list all 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.
ifconfig
serve both files and printers to users
48. What is the name of the section used to run scripts after a kickstart installation?
load balancing and redundancy benefits
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The ping command can be used to verify connectivity to another host.
49. Should you allow remote root access - Why or why not?
50. What command (and options) can be used to create a user named George with the description "Jr Admin"?
Apache uses port 80 for HTTP and port 443 for HTTPS.
setsebool -P nfs_export_all_rw=1
useradd -c "Jr Admin" George
service dhcpd configtest