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 protocols are used with Dovecot?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Version 2 is the latest and most secure version of SSH.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The print option is used with both the fdisk and parted commands to display the current partition tables.
2. Do you need to write changes to the disk when using the parted command? What about fdisk?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
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.
3. What command can you use to query Boolean values?
A virtual host is a way of hosting multiple sites using a single IP address.
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 DHCP server listens on port 67 by default.
getsebool
4. What is a gateway used for on a network?
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The NFS service uses TCP port 2049 by default.
5. What is the format of the /etc/shadow file?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
You can use the remove or erase options with yum to remove a package.
The -t nfs option is used with the mount command to mount NFS resources.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
6. To export directories as resources - what file needs to be edited?
7. What command and option can you use to enable a service to start on boot?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
chcon
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
8. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
Apache uses port 80 for HTTP and port 443 for HTTPS.
A virtual host is a way of hosting multiple sites using a single IP address.
The nfsstat command can be used to view NFS statistics.
9. What is the point of using SELinux?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
SELinux provides enhanced granular security for the Linux operating system.
The lastlog and faillog commands are used to view user login-related events?
10. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The mount command lists all currently mounted file systems.
The three utilities are: route - ping - and nslookup.
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
11. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
SSH is used for secure remote management of Linux systems.
The NFS service uses TCP port 2049 by default.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
12. What two commands are special for dealing with user login events?
By default - the rndc utility listens on port 953.
SSH is used for secure remote management of Linux systems.
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.
The lastlog and faillog commands are used to view user login-related events?
13. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The du and df commands are used to view available space on the system.
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 default - the rndc utility listens on port 953.
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.
14. What is the top command used for?
SSH is used for secure remote management of Linux systems.
Use the top command to view CPU and memory usage.
The rpm command can operate in install - query - or verify modes.
A virtual host is a way of hosting multiple sites using a single IP address.
15. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
createrepo
Enforcing during installation
The print option is used with both the fdisk and parted commands to display the current partition tables.
16. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
via the command line
Enforcing during installation
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.
The print option is used with both the fdisk and parted commands to display the current partition tables.
17. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
via the command line
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.
18. What are the side effects of shrinking a volume group or logical volume?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
DNS uses port 53.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
19. What command and options can you use to update the time?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
used for kickstart and/or network installs
The virsh command is used to manage virtual guests.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
20. What does the partprobe command do?
Use the yum groupinstall command to install multiple packages in a single group at once.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
21. What is PAM used for?
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 smbpasswd command is used to create Samba users.
The vsftpd package is used to install an FTP server.
you have access to the correct packages or repositories.
22. What directory is used to represent the virtual file system created by the kernel?
service sshd statuts
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the route command with the add option to create a static route.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
23. What command can you use to view the current ACL on a file?
mkfs.ext4
cat /proc/mdstat
getfacl
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
24. How can you verify the status of the SSH service after the system has booted?
SELinux provides enhanced granular security for the Linux operating system.
export one or all resources
You must open TCP ports 20 and 21 for the FTP server to function properly.
service sshd statuts
25. What is VNC?
For Apache to run a secure site - the mod_ssl package is required to be installed.
VNC is used to control a remote desktop session.
getfacl
You add your action to the end of the /home/user01/.bashrc file.
26. What is a swap? Is it created as a partition or device file?
A virtual host is a way of hosting multiple sites using a single IP address.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
27. What command is used to create a user for Samba?
SSH is used for secure remote management of Linux systems.
Use the resize2fs command to grow a file system.
The smbpasswd command is used to create Samba users.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
28. Where are Yum repository config files located?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
load balancing and redundancy benefits
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 lastlog and faillog commands are used to view user login-related events?
29. What is the benefit to using centralized authentication?
30. Which log file is used to keep track of policy violations?
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 nfsstat command can be used to view NFS statistics.
The /var/log/audit/audit.log file contains all policy violations.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
31. What happens to jobs that are scheduled to run while the system is off?
serve both files and printers to users
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.
getsebool
createrepo
32. What command and option do you use to view the description of Boolean values?
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.
choose which mode you'd like it to operate in
Use the setgid flag to create the appropriate permissions (chmod 2770).
semanage boolean -l
33. What file is used to maintain custom parameters for the kernel during system boot?
If you are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Use the setgid flag to create the appropriate permissions (chmod 2770).
34. What port does the SMTP service run on?
LUKS encryption
rpcbind 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
The SMTP service runs on TCP port 110.
35. Can you name the two commands that can be used to view the free space on the system?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The du and df commands are used to view available space on the system.
VNC is used to control a remote desktop session.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
36. What is SSH used for?
SSH is used for secure remote management of Linux systems.
VNC is used to control a remote desktop session.
The ping command can be used to verify connectivity to another host.
serve both files and printers to users
37. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
38. SSH does...
support TCP Wrappers
amount of RAM
The smbstatus command shows you currently mounted Samba resources.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
39. 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.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The ping command can be used to verify connectivity to another host.
export one or all resources
40. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
cat /proc/mdstat
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
generates errors under Red Hat Enterprise Linux 6
41. To create a RAID or LVM partition using kickstart
user's home directory in the /etc/skel directory
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the ps command to view processes and their CPU usage.
Enforcing during installation
42. What command can you use to view mounted Samba shares?
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 service command is used to start - stop - and manage system services.
The smbstatus command shows you currently mounted Samba resources.
chkconfig—list
43. Can you put your /boot partition on a RAID 5 array?
Use the ps command to view processes and their CPU usage.
Enforcing during installation
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
44. What is the biggest benefit to using LVM over basic partitions?
have the same effect
The three utilities are: route - ping - and nslookup.
serve both files and printers to users
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.
45. Should you allow remote root access - Why or why not?
46. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
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 TFTP server uses UDP port 69.
The rpm command can operate in install - query - or verify modes.
47. Before you work with ACLs - what do you need to do to the file system?
The rndc utility provides a method for managing the DNS server remotely and securely.
semanage boolean -l
used for kickstart and/or network installs
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
48. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
repquota
49. What three commands can you use to help verify that the DNS server is functioning properly?
A virtual host is a way of hosting multiple sites using a single IP address.
The dig - host - and ping commands can be used to test DNS server functionality.
Enforcing during installation
The du and df commands are used to view available space on the system.
50. To grow a file system
chcon
Use the top command to view CPU and memory usage.
Use the resize2fs command to grow a file system.
schedule one-time-only jobs