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 port must be opened on the firewall for DNS?
ifconfig
useradd -c "Jr Admin" George
DNS uses port 53.
alternatives --config mta
2. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
The yum and rpm commands are used for package management.
The rndc utility provides a method for managing the DNS server remotely and securely.
service named configtest
Sendmail
3. What is the name of the package used to install an FTP?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The vsftpd package is used to install an FTP server.
amount of RAM
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.
4. What option at the GRUB boot menu can you use to append something to a kernel?
schedule one-time-only jobs
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Use the ps command to view processes and their CPU usage.
5. What option needs to be used with the mount command to mount an NFS resource?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The nfsstat command can be used to view NFS statistics.
The -t nfs option is used with the mount command to mount NFS resources.
You can use the authconfig-tui command or the authconfig command.
6. What port does the rndc utility listen on by default?
alternatives --config mta
By default - the rndc utility listens on port 953.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
service dhcpd configtest
7. It is possible to run scripts before a kickstart installation. This is done by...
A virtual host is a way of hosting multiple sites using a single IP address.
Use the top command to view CPU and memory usage.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
defining a %pre section although it is rarely used
8. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
Enforcing during installation
browseable option
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.
9. What is the point of using SELinux?
run on any port you'd like (provided that port is available)
semanage boolean -l
SELinux provides enhanced granular security for the Linux operating system.
atq
10. 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.
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.
A user's home directory is created under the /home directory.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
11. What command and option do you use to view the description of Boolean values?
chcon
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The SMTP service runs on TCP port 110.
semanage boolean -l
12. 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
13. What are the three items that make up LVM?
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.
A user's home directory is created under the /home directory.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Physical volumes - volume groups - and logical volumes.
14. Most boot issues can be resolved by...
halts the system
entering rescue mode and repairing the problem.
service httpd configtest
The user_list file can be used to limit which users have access to the FTP server.
15. 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
16. What command is used to create an RPM package?
Sendmail
rpmbuild
The lastlog and faillog commands are used to view user login-related events?
This command reboots virtual guest Client04.
17. What is the name of the package that allows you to install VNC?
setsebool -P nfs_export_all_rw=1
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
18. What command can you use to view NFS statistics?
createrepo
The print option is used with both the fdisk and parted commands to display the current partition tables.
support TCP Wrappers
The nfsstat command can be used to view NFS statistics.
19. What is the format of the /etc/shadow file?
Use the resize2fs command to grow a file system.
Use the route command with the add option to create a static route.
ifconfig
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
20. What are SELinux Booleans?
SSH is used for secure remote management of Linux systems.
SELinux Booleans provide restrictions to different aspects of a service.
have the same effect
You can use the authconfig-tui command or the authconfig command.
21. What is SSH used for?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
SSH is used for secure remote management of Linux systems.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
22. What port does the SMTP service run on?
service dhcpd configtest
Version 2 is the latest and most secure version of SSH.
The SMTP service runs on TCP port 110.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
23. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
getsebool -a | grep http
Enforcing during installation
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
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
24. What is NAT - How is it used?
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.
The DHCP server listens on port 67 by default.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
25. What is the main config file for the DHCP service?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
amount of RAM
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
26. What directory is used to represent the virtual file system created by the kernel?
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 tcpdump command is used to monitor network connections on different interfaces.
browseable option
27. What command can you use to create a file system?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
A virtual host is a way of hosting multiple sites using a single IP address.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
mkfs.ext4
28. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
repquota
Version 2 is the latest and most secure version of SSH.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
29. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
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.
service named configtest
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
30. What option is used to allow anonymous uploads to the FTP server?
cat /proc/mdstat
The lftp command can be used on a client to test FTP server connections.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The DHCP server listens on port 67 by default.
31. 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
The vsftpd package is used to install an FTP server.
defining a %pre section although it is rarely used
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
32. What is the name of the section used to run scripts after a kickstart installation?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Physical volumes - volume groups - and logical volumes.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
33. Are additional packages besides httpd required for a secure website - If so - what are they?
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
The two main config files are master.cf and main.cf.
chcon
For Apache to run a secure site - the mod_ssl package is required to be installed.
34. What is the superblock used for?
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
you have access to the correct packages or repositories.
Use the route command with the add option to create a static route.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
35. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
36. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
useradd -c "Jr Admin" George
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 dig - host - and ping commands can be used to test DNS server functionality.
37. How can virtual hosts be used?
service named configtest
By default - Squid runs on port 3128.
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.
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.
38. Which remote management service is installed by default?Can you name the port that it uses?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The -t nfs option is used with the mount command to mount NFS resources.
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.
39. What does the partprobe command do?
The DHCP server listens on port 67 by default.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
choose which mode you'd like it to operate in
Use the resize2fs command to grow a file system.
40. What command can be used to view the queue for at service jobs?
atq
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The ping command can be used to verify connectivity to another host.
The tcpdump command is used to monitor network connections on different interfaces.
41. What command can be used to easily list all the options in the FTP main config file?
The dig - host - and ping commands can be used to test DNS server functionality.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
42. The ____________ is available for each share.
browseable option
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
43. What command can you use to view mounted Samba shares?
The yum and rpm commands are used for package management.
The smbstatus command shows you currently mounted Samba resources.
useradd -c "Jr Admin" George
The rpm command can operate in install - query - or verify modes.
44. 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
45. What is the biggest benefit to using LVM over basic partitions?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig sshd off
LUKS encryption
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.
46. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
schedule one-time-only jobs
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.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
47. A slave DNS server provides...
load balancing and redundancy benefits
createrepo
choose which mode you'd like it to operate in
alternatives --config mta
48. What is the default port that Squid runs on?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
defining a %pre section although it is rarely used
By default - Squid runs on port 3128.
browseable option
49. What command do you use to change the permissions on a file or directory - To change ownership?
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.
generates errors under Red Hat Enterprise Linux 6
load balancing and redundancy benefits
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
50. What command can you use to view the current ACL on a file?
getfacl
service sshd statuts
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.