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 difference between the update (-U) and install (-i) options when using rpm to update the kernel?
The three utilities are: route - ping - and nslookup.
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 rpm command can operate in install - query - or verify modes.
rpcbind service
2. What command and option do you use to view the description of Boolean values?
The tcpdump command is used to monitor network connections on different interfaces.
Apache uses port 80 for HTTP and port 443 for HTTPS.
semanage boolean -l
lvdisplay
3. What two ports should be opened on the firewall for the FTP server to function properly?
support TCP Wrappers
getsebool -a | grep http
Typing the mail or mutt command allows you to read mail from the command line.
You must open TCP ports 20 and 21 for the FTP server to function properly.
4. What command do you use to change the permissions on a file or directory - To change ownership?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The /var/log/audit/audit.log file contains all policy violations.
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
5. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Physical volumes - volume groups - and logical volumes.
The yum and rpm commands are used for package management.
schedule one-time-only jobs
6. What port on the firewall needs to be open for the TFTP server to work?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The TFTP server uses UDP port 69.
LUKS encryption
7. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
8. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The three utilities are: route - ping - and nslookup.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
useradd -c "Jr Admin" George
The nfsstat command can be used to view NFS statistics.
9. You must dictate the ____________ you want allocated to your virtual machine when you create it.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
amount of RAM
By default - Squid runs on port 3128.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
10. What port does NFS use by default?
Use the top command to view CPU and memory usage.
The -t nfs option is used with the mount command to mount NFS resources.
The NFS service uses TCP port 2049 by default.
DNS uses port 53.
11. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
The print option is used with both the fdisk and parted commands to display the current partition tables.
LUKS encryption
browseable option
12. How can you verify the status of the SSH service after the system has booted?
Enforcing during installation
The dig - host - and ping commands can be used to test DNS server functionality.
service sshd statuts
Use the route command with the add option to create a static route.
13. What is VNC?
chkconfig sshd off
VNC is used to control a remote desktop session.
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 system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
14. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
have the same effect
Using the chcon command - you can change the context of a file to work with Apache.
getsebool -a | grep http
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
15. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
16. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
support for TCP Wrappers
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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 VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
17. What benefit does a web proxy provide to your network?
defining a %pre section although it is rarely used
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The /etc/fstab file.
getsebool
18. What two commands are special for dealing with user login events?
support for TCP Wrappers
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The SMTP service runs on TCP port 110.
The lastlog and faillog commands are used to view user login-related events?
19. 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
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
service dhcpd configtest
20. What does the testparm command do?
semanage boolean -l
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The nfsstat command can be used to view NFS statistics.
entering rescue mode and repairing the problem.
21. What client-side command can you use to test your FTP server connection?
rpmbuild
The user_list file can be used to limit which users have access to the FTP server.
The lftp command can be used on a client to test FTP server connections.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
22. What file needs to be edited so that the system will mount a file system at boot 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 /etc/fstab file.
repquota
The lastlog and faillog commands are used to view user login-related events?
23. What command can you use to query information from the kernel about RAID arrays?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
cat /proc/mdstat
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.
24. What are the two config files for Postfix called?
browseable option
The htpasswd command can be used to password-protect a web page.
The two main config files are master.cf and main.cf.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
25. What command can be used to view the queue for at service jobs?
The SMTP service runs on TCP port 110.
service dhcpd configtest
By default - Squid runs on port 3128.
atq
26. What is the rndc utility used for?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The du and df commands are used to view available space on the system.
This command reboots virtual guest Client04.
The rndc utility provides a method for managing the DNS server remotely and securely.
27. What three components are needed to fully automate a kickstart installation?
The user_list file can be used to limit which users have access to the FTP server.
atq
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
28. What three commands can you use to help verify that the DNS server is functioning properly?
chkconfig—list
support TCP Wrappers
The four types of DNS servers are master - slave - caching-only - and forwarding.
The dig - host - and ping commands can be used to test DNS server functionality.
29. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
A virtual host is a way of hosting multiple sites using a single IP address.
The /var/log/audit/audit.log file contains all policy violations.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
30. What are the three different types of RAID described in this chapter?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The -t nfs option is used with the mount command to mount NFS resources.
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.
support for TCP Wrappers
31. How would you go about creating a static route?
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.
Version 2 is the latest and most secure version of SSH.
Use the route command with the add option to create a static route.
The user_list file can be used to limit which users have access to the FTP server.
32. What is the name of the package that allows you to install VNC?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
serve both files and printers to users
33. To create a RAID or LVM partition using kickstart
Use the yum groupinstall command to install multiple packages in a single group at once.
By default - Squid runs on port 3128.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the resize2fs command to grow a file system.
34. What directory is used to represent the virtual file system created by the kernel?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
VNC is used to control a remote desktop session.
Use the ps command to view processes and their CPU usage.
35. Can you name the two commands that can be used to view the free space on the system?
The user_list file can be used to limit which users have access to the FTP server.
used for kickstart and/or network installs
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 du and df commands are used to view available space on the system.
36. What commands can you use to add a client machine to an LDAP server?
Using the chcon command - you can change the context of a file to work with Apache.
You can use the authconfig-tui command or the authconfig command.
SSH is used for secure remote management of Linux systems.
service named configtest
37. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The /var/log/audit/audit.log file contains all policy violations.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
38. 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
39. Can you put your /boot partition on a RAID 5 array?
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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 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.
40. What command can you use to create a password-protected page?
The htpasswd command can be used to password-protect a web page.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The dig - host - and ping commands can be used to test DNS server functionality.
schedule one-time-only jobs
41. How can you display all virtual guests after they're connected to a hypervisor?
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
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Use the route command with the add option to create a static route.
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.
42. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
43. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
Use the ps command to view processes and their CPU usage.
A virtual host is a way of hosting multiple sites using a single IP address.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
44. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
The /var/log/audit/audit.log file contains all policy violations.
Use the resize2fs command to grow a file system.
chkconfig—list
45. Samba servers can...
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
atq
serve both files and printers to users
46. Do you need to write changes to the disk when using the parted command? What about fdisk?
Enforcing during installation
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
browseable option
47. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
Use the resize2fs command to grow a file system.
serve both files and printers to users
service named configtest
48. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
Apache uses port 80 for HTTP and port 443 for HTTPS.
You should never allow remote root access. Should your root account become compromised and you use the same password - someone could gain access to all your systems. You also don't want the most powerful user of your system (with no accountability) l
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
49. What are the side effects of shrinking a volume group or logical volume?
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.
atq
load balancing and redundancy benefits
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
50. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
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.