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 are the two config files for Postfix called?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The two main config files are master.cf and main.cf.
halts the system
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
2. What are the side effects of shrinking a volume group or logical volume?
have the same effect
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
user's home directory in the /etc/skel directory
3. What is the name of the package that allows you to install VNC?
The NFS service uses TCP port 2049 by default.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
support for TCP Wrappers
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.
4. What directory is used to represent the virtual file system created by the kernel?
alternatives --config mta
The ping command can be used to verify connectivity to another host.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
ifconfig
5. What command can you use to validate the syntax of the Apache config file?
The print option is used with both the fdisk and parted commands to display the current partition tables.
via the command line
service httpd configtest
choose which mode you'd like it to operate in
6. What command and option can you use to enable a service to start on boot?
getsebool -a | grep http
The -t nfs option is used with the mount command to mount NFS resources.
The SMTP service runs on TCP port 110.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
7. What option would you use to query an installed package using the rpm command?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
chkconfig—list
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.
8. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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.
useradd -c "Jr Admin" George
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Use the yum groupinstall command to install multiple packages in a single group at once.
9. What port must be opened on the firewall for DNS?
DNS uses port 53.
chkconfig—list
The mount command lists all currently mounted file systems.
The four types of DNS servers are master - slave - caching-only - and forwarding.
10. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
Use the resize2fs command to grow a file system.
getsebool
The yum and rpm commands are used for package management.
11. What command and option do you use to view the description of Boolean values?
A user's home directory is created under the /home directory.
semanage boolean -l
By default - Squid runs on port 3128.
support for TCP Wrappers
12. What is the difference between an A record and a PTR record?
The -t nfs option is used with the mount command to mount NFS resources.
support for TCP Wrappers
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
13. What command and options can you use to update the time?
used for kickstart and/or network installs
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The NFS service uses TCP port 2049 by default.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
14. 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.
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
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.
15. What command displays your current interfaces and IP address?
The DHCP server listens on port 67 by default.
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.
You can use the authconfig-tui command or the authconfig command.
ifconfig
16. The at command is used to ____________. The cron service handles reoccurring system jobs.
chkconfig—list
The mount command lists all currently mounted file systems.
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.
schedule one-time-only jobs
17. Red Hat Enterprise Linux 6 is the only version that officially supports _______
user's home directory in the /etc/skel directory
Physical volumes - volume groups - and logical volumes.
The SMTP service runs on TCP port 110.
LUKS encryption
18. What is a swap? Is it created as a partition or device file?
The nfsstat command can be used to view NFS statistics.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
service dhcpd configtest
19. What command can you use to query information from the kernel about RAID arrays?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
cat /proc/mdstat
The nfsstat command can be used to view NFS statistics.
chkconfig—list
20. What port does the DHCP server listen on 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
service dhcpd configtest
The DHCP server listens on port 67 by default.
SELinux provides enhanced granular security for the Linux operating system.
21. How can you check the currently mounted file systems?
Enforcing during installation
halts the system
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The mount command lists all currently mounted file systems.
22. What command can you use to view mounted Samba shares?
Typing the mail or mutt command allows you to read mail from the command line.
Use the resize2fs command to grow a file system.
This chapter described tdbsm and smbpasswd back-end authentication.
The smbstatus command shows you currently mounted Samba resources.
23. Before you work with quotas - what do you need to do to the file system?
By default - the rndc utility listens on port 953.
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.
DNS uses port 53.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
24. What does the partprobe command 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.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
25. Which log file is used to keep track of policy violations?
SSH is used for secure remote management of Linux systems.
getsebool -a | grep http
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.
The /var/log/audit/audit.log file contains all policy violations.
26. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
rpcbind service
27. A slave DNS server provides...
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
load balancing and redundancy benefits
The NFS service uses TCP port 2049 by default.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
28. SSH does...
support TCP Wrappers
The user_list file can be used to limit which users have access to the FTP server.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
SELinux Booleans provide restrictions to different aspects of a service.
29. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
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.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
30. 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
31. What are the three modes in which the rpm command can operate?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
DNS uses port 53.
The rpm command can operate in install - query - or verify modes.
LUKS encryption
32. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
The three utilities are: route - ping - and nslookup.
The mount command lists all currently mounted file systems.
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.
33. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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.
service sshd statuts
The /etc/fstab file.
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.
34. The ____________ is available for each share.
browseable option
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.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
getfacl
35. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
rpmbuild
via the command line
The du and df commands are used to view available space on the system.
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
36. What command can you use to get information about logical volumes?
getsebool -a | grep http
lvdisplay
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
browseable option
37. What are the five required directories when building RPMS?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Enforcing during installation
38. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
By defining a %post section - you can run scripts after a kickstart installation is complete.
mkfs.ext4
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
You add your action to the end of the /home/user01/.bashrc file.
39. What option is used with both the fdisk and parted commands to display the current partition tables?
By default - the rndc utility listens on port 953.
getsebool
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The print option is used with both the fdisk and parted commands to display the current partition tables.
40. What command can you use to change the context of files?
chcon
This chapter described tdbsm and smbpasswd back-end authentication.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the resize2fs command to grow a file system.
41. The exportfs command is used to...
The ping command can be used to verify connectivity to another host.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
export one or all resources
The virsh command is used to manage virtual guests.
42. 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
43. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
By default - the rndc utility listens on port 953.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
useradd -c "Jr Admin" George
44. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getsebool -a | grep http
Use the top command to view CPU and memory usage.
SELinux provides enhanced granular security for the Linux operating system.
45. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
cat /proc/mdstat
you have access to the correct packages or repositories.
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 rpm command can operate in install - query - or verify modes.
46. What file needs to be edited so that the system will mount a file system at boot time?
service sshd statuts
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
The /etc/fstab file.
47. It is possible to run scripts before a kickstart installation. This is done by...
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
enabled by default
browseable option
defining a %pre section although it is rarely used
48. A service needs to have _______________ to be able to use it.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The smbpasswd command is used to create Samba users.
chkconfig sshd off
support for TCP Wrappers
49. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
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.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
SELinux provides enhanced granular security for the Linux operating system.
50. How would you go about creating a static route?
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 lastlog and faillog commands are used to view user login-related events?
Use the route command with the add option to create a static route.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.