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 is the virsh command used for?
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.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The virsh command is used to manage virtual guests.
By default - the rndc utility listens on port 953.
2. 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.
Typing the mail or mutt command allows you to read mail from the command line.
defining a %pre section although it is rarely used
The two main config files are master.cf and main.cf.
3. What command and options can you use to update the time?
schedule one-time-only jobs
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
4. Before you work with ACLs - what do you need to do to the file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
getsebool
5. What are SELinux Booleans?
cat /proc/mdstat
The /etc/fstab file.
SELinux Booleans provide restrictions to different aspects of a service.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
6. What two ports should be opened on the firewall for the FTP server to function properly?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Typing the mail or mutt command allows you to read mail from the command line.
7. What are the three different types of RAID described in this chapter?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
8. How would you view all Boolean options for the HTTP service?
The rndc utility provides a method for managing the DNS server remotely and securely.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
getsebool -a | grep http
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
9. A slave DNS server provides...
load balancing and redundancy benefits
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
By default - Squid runs on port 3128.
10. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
browseable option
schedule one-time-only jobs
SSH is used for secure remote management of Linux systems.
11. What is the superblock used for?
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The mount command lists all currently mounted file systems.
12. What are the two config files for Postfix called?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The NFS service uses TCP port 2049 by default.
The two main config files are master.cf and main.cf.
13. How can you list all services on the system to tell whether they will boot during startup?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
chkconfig xinetd --list
load balancing and redundancy benefits
chkconfig—list
14. What port does the DHCP server listen on by default?
The du and df commands are used to view available space on the system.
The yum and rpm commands are used for package management.
The DHCP server listens on port 67 by default.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
15. Do you need to write changes to the disk when using the parted command? What about fdisk?
The lastlog and faillog commands are used to view user login-related events?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
getsebool -a | grep http
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.
16. What is a swap? Is it created as a partition or device file?
Version 2 is the latest and most secure version of SSH.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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.
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.
17. What port does NFS use by default?
The three utilities are: route - ping - and nslookup.
The NFS service uses TCP port 2049 by default.
Physical volumes - volume groups - and logical volumes.
service dhcpd configtest
18. What does it mean if you ping a host and you receive the response Destination Unreachable?
The htpasswd command can be used to password-protect a web page.
service sshd statuts
The /etc/fstab file.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
19. What option is used to allow anonymous uploads to the FTP server?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
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 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.
20. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
lvdisplay
The virsh command is used to manage virtual guests.
You add your action to the end of the /home/user01/.bashrc file.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
21. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
support TCP Wrappers
setsebool -P nfs_export_all_rw=1
DNS uses port 53.
22. What port does the Apache web server run on - What about HTTPS?
entering rescue mode and repairing the problem.
Use the top command to view CPU and memory usage.
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
23. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The two main config files are master.cf and main.cf.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
24. What is the name of the section used to run scripts after a kickstart installation?
By defining a %post section - you can run scripts after a kickstart installation is complete.
SELinux provides enhanced granular security for the Linux operating system.
atq
The /etc/fstab file.
25. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
via the command line
setsebool -P nfs_export_all_rw=1
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.
Enforcing during installation
26. How can you change the security context of a directory to work with Apache?
The smbpasswd command is used to create Samba users.
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.
Using the chcon command - you can change the context of a file to work with Apache.
have the same effect
27. What command and option do you use to view the description of Boolean values?
semanage boolean -l
The vsftpd package is used to install an FTP server.
The ping command can be used to verify connectivity to another host.
Use the resize2fs command to grow a file system.
28. What file needs to be edited so that the system will mount a file system at boot time?
generates errors under Red Hat Enterprise Linux 6
The /etc/fstab file.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
29. What two commands are special for dealing with user login events?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The lastlog and faillog commands are used to view user login-related events?
The four types of DNS servers are master - slave - caching-only - and forwarding.
service named configtest
30. 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
31. Runlevel 0 ___________. Runlevel 6 reboots the system.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
chcon
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
halts the system
32. To create a RAID or LVM partition using kickstart
kickstart installations to work
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
Enforcing during installation
33. What client-side command can you use to test your FTP server connection?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The lftp command can be used on a client to test FTP server connections.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Use the top command to view CPU and memory usage.
34. What command can you use to test the config files before starting the DNS service?
You add your action to the end of the /home/user01/.bashrc file.
service named configtest
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.
chcon
35. What command can be used to easily list all the options in the FTP main config file?
The lftp command can be used on a client to test FTP server connections.
The htpasswd command can be used to password-protect a web page.
The TFTP server uses UDP port 69.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
36. What three protocols can you use to perform network installations?
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The htpasswd command can be used to password-protect a web page.
setsebool -P nfs_export_all_rw=1
37. What command can you use to view mounted Samba shares?
LUKS encryption
The smbstatus command shows you currently mounted Samba resources.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the resize2fs command to grow a file system.
38. 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.
Sendmail
mkfs.ext4
Network installations can be performed using the HTTP - FTP - and NFS protocols.
39. 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
40. What option would you use to query an installed package using the rpm command?
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.
The tcpdump command is used to monitor network connections on different interfaces.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
41. What port must be opened on the firewall for DNS?
By default - the rndc utility listens on port 953.
DNS uses port 53.
Use the top command to view CPU and memory usage.
alternatives --config mta
42. What command can you use to create a file system?
A virtual host is a way of hosting multiple sites using a single IP address.
mkfs.ext4
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The NFS service uses TCP port 2049 by default.
43. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
VNC is used to control a remote desktop session.
amount of RAM
44. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
Version 2 is the latest and most secure version of SSH.
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.
mkfs.ext4
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
45. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
46. What two commands are used for package management?
The yum and rpm commands are used for package management.
A user's home directory is created under the /home directory.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
support for TCP Wrappers
47. How can virtual hosts be used?
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The mount command lists all currently mounted file systems.
LUKS encryption
48. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
atq
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
This command reboots virtual guest Client04.
49. What command can you use to validate the syntax of the Apache config file?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
service httpd configtest
Use the top command to view CPU and memory usage.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
50. 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