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 command can be used to easily list all the options in the FTP main config file?
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.
chcon
have the same effect
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
2. What is the format of the /etc/shadow file?
user's home directory in the /etc/skel directory
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The NFS service uses TCP port 2049 by default.
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.
3. What is the default port that Squid runs on?
choose which mode you'd like it to operate in
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.
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.
4. Can you name three utilities that can be used for network or DNS client troubleshooting?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The three utilities are: route - ping - and nslookup.
By default - Squid runs on port 3128.
5. What command do you use to change the permissions on a file or directory - To change ownership?
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/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The -t nfs option is used with the mount command to mount NFS resources.
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.
6. How can you check the currently mounted file systems?
setsebool -P nfs_export_all_rw=1
via the command line
The mount command lists all currently mounted file systems.
You must open TCP ports 20 and 21 for the FTP server to function properly.
7. How would you go about creating a static route?
A virtual host is a way of hosting multiple sites using a single IP address.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
Use the route command with the add option to create a static route.
entering rescue mode and repairing the problem.
8. What is the top command used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Use the yum groupinstall command to install multiple packages in a single group at once.
Use the top command to view CPU and memory usage.
Use the resize2fs command to grow a file system.
9. 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
defining a %pre section although it is rarely used
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.
via the command line
10. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Sendmail
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
11. To grow a file system
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Use the resize2fs command to grow a file system.
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.
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.
12. What command disables the SSH service from running when the system boots?
chkconfig sshd off
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
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
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
13. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
The /var/log/audit/audit.log file contains all policy violations.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The smbpasswd command is used to create Samba users.
14. What is the point of using SELinux?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
SELinux provides enhanced granular security for the Linux operating system.
By default - Squid runs on port 3128.
schedule one-time-only jobs
15. 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
16. What is the biggest benefit to using LVM over basic partitions?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The du and df commands are used to view available space on the system.
DNS uses port 53.
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.
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. Before you work with quotas - what do you need to do to the file system?
getfacl
A user's home directory is created under the /home directory.
support TCP Wrappers
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
19. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
The -t nfs option is used with the mount command to mount NFS resources.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
20. What is the xinetd service used for?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The service command is used to start - stop - and manage system services.
21. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
SSH is used for secure remote management of Linux systems.
getfacl
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 must open TCP ports 20 and 21 for the FTP server to function properly.
22. The ____________ is available for each share.
browseable option
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
By default - the rndc utility listens on port 953.
chkconfig xinetd --list
23. What commands can you use to add a client machine to an LDAP 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.
You can use the authconfig-tui command or the authconfig command.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The user_list file can be used to limit which users have access to the FTP server.
24. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
25. A slave DNS server provides...
repquota
serve both files and printers to users
Network installations can be performed using the HTTP - FTP - and NFS protocols.
load balancing and redundancy benefits
26. What command can you use to check the config file of the DHCP server?
By defining a %post section - you can run scripts after a kickstart installation is complete.
service dhcpd configtest
The yum and rpm commands are used for package management.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
27. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The lastlog and faillog commands are used to view user login-related events?
Typing the mail or mutt command allows you to read mail from the command line.
28. What command can you use to query information from the kernel about RAID arrays?
generates errors under Red Hat Enterprise Linux 6
cat /proc/mdstat
amount of RAM
The ping command can be used to verify connectivity to another host.
29. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
repquota
halts the system
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
mkfs.ext4
30. GRUB has three stages. Can you name them?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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
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 dig - host - and ping commands can be used to test DNS server functionality.
31. The exportfs command is used to...
Physical volumes - volume groups - and logical volumes.
DNS uses port 53.
export one or all resources
VNC is used to control a remote desktop session.
32. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
getfacl
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.
rpcbind service
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.
33. What command can you use to get information about logical volumes?
setsebool -P nfs_export_all_rw=1
Use the resize2fs command to grow a file system.
export one or all resources
lvdisplay
34. 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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
createrepo
35. What critical step must you take after updating the kernel to a newer version?
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
VNC is used to control a remote desktop session.
36. What option would you use to query an installed package using the rpm command?
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
getfacl
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
37. What three components are needed to fully automate a kickstart installation?
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
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Using the chcon command - you can change the context of a file to work with Apache.
38. What port does the DHCP server listen on by default?
createrepo
The DHCP server listens on port 67 by default.
enabled by default
A user's home directory is created under the /home directory.
39. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
LUKS encryption
used for kickstart and/or network installs
40. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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.
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 - Squid runs on port 3128.
41. What port does the SMTP service run on?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
Use the yum groupinstall command to install multiple packages in a single group at once.
42. What is NAT - How is it used?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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 yum groupinstall command to install multiple packages in a single group at once.
service named configtest
43. 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 tcpdump command is used to monitor network connections on different interfaces.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
44. 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
45. A PXE server eases the automation process but isn't required for...
kickstart installations to work
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 smbstatus command shows you currently mounted Samba resources.
service dhcpd configtest
46. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
By default - Squid runs on port 3128.
generates errors under Red Hat Enterprise Linux 6
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.
47. What port must be opened on the firewall for DNS?
export one or all resources
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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
48. Can you put your /boot partition on a RAID 5 array?
chkconfig sshd off
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
halts the system
49. What command is used to show all services being controlled by the xinetd daemon?
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
chkconfig xinetd --list
You must open TCP ports 20 and 21 for the FTP server to function properly.
50. What command can you use to create your own repositories?
The vsftpd package is used to install an FTP server.
createrepo
The nfsstat command can be used to view NFS statistics.
you have access to the correct packages or repositories.