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-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
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.
Physical volumes - volume groups - and logical volumes.
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.
2. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
ifconfig
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.
useradd -c "Jr Admin" George
3. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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 yum and rpm commands are used for package management.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
4. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
5. What command can you use to view mounted Samba shares?
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 smbstatus command shows you currently mounted Samba resources.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
6. There are four types of DNS servers. Name them.
The smbpasswd command is used to create Samba users.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The four types of DNS servers are master - slave - caching-only - and forwarding.
mkfs.ext4
7. What port must be opened on the firewall for DNS?
DNS uses port 53.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The -t nfs option is used with the mount command to mount NFS resources.
Use the route command with the add option to create a static route.
8. What file is used to maintain custom parameters for the kernel during system boot?
SELinux provides enhanced granular security for the Linux operating system.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
9. What commands can you use to add a client machine to an LDAP server?
SSH is used for secure remote management of Linux systems.
You can use the authconfig-tui command or the authconfig command.
entering rescue mode and repairing the problem.
createrepo
10. What command is used to create an RPM package?
rpmbuild
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
You can use the authconfig-tui command or the authconfig command.
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.
11. What command would you use to create a group - to add the user George to the group?
used for kickstart and/or network installs
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The du and df commands are used to view available space on the system.
load balancing and redundancy benefits
12. Can you put your /boot partition on a RAID 5 array?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
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.
LUKS encryption
13. What port does NFS use by default?
mkfs.ext4
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 /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
14. What port does the DHCP server listen on by default?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The DHCP server listens on port 67 by default.
The lftp command can be used on a client to test FTP server connections.
Enforcing during installation
15. What are the two config files for Postfix called?
The DHCP server listens on port 67 by default.
Sendmail
The two main config files are master.cf and main.cf.
The lftp command can be used on a client to test FTP server connections.
16. What is the default port that Squid runs on?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Physical volumes - volume groups - and logical volumes.
By default - Squid runs on port 3128.
The NFS service uses TCP port 2049 by default.
17. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
ifconfig
18. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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
halts the system
semanage boolean -l
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.
19. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
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.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The du and df commands are used to view available space on the system.
Use the setgid flag to create the appropriate permissions (chmod 2770).
20. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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 rpm command can operate in install - query - or verify modes.
21. What command is used to create a user for Samba?
browseable option
Network installations can be performed using the HTTP - FTP - and NFS protocols.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The smbpasswd command is used to create Samba users.
22. Are additional packages besides httpd required for a secure website - If so - what are they?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
23. What command (and options) can be used to create a user named George with the description "Jr Admin"?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The smbpasswd command is used to create Samba users.
useradd -c "Jr Admin" George
This command reboots virtual guest Client04.
24. A service needs to have _______________ to be able to use 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.
support for TCP Wrappers
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.
LUKS encryption
25. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
kickstart installations to work
serve both files and printers to users
By default - Squid runs on port 3128.
26. What is NAT - How is it used?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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 two main config files are master.cf and main.cf.
27. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
serve both files and printers to users
28. How can you list all services on the system to tell whether they will boot during startup?
You can use the remove or erase options with yum to remove a package.
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.
chkconfig—list
You must open TCP ports 20 and 21 for the FTP server to function properly.
29. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
30. Can you name the two commands that can be used to view the free space on the system?
The htpasswd command can be used to password-protect a web page.
The yum and rpm commands are used for package management.
amount of RAM
The du and df commands are used to view available space on the system.
31. What command can you use to get information about logical volumes?
lvdisplay
service named configtest
Sendmail
This command reboots virtual guest Client04.
32. What three commands can you use to help verify that the DNS server is functioning properly?
The print option is used with both the fdisk and parted commands to display the current partition tables.
getfacl
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The dig - host - and ping commands can be used to test DNS server functionality.
33. What benefit does a web proxy provide to your network?
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
lvdisplay
setsebool -P nfs_export_all_rw=1
34. What is the main config file for the DHCP service?
chkconfig—list
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
halts the system
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
35. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
36. A PXE server eases the automation process but isn't required for...
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.
Use the top command to view CPU and memory usage.
kickstart installations to work
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.
37. 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
38. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
atq
The lftp command can be used on a client to test FTP server connections.
39. What command can you use to monitor and troubleshoot network connections?
By default - the rndc utility listens on port 953.
The tcpdump command is used to monitor network connections on different interfaces.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
VNC is used to control a remote desktop session.
40. What is the name of the package used to install an FTP?
The nfsstat command can be used to view NFS statistics.
The vsftpd package is used to install an FTP server.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
mkfs.ext4
41. What options with the yum command would you use to remove a package?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
You can use the remove or erase options with yum to remove a package.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
42. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
VNC is used to control a remote desktop session.
The SMTP service runs on TCP port 110.
alternatives --config mta
43. Can you name three utilities that can be used for network or DNS client troubleshooting?
defining a %pre section although it is rarely used
The four types of DNS servers are master - slave - caching-only - and forwarding.
The three utilities are: route - ping - and nslookup.
The tcpdump command is used to monitor network connections on different interfaces.
44. How can virtual hosts be used?
kickstart installations to work
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
45. What command can be used to view the queue for at service jobs?
atq
Enforcing during installation
Using the chcon command - you can change the context of a file to work with Apache.
rpcbind service
46. What command displays your current interfaces and IP address?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
lvdisplay
enabled by default
ifconfig
47. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
The ping command can be used to verify connectivity to another host.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You can use the remove or erase options with yum to remove a package.
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.
48. What command can you use to query Boolean values?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
getsebool
Use the yum groupinstall command to install multiple packages in a single group at once.
49. What command and options can you use to update the time?
Public/private key authentication provides an additional layer of security because you need the correct key instead of just knowing someone's password. Passwords combined with public/private keys take the security one additional step.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the top command to view CPU and memory usage.
Enforcing during installation
50. What command can you use to test the config files before starting the DNS service?
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.
You add your action to the end of the /home/user01/.bashrc file.
service named configtest
Sendmail