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 do you use to change the permissions on a file or directory - To change ownership?
The virsh command is used to manage virtual guests.
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 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.
rpcbind service
2. Runlevel 0 ___________. Runlevel 6 reboots the system.
The mount command lists all currently mounted file systems.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
halts the system
via the command line
3. Does a DHCP server allow reserved IP addresses - If so - how?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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 sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
setsebool -P nfs_export_all_rw=1
4. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
5. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
6. What command can you use to check the config file of the DHCP server?
serve both files and printers to users
choose which mode you'd like it to operate in
service dhcpd configtest
The /var/log/audit/audit.log file contains all policy violations.
7. 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
8. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
Apache uses port 80 for HTTP and port 443 for HTTPS.
By default - Squid runs on port 3128.
choose which mode you'd like it to operate in
9. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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 nfsstat command can be used to view NFS statistics.
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.
10. What is the default port that Squid runs on?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
By default - Squid runs on port 3128.
The service command is used to start - stop - and manage system services.
halts the system
11. 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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The rndc utility provides a method for managing the DNS server remotely and securely.
Physical volumes - volume groups - and logical volumes.
12. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. What is a gateway used for on a network?
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The tcpdump command is used to monitor network connections on different interfaces.
The htpasswd command can be used to password-protect a web page.
14. What port does the DHCP server listen on by default?
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.
useradd -c "Jr Admin" George
The DHCP server listens on port 67 by default.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
15. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
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.
lvdisplay
The three utilities are: route - ping - and nslookup.
16. What command and options can you use to update the time?
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.
Sendmail
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
17. A service needs to have _______________ to be able to use it.
The smbpasswd command is used to create Samba users.
The -t nfs option is used with the mount command to mount NFS resources.
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
18. What option is used to allow anonymous uploads to the FTP server?
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
SSH is used for secure remote management of Linux systems.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
19. What is a virtual host?
run on any port you'd like (provided that port is available)
The yum and rpm commands are used for package management.
A virtual host is a way of hosting multiple sites using a single IP address.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
20. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The yum and rpm commands are used for package management.
21. What directory is used to represent the virtual file system created by the kernel?
serve both files and printers to users
kickstart installations to work
The print option is used with both the fdisk and parted commands to display the current partition tables.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
22. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. What is PAM used for?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
atq
service named configtest
24. What is the /etc/vsftpd/user_list file used for?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The user_list file can be used to limit which users have access to the FTP server.
The du and df commands are used to view available space on the system.
25. Most boot issues can be resolved by...
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
getsebool
entering rescue mode and repairing the problem.
26. What command can you use to view NFS statistics?
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 nfsstat command can be used to view NFS statistics.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
27. 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
28. What command is used to create an RPM package?
LUKS encryption
rpmbuild
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The htpasswd command can be used to password-protect a web page.
29. What command can you use to create a file system?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
You can use the authconfig-tui command or the authconfig command.
mkfs.ext4
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.
30. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
halts the system
31. What command can you use to validate the syntax of the Apache config file?
The nfsstat command can be used to view NFS statistics.
The four types of DNS servers are master - slave - caching-only - and forwarding.
service httpd configtest
chkconfig sshd off
32. What command-line program can you use to check your mail?
entering rescue mode and repairing the problem.
choose which mode you'd like it to operate in
Typing the mail or mutt command allows you to read mail from the command line.
cat /proc/mdstat
33. The exportfs command is used to...
semanage boolean -l
You must open TCP ports 20 and 21 for the FTP server to function properly.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
export one or all resources
34. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
schedule one-time-only jobs
Kickstart supports both basic and advanced partitioning (RAID/LVM).
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
35. What is the name of the section used to run scripts after a kickstart installation?
You add your action to the end of the /home/user01/.bashrc file.
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.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
36. What command can you use to test the config files before starting the DNS service?
repquota
service named configtest
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.
generates errors under Red Hat Enterprise Linux 6
37. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
via the command line
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.
The SMTP service runs on TCP port 110.
38. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
chcon
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.
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
39. What command would you use to create a group - to add the user George to the group?
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
40. What are the side effects of shrinking a volume group or logical volume?
The SMTP service runs on TCP port 110.
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.
SSH is used for secure remote management of Linux systems.
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.
41. What is SSH used for?
Typing the mail or mutt command allows you to read mail from the command line.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
SSH is used for secure remote management of Linux systems.
The virsh command is used to manage virtual guests.
42. What happens if you call the command from question 3 with the -c option after it has already been run?
The rpm command can operate in install - query - or verify modes.
cat /proc/mdstat
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
43. Before you work with quotas - what do you need to do to the file system?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Enforcing during installation
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
44. What are the five required directories when building RPMS?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Version 2 is the latest and most secure version of SSH.
chkconfig xinetd --list
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
45. What option would you use to query an installed package using the rpm command?
service named configtest
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 /etc/fstab file.
schedule one-time-only jobs
46. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
SELinux provides enhanced granular security for the Linux operating system.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
service sshd statuts
47. What command can you use to view mounted Samba shares?
This chapter described tdbsm and smbpasswd back-end authentication.
The NFS service uses TCP port 2049 by default.
This command reboots virtual guest Client04.
The smbstatus command shows you currently mounted Samba resources.
48. 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 nfsstat command can be used to view NFS statistics.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Use the route command with the add option to create a static route.
49. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the ps command to view processes and their CPU usage.
The rpm command can operate in install - query - or verify modes.
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.
50. What command can you use to view system processes and their CPU usage?
halts the system
schedule one-time-only jobs
Use the ps command to view processes and their CPU usage.
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.