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 default port that Squid runs on?
By default - Squid runs on port 3128.
generates errors under Red Hat Enterprise Linux 6
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
enabled by default
2. What three components are needed to fully automate a kickstart installation?
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 print option is used with both the fdisk and parted commands to display the current partition tables.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
lvdisplay
3. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
The vsftpd package is used to install an FTP server.
Using the chcon command - you can change the context of a file to work with Apache.
service dhcpd configtest
via the command line
4. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
rpcbind service
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
5. It is possible to run scripts before a kickstart installation. This is done by...
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You must open TCP ports 20 and 21 for the FTP server to function properly.
defining a %pre section although it is rarely used
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
6. The exportfs command is used to...
The service command is used to start - stop - and manage system services.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
export one or all resources
The anonymous_enable=YES option in the main config file allows anonymous uploads.
7. Before you work with quotas - what do you need to do to the file system?
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
8. What option at the GRUB boot menu can you use to append something to a kernel?
getsebool -a | grep http
DNS uses port 53.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
9. How can you display all virtual guests after they're connected to a hypervisor?
chkconfig xinetd --list
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
mkfs.ext4
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
10. What command can you use to view mounted Samba shares?
via the command line
The smbstatus command shows you currently mounted Samba resources.
rpcbind service
The TFTP server uses UDP port 69.
11. How do you run a command with elevated privileges?
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.
amount of RAM
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
VNC is used to control a remote desktop session.
12. 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.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the yum groupinstall command to install multiple packages in a single group at once.
The lftp command can be used on a client to test FTP server connections.
13. 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
14. What command can you use to create a file system?
DNS uses port 53.
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.
lvdisplay
mkfs.ext4
15. 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
16. 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 ping command can be used to verify connectivity to another host.
support for TCP Wrappers
The virsh command is used to manage virtual guests.
Enforcing during installation
17. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Physical volumes - volume groups - and logical volumes.
enabled by default
The ping command can be used to verify connectivity to another host.
18. What is the rndc utility used for?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
browseable option
The rndc utility provides a method for managing the DNS server remotely and securely.
Physical volumes - volume groups - and logical volumes.
19. 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.
chkconfig sshd off
service dhcpd configtest
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
20. What are the three different types of RAID described in this chapter?
The lastlog and faillog commands are used to view user login-related events?
The NFS service uses TCP port 2049 by default.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
21. What is the /etc/vsftpd/user_list file used for?
The virsh command is used to manage virtual guests.
The service command is used to start - stop - and manage system services.
The user_list file can be used to limit which users have access to the FTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
22. The at command is used to ____________. The cron service handles reoccurring system jobs.
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.
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.
schedule one-time-only jobs
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
23. A slave DNS server provides...
The /var/log/audit/audit.log file contains all policy violations.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
load balancing and redundancy benefits
24. 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.
export one or all resources
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
service dhcpd configtest
25. What command and option can you use to enable a service to start on boot?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chcon
The rndc utility provides a method for managing the DNS server remotely and securely.
26. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Version 2 is the latest and most secure version of SSH.
This command reboots virtual guest Client04.
The nfsstat command can be used to view NFS statistics.
27. What port does NFS use by default?
chkconfig xinetd --list
DNS uses port 53.
The NFS service uses TCP port 2049 by default.
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.
28. What command can you use to test the config files before starting the DNS service?
The smbstatus command shows you currently mounted Samba resources.
you have access to the correct packages or repositories.
service named configtest
By default - the rndc utility listens on port 953.
29. What is the superblock used for?
amount of RAM
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
generates errors under Red Hat Enterprise Linux 6
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
30. What is the virsh command used for?
By default - the rndc utility listens on port 953.
The /var/log/audit/audit.log file contains all policy violations.
The virsh command is used to manage virtual guests.
serve both files and printers to users
31. What command displays your current interfaces and IP address?
amount of RAM
ifconfig
cat /proc/mdstat
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
32. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
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 ping command can be used to verify connectivity to another host.
The smbstatus command shows you currently mounted Samba resources.
33. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
ifconfig
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.
34. To create a RAID or LVM partition using kickstart
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
35. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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.
You can use the authconfig-tui command or the authconfig command.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
36. What are the three items that make up LVM?
The mount command lists all currently mounted file systems.
kickstart installations to work
Physical volumes - volume groups - and logical volumes.
serve both files and printers to users
37. What are the five required directories when building RPMS?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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 rpm command can operate in install - query - or verify modes.
38. What does the rdnc-confgen command do?
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 have access to the correct packages or repositories.
The dig - host - and ping commands can be used to test DNS server functionality.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
39. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
lvdisplay
have the same effect
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
40. A PXE server eases the automation process but isn't required for...
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.
kickstart installations to work
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the top command to view CPU and memory usage.
41. What two commands are used for package management?
user's home directory in the /etc/skel directory
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The yum and rpm commands are used for package management.
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
42. What is the top command used for?
The TFTP server uses UDP port 69.
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
rpmbuild
Use the top command to view CPU and memory usage.
43. What critical step must you take after updating the kernel to a newer version?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
useradd -c "Jr Admin" George
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.
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.
44. SSH does...
Use the yum groupinstall command to install multiple packages in a single group at once.
The user_list file can be used to limit which users have access to the FTP server.
support TCP Wrappers
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
45. 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
46. What port must be opened on the firewall for DNS?
DNS uses port 53.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
semanage boolean -l
choose which mode you'd like it to operate in
47. What is the main config file for the DHCP service?
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The mount command lists all currently mounted file systems.
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.
48. What is the point of using SELinux?
Use the resize2fs command to grow a file system.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
SELinux provides enhanced granular security for the Linux operating system.
schedule one-time-only jobs
49. 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
50. What is a virtual host?
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
useradd -c "Jr Admin" George
A virtual host is a way of hosting multiple sites using a single IP address.