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. Which remote management service is installed by default?Can you name the port that it uses?
chcon
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.
createrepo
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.
2. How can you display all virtual guests after they're connected to a hypervisor?
The service command is used to start - stop - and manage system services.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
3. What is the superblock used for?
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.
Physical volumes - volume groups - and logical volumes.
The NFS service uses TCP port 2049 by default.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
4. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. What command is used to create a user for Samba?
alternatives --config mta
The smbpasswd command is used to create Samba users.
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
6. What is a swap? Is it created as a partition or device file?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
7. What is a gateway used for on a network?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The dig - host - and ping commands can be used to test DNS server functionality.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
8. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
used for kickstart and/or network installs
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
You add your action to the end of the /home/user01/.bashrc file.
9. Where are Yum repository config files located?
entering rescue mode and repairing the problem.
This command reboots virtual guest Client04.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
10. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
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 tcpdump command is used to monitor network connections on different interfaces.
11. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
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.
defining a %pre section although it is rarely used
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.
12. What is VNC?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
VNC is used to control a remote desktop session.
schedule one-time-only jobs
13. What command can you use to change the context of files?
Use the top command to view CPU and memory usage.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
service named configtest
chcon
14. What command would you use to create a group - to add the user George to the group?
service httpd configtest
getsebool -a | grep http
browseable option
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
15. What are the three items that make up LVM?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
schedule one-time-only jobs
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.
16. What commands can you use to add a client machine to an LDAP server?
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
setsebool -P nfs_export_all_rw=1
You can use the authconfig-tui command or the authconfig command.
17. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The lftp command can be used on a client to test FTP server connections.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
choose which mode you'd like it to operate in
18. What two commands are special for dealing with user login events?
The SMTP service runs on TCP port 110.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The tcpdump command is used to monitor network connections on different interfaces.
The lastlog and faillog commands are used to view user login-related events?
19. A slave DNS server provides...
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
load balancing and redundancy benefits
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.
support for TCP Wrappers
20. What does the partprobe command do?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
useradd -c "Jr Admin" George
The DHCP server listens on port 67 by default.
semanage boolean -l
21. The firewall service is...
enabled by default
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.
useradd -c "Jr Admin" George
serve both files and printers to users
22. What command can you use to view system processes and their CPU usage?
The smbstatus command shows you currently mounted Samba resources.
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.
Use the ps command to view processes and their CPU usage.
The SMTP service runs on TCP port 110.
23. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
useradd -c "Jr Admin" George
24. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
getfacl
export one or all resources
halts the system
25. What command can you use to view NFS statistics?
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the ps command to view processes and their CPU usage.
The nfsstat command can be used to view NFS statistics.
You can use the remove or erase options with yum to remove a package.
26. What port does the DHCP server listen on by default?
browseable option
The DHCP server listens on port 67 by default.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The tcpdump command is used to monitor network connections on different interfaces.
27. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The service command is used to start - stop - and manage system services.
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
28. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The htpasswd command can be used to password-protect a web page.
service named configtest
29. 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
30. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
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.
The print option is used with both the fdisk and parted commands to display the current partition tables.
31. What is SSH used for?
The tcpdump command is used to monitor network connections on different interfaces.
SSH is used for secure remote management of Linux systems.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
32. What two commands are used for package management?
The yum and rpm commands are used for package management.
The virsh command is used to manage virtual guests.
cat /proc/mdstat
You can use the remove or erase options with yum to remove a package.
33. What are the two config files for Postfix called?
you have access to the correct packages or repositories.
VNC is used to control a remote desktop session.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The two main config files are master.cf and main.cf.
34. What command can you use to view the current ACL on a file?
getfacl
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
35. The package selection screen allows you to install any software you want during the installation process as long as...
getfacl
alternatives --config mta
You must open TCP ports 20 and 21 for the FTP server to function properly.
you have access to the correct packages or repositories.
36. How would you go about creating a static route?
Use the route command with the add option to create a static route.
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
37. What is a virtual host?
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The dig - host - and ping commands can be used to test DNS server functionality.
A virtual host is a way of hosting multiple sites using a single IP address.
38. Can you put your /boot partition on a RAID 5 array?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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 must open TCP ports 20 and 21 for the FTP server to function properly.
39. What port on the firewall needs to be open for the TFTP server to work?
The smbstatus command shows you currently mounted Samba resources.
The TFTP server uses UDP port 69.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
40. To create a RAID or LVM partition using kickstart
The NFS service uses TCP port 2049 by default.
The -t nfs option is used with the mount command to mount NFS resources.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
41. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
42. What command can you use to query Boolean values?
The smbstatus command shows you currently mounted Samba resources.
getsebool
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.
Physical volumes - volume groups - and logical volumes.
43. What option at the GRUB boot menu can you use to append something to a kernel?
getsebool -a | grep http
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
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
44. What are the three different types of RAID described in this chapter?
chkconfig—list
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.
user's home directory in the /etc/skel directory
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
45. What port does the Apache web server run on - What about HTTPS?
The SMTP service runs on TCP port 110.
The lastlog and faillog commands are used to view user login-related events?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Apache uses port 80 for HTTP and port 443 for HTTPS.
46. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
useradd -c "Jr Admin" George
Use the ps command to view processes and their CPU usage.
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.
47. What is the name of the package used to install an FTP?
lvdisplay
LUKS encryption
The three utilities are: route - ping - and nslookup.
The vsftpd package is used to install an FTP server.
48. GRUB has three stages. Can you name them?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
SELinux Booleans provide restrictions to different aspects of a service.
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
49. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. What is the format of the /etc/shadow file?
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
atq
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