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 list all services on the system to tell whether they will boot during startup?
chkconfig—list
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The two main config files are master.cf and main.cf.
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.
2. What command can you use to query Boolean values?
rpcbind service
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
getsebool
3. What is the top command used for?
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.
By default - Squid runs on port 3128.
Use the top command to view CPU and memory usage.
4. What command can you use to check the config file of the DHCP server?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
service dhcpd configtest
repquota
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
5. What two ports should be opened on the firewall for the FTP server to function properly?
The virsh command is used to manage virtual guests.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
atq
You must open TCP ports 20 and 21 for the FTP server to function properly.
6. What are the two config files for Postfix called?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /var/log/audit/audit.log file contains all policy violations.
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
7. What command can you use to monitor and troubleshoot network connections?
getfacl
The SMTP service runs on TCP port 110.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The tcpdump command is used to monitor network connections on different interfaces.
8. To grow a file system
Physical volumes - volume groups - and logical volumes.
Use the resize2fs command to grow a file system.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
9. The firewall service is...
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
enabled by default
serve both files and printers to users
rpcbind service
10. What is the format of the /etc/shadow file?
halts the system
Apache uses port 80 for HTTP and port 443 for HTTPS.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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
11. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc file.
export one or all resources
service sshd statuts
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.
12. What is the difference between an A record and a PTR record?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The rndc utility provides a method for managing the DNS server remotely and securely.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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.
13. Explain the difference between soft and hard limits in quotas.
14. How can you display all virtual guests after they're connected to a hypervisor?
Typing the mail or mutt command allows you to read mail from the command line.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The nfsstat command can be used to view NFS statistics.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
15. How would you disable SELinux protection for NFS - allowing shares to be read/write?
run on any port you'd like (provided that port is available)
The du and df commands are used to view available space on the system.
setsebool -P nfs_export_all_rw=1
The ping command can be used to verify connectivity to another host.
16. What protocols are used with Dovecot?
export one or all resources
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
For Apache to run a secure site - the mod_ssl package is required to be installed.
chkconfig xinetd --list
17. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
used for kickstart and/or network installs
mkfs.ext4
Sendmail
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
18. What is the rndc utility used for?
The /etc/fstab file.
schedule one-time-only jobs
The rndc utility provides a method for managing the DNS server remotely and securely.
The htpasswd command can be used to password-protect a web page.
19. How would you go about creating a static route?
You add your action to the end of the /home/user01/.bashrc file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
Use the route command with the add option to create a static route.
20. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
You can use the authconfig-tui command or the authconfig command.
semanage boolean -l
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
rpcbind service
21. What port must be opened on the firewall for DNS?
DNS uses port 53.
alternatives --config mta
The rpm command can operate in install - query - or verify modes.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
22. What command and options can you use to update the time?
The lftp command can be used on a client to test FTP server connections.
run on any port you'd like (provided that port is available)
getsebool -a | grep http
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
23. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
rpcbind service
setsebool -P nfs_export_all_rw=1
alternatives --config mta
24. What option is used with both the fdisk and parted commands to display the current partition tables?
have the same effect
VNC is used to control a remote desktop session.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The four types of DNS servers are master - slave - caching-only - and forwarding.
25. Before you work with quotas - what do you need to do to the file system?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
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.
The NFS service uses TCP port 2049 by default.
26. To export directories as resources - what file needs to be edited?
27. 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.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
A user's home directory is created under the /home directory.
you have access to the correct packages or repositories.
28. Where are Yum repository config files located?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
29. What three commands can you use to help verify that the DNS server is functioning properly?
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 dig - host - and ping commands can be used to test DNS server functionality.
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.
load balancing and redundancy benefits
30. What command is used to create a user for Samba?
The /etc/fstab file.
The rndc utility provides a method for managing the DNS server remotely and securely.
The smbpasswd command is used to create Samba users.
You can use the remove or erase options with yum to remove a package.
31. Through its main config file - SSH can be configured to...
32. What is the /etc/vsftpd/user_list file used for?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The user_list file can be used to limit which users have access to the FTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
run on any port you'd like (provided that port is available)
33. What port does the DHCP server listen on by default?
service dhcpd configtest
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 DHCP server listens on port 67 by default.
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.
34. What does the rdnc-confgen command do?
getfacl
Version 2 is the latest and most secure version of SSH.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
35. By default - what is the path to a user's home directory?
36. What command can you use to view the current ACL on a file?
useradd -c "Jr Admin" George
getfacl
The -t nfs option is used with the mount command to mount NFS resources.
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
37. To create a RAID or LVM partition using kickstart
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
load balancing and redundancy benefits
38. What happens if a host changes its IP address and the keys don't match?
39. The at command is used to ____________. The cron service handles reoccurring system jobs.
A virtual host is a way of hosting multiple sites using a single IP address.
schedule one-time-only jobs
Use the yum groupinstall command to install multiple packages in a single group at once.
getsebool -a | grep http
40. What does the testparm command do?
alternatives --config mta
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
41. What are the five required directories when building RPMS?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The yum and rpm commands are used for package management.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /var/log/audit/audit.log file contains all policy violations.
42. What two commands are used for package management?
The yum and rpm commands are used for package management.
repquota
getsebool
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
43. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
createrepo
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
44. What is the main config file for the DHCP service?
rpmbuild
The /var/log/audit/audit.log file contains all policy violations.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
45. A slave DNS server provides...
This command reboots virtual guest Client04.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
load balancing and redundancy benefits
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
46. A service needs to have _______________ to be able to use it.
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 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.
support for TCP Wrappers
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.
47. What is the superblock used for?
You can use the remove or erase options with yum to remove a package.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The nfsstat command can be used to view NFS statistics.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
48. What is a swap? Is it created as a partition or device file?
cat /proc/mdstat
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.
rpcbind service
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
49. What is the xinetd service used for?
serve both files and printers to users
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
getfacl
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
50. What command would you use to create a group - to add the user George to the group?
Use the yum groupinstall command to install multiple packages in a single group at once.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
getsebool
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.