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 point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
export one or all resources
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
2. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By default - Squid runs on port 3128.
LUKS encryption
support TCP Wrappers
3. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
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.
used for kickstart and/or network installs
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
4. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
SSH is used for secure remote management of Linux systems.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Apache uses port 80 for HTTP and port 443 for HTTPS.
5. What two ports should be opened on the firewall for the FTP server to function properly?
semanage boolean -l
createrepo
You must open TCP ports 20 and 21 for the FTP server to function properly.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
6. 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.
Enforcing during installation
you have access to the correct packages or repositories.
have the same effect
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.
7. The at command is used to ____________. The cron service handles reoccurring system jobs.
getsebool
schedule one-time-only jobs
The mount command lists all currently mounted file systems.
SSH is used for secure remote management of Linux systems.
8. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
The user_list file can be used to limit which users have access to the FTP server.
Using the chcon command - you can change the context of a file to work with Apache.
The lastlog and faillog commands are used to view user login-related events?
9. A PXE server eases the automation process but isn't required for...
kickstart installations to work
setsebool -P nfs_export_all_rw=1
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
A user's home directory is created under the /home directory.
10. Before you work with quotas - what do you need to do to the file system?
rpmbuild
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the setgid flag to create the appropriate permissions (chmod 2770).
11. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
12. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
13. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
You can use the authconfig-tui command or the authconfig command.
support TCP Wrappers
via the command line
The smbstatus command shows you currently mounted Samba resources.
14. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
schedule one-time-only jobs
Apache uses port 80 for HTTP and port 443 for HTTPS.
The DHCP server listens on port 67 by default.
15. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
semanage boolean -l
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.
You add your action to the end of the /home/user01/.bashrc file.
chkconfig sshd off
16. 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
17. What is the name of the section used to run scripts after a kickstart installation?
atq
The /var/log/audit/audit.log file contains all policy violations.
LUKS encryption
By defining a %post section - you can run scripts after a kickstart installation is complete.
18. 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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
19. What port on the firewall needs to be open for the TFTP server to work?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
service named configtest
The TFTP server uses UDP port 69.
The user_list file can be used to limit which users have access to the FTP server.
20. How can you verify the status of the SSH service after the system has booted?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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
Use the route command with the add option to create a static route.
service sshd statuts
21. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
chkconfig sshd off
SELinux Booleans provide restrictions to different aspects of a service.
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.
22. What command can you use to manage system services?
SSH is used for secure remote management of Linux systems.
The mount command lists all currently mounted file systems.
The service command is used to start - stop - and manage system services.
The du and df commands are used to view available space on the system.
23. SSH does...
support TCP Wrappers
support for TCP Wrappers
By default - Squid runs on port 3128.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
24. What command can you use to monitor and troubleshoot network connections?
kickstart installations to work
The tcpdump command is used to monitor network connections on different interfaces.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
You add your action to the end of the /home/user01/.bashrc file.
25. How can you change the security context of a directory to work with Apache?
The service command is used to start - stop - and manage system services.
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
Using the chcon command - you can change the context of a file to work with Apache.
Enforcing during installation
26. What command can you use to create a password-protected page?
A user's home directory is created under the /home directory.
The htpasswd command can be used to password-protect a web page.
service dhcpd configtest
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
27. 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.
kickstart installations to work
The SMTP service runs on TCP port 110.
schedule one-time-only jobs
28. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
alternatives --config mta
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the setgid flag to create the appropriate permissions (chmod 2770).
29. The firewall service is...
SELinux Booleans provide restrictions to different aspects of a service.
atq
enabled by default
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
30. Which remote management service is installed by default?Can you name the port that it uses?
The rpm command can operate in install - query - or verify modes.
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.
The SMTP service runs on TCP port 110.
31. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
32. What is the top command used for?
createrepo
load balancing and redundancy benefits
defining a %pre section although it is rarely used
Use the top command to view CPU and memory usage.
33. What does the partprobe command do?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
generates errors under Red Hat Enterprise Linux 6
34. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
via the command line
mkfs.ext4
chkconfig—list
35. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The virsh command is used to manage virtual guests.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
36. What are the three items that make up LVM?
chkconfig xinetd --list
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Physical volumes - volume groups - and logical volumes.
37. How would you install a group of packages all at a single time?
Use the yum groupinstall command to install multiple packages in a single group at once.
support for TCP Wrappers
chcon
serve both files and printers to users
38. What is the main config file for the DHCP service?
Use the route command with the add option to create a static route.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
39. 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
40. The ____________ is available for each share.
getfacl
browseable option
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.
generates errors under Red Hat Enterprise Linux 6
41. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
Use the route command with the add option to create a static route.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
42. What happens to jobs that are scheduled to run while the system is off?
When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
By default - the rndc utility listens on port 953.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
have the same effect
43. What is a virtual host?
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 user_list file can be used to limit which users have access to the FTP server.
A virtual host is a way of hosting multiple sites using a single IP address.
Enforcing during installation
44. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
useradd -c "Jr Admin" George
45. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
This command reboots virtual guest Client04.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Version 2 is the latest and most secure version of SSH.
46. Runlevel 0 ___________. Runlevel 6 reboots the system.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
halts the system
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The virsh command is used to manage virtual guests.
47. Are additional packages besides httpd required for a secure website - If so - what are they?
Use the yum groupinstall command to install multiple packages in a single group at once.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
48. Where are Yum repository config files located?
repquota
via the command line
Use the route command with the add option to create a static route.
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.
49. What are the side effects of shrinking a volume group or logical volume?
kickstart installations to work
The /etc/fstab file.
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.
rpmbuild
50. What command can you use to change the context of files?
chcon
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.
user's home directory in the /etc/skel directory
rpcbind service