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. How can you display all virtual guests after they're connected to a hypervisor?
via the command line
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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 lastlog and faillog commands are used to view user login-related events?
2. What port does NFS use by default?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
entering rescue mode and repairing the problem.
The yum and rpm commands are used for package management.
The NFS service uses TCP port 2049 by default.
3. What command is used to create a user for Samba?
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 smbpasswd command is used to create Samba users.
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.
via the command line
4. What command can you use to get information about logical volumes?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
schedule one-time-only jobs
lvdisplay
5. What command (and options) can be used to create a user named George with the description "Jr Admin"?
mkfs.ext4
schedule one-time-only jobs
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.
useradd -c "Jr Admin" George
6. What is the name of the package used to install an FTP?
serve both files and printers to users
Typing the mail or mutt command allows you to read mail from the command line.
The vsftpd package is used to install an FTP server.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
7. What critical step must you take after updating the kernel to a newer version?
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 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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
chkconfig sshd off
8. What command do you use to change the permissions on a file or directory - To change ownership?
used for kickstart and/or network installs
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
9. What is the biggest benefit to using LVM over basic partitions?
The virsh command is used to manage virtual guests.
used for kickstart and/or network installs
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
10. 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
11. What are the two config files for Postfix called?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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 lastlog and faillog commands are used to view user login-related events?
The two main config files are master.cf and main.cf.
12. Red Hat Enterprise Linux 6 is the only version that officially supports _______
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.
LUKS encryption
service sshd statuts
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
13. What command and option do you use to view the description of Boolean values?
serve both files and printers to users
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.
semanage boolean -l
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
14. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Enforcing during installation
mkfs.ext4
The tcpdump command is used to monitor network connections on different interfaces.
Sendmail
15. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
halts the system
chkconfig xinetd --list
mkfs.ext4
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
16. What option would you use to query an installed package using the rpm command?
user's home directory in the /etc/skel directory
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.
enabled by default
Use the resize2fs command to grow a file system.
17. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
18. 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
19. How can you list all services on the system to tell whether they will boot during startup?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
chkconfig—list
20. What is the /var/lib/nfs/etab file used for?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The du and df commands are used to view available space on the system.
chkconfig—list
21. What option at the GRUB boot menu can you use to append something to a kernel?
The htpasswd command can be used to password-protect a web page.
SELinux Booleans provide restrictions to different aspects of a service.
LUKS encryption
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
22. What does the testparm command do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Use the top command to view CPU and memory usage.
atq
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.
23. What benefit does a web proxy provide to your network?
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.
Using the chcon command - you can change the context of a file to work with Apache.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
atq
24. What port does the rndc utility listen on by default?
have the same effect
The anonymous_enable=YES option in the main config file allows anonymous uploads.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
By default - the rndc utility listens on port 953.
25. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
support TCP Wrappers
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
26. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
support for TCP Wrappers
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Use the resize2fs command to grow a file system.
27. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
via the command line
The lastlog and faillog commands are used to view user login-related events?
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.
support TCP Wrappers
28. What is SSH used for?
rpcbind service
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
LUKS encryption
SSH is used for secure remote management of Linux systems.
29. What is the default port that Squid runs on?
choose which mode you'd like it to operate in
The service command is used to start - stop - and manage system services.
By default - Squid runs on port 3128.
Sendmail
30. What are the three different types of RAID described in this chapter?
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.
service httpd configtest
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
31. 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
32. The ____________ is available for each share.
This command reboots virtual guest Client04.
VNC is used to control a remote desktop session.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
browseable option
33. 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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The vsftpd package is used to install an FTP server.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
34. What protocols are used with Dovecot?
you have access to the correct packages or repositories.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The user_list file can be used to limit which users have access to the FTP server.
createrepo
35. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
chkconfig xinetd --list
The service command is used to start - stop - and manage system services.
LUKS encryption
36. SSH does...
The dig - host - and ping commands can be used to test DNS server functionality.
The htpasswd command can be used to password-protect a web page.
support TCP Wrappers
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
37. What command can you use to change the context of files?
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.
chcon
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
run on any port you'd like (provided that port is available)
38. Do you need to write changes to the disk when using the parted command? What about fdisk?
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 can use the remove or erase options with yum to remove a package.
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).
39. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
atq
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.
entering rescue mode and repairing the problem.
choose which mode you'd like it to operate in
40. A service needs to have _______________ to be able to use it.
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.
support for TCP Wrappers
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.
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.
41. What command can you use to query information from the kernel about RAID arrays?
via the command line
cat /proc/mdstat
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.
getfacl
42. What is the xinetd service used for?
enabled by default
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
43. What is the main config file for the DHCP service?
The rpm command can operate in install - query - or verify modes.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP 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
enabled by default
44. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
generates errors under Red Hat Enterprise Linux 6
ifconfig
via the command line
45. What command do you use to report information on quota usage?
you have access to the correct packages or repositories.
This command reboots virtual guest Client04.
repquota
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.
46. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The user_list file can be used to limit which users have access to the FTP server.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
getsebool
amount of RAM
47. 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.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
48. Does a DHCP server allow reserved IP addresses - If so - how?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
SELinux Booleans provide restrictions to different aspects of a service.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
49. GRUB has three stages. Can you name them?
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
kickstart installations to work
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
50. What three commands can you use to help verify that the DNS server is functioning properly?
service sshd statuts
The dig - host - and ping commands can be used to test DNS server functionality.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.