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 does it mean if you ping a host and you receive the response Destination Unreachable?
LUKS encryption
The dig - host - and ping commands can be used to test DNS server functionality.
The /var/log/audit/audit.log file contains all policy violations.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
2. 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
3. Before you work with quotas - what do you need to do to the file system?
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 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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
4. What port does the rndc utility listen on by default?
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 - the rndc utility listens on port 953.
You add your action to the end of the /home/user01/.bashrc file.
By default - Squid runs on port 3128.
5. How would you install a group of packages all at a single time?
used for kickstart and/or network installs
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.
serve both files and printers to users
Use the yum groupinstall command to install multiple packages in a single group at once.
6. What is the main config file for the DHCP service?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
used for kickstart and/or network installs
7. What is a virtual host?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
A virtual host is a way of hosting multiple sites using a single IP address.
The two main config files are master.cf and main.cf.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
8. What command can you use to create a password-protected page?
getfacl
The four types of DNS servers are master - slave - caching-only - and forwarding.
SSH is used for secure remote management of Linux systems.
The htpasswd command can be used to password-protect a web page.
9. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
The rndc utility provides a method for managing the DNS server remotely and securely.
The -t nfs option is used with the mount command to mount NFS resources.
Use the ps command to view processes and their CPU usage.
10. What command and option can you use to enable a service to start on boot?
The rndc utility provides a method for managing the DNS server remotely and securely.
Enforcing during installation
The three utilities are: route - ping - and nslookup.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
11. What are SELinux Booleans?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The SMTP service runs on TCP port 110.
SELinux Booleans provide restrictions to different aspects of a service.
Enforcing during installation
12. What file needs to be edited so that the system will mount a file system at boot time?
The ping command can be used to verify connectivity to another host.
The /etc/fstab file.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
Use the route command with the add option to create a static route.
13. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
have the same effect
SELinux provides enhanced granular security for the Linux operating system.
This command reboots virtual guest Client04.
14. What are the three different types of RAID described in this chapter?
The three utilities are: route - ping - and nslookup.
The four types of DNS servers are master - slave - caching-only - and forwarding.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
amount of RAM
15. 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
16. What happens if you call the command from question 3 with the -c option after it has already been run?
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
17. Which remote management service is installed by default?Can you name the port that it uses?
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 /var/log/audit/audit.log file contains all policy violations.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
18. 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
19. What command can you use to get information about logical volumes?
Use the top command to view CPU and memory usage.
lvdisplay
The user_list file can be used to limit which users have access to the FTP server.
A user's home directory is created under the /home directory.
20. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
chcon
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The /var/log/audit/audit.log file contains all policy violations.
21. How can you check the currently mounted file systems?
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 two main config files are master.cf and main.cf.
choose which mode you'd like it to operate in
The mount command lists all currently mounted file systems.
22. What port does the SMTP service run on?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
getsebool
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The SMTP service runs on TCP port 110.
23. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
LUKS encryption
have the same effect
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.
24. What option at the GRUB boot menu can you use to append something to a kernel?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The ping command can be used to verify connectivity to another host.
service named configtest
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
25. What command and options can you use to update the time?
The ping command can be used to verify connectivity to another host.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The /var/log/audit/audit.log file contains all policy violations.
26. What port must be opened on the firewall for DNS?
DNS uses port 53.
Sendmail
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the top command to view CPU and memory usage.
27. 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
28. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
The yum and rpm commands are used for package management.
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.
The rpm command can operate in install - query - or verify modes.
29. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Typing the mail or mutt command allows you to read mail from the command line.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
30. How would you disable SELinux protection for NFS - allowing shares to be read/write?
setsebool -P nfs_export_all_rw=1
The yum and rpm commands are used for package management.
lvdisplay
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
31. What is the virsh command used for?
useradd -c "Jr Admin" George
The virsh command is used to manage virtual guests.
Enforcing during installation
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
32. The firewall service is...
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
enabled by default
choose which mode you'd like it to operate in
33. 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 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 dig - host - and ping commands can be used to test DNS server functionality.
DNS uses port 53.
34. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
You must open TCP ports 20 and 21 for the FTP server to function properly.
alternatives --config mta
getsebool -a | grep http
halts the system
35. What command is used to create a user for Samba?
enabled by default
chkconfig xinetd --list
chcon
The smbpasswd command is used to create Samba users.
36. What port does the Apache web server run on - What about HTTPS?
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The du and df commands are used to view available space on the system.
load balancing and redundancy benefits
37. What is the point of using SELinux?
Use the yum groupinstall command to install multiple packages in a single group at once.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
chkconfig sshd off
SELinux provides enhanced granular security for the Linux operating system.
38. What command can you use to view the current ACL on a file?
The four types of DNS servers are master - slave - caching-only - and forwarding.
mkfs.ext4
The three utilities are: route - ping - and nslookup.
getfacl
39. What does the partprobe command do?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
export one or all resources
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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
40. What command can you use to create a new SSL certificate?
Version 2 is the latest and most secure version of SSH.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The smbstatus command shows you currently mounted Samba resources.
41. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
Use the top command to view CPU and memory usage.
You add your action to the end of the /home/user01/.bashrc file.
repquota
42. What command is used to show all services being controlled by the xinetd daemon?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
chkconfig xinetd --list
service sshd statuts
useradd -c "Jr Admin" George
43. Which version of SSH should you use?
entering rescue mode and repairing the problem.
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.
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.
Version 2 is the latest and most secure version of SSH.
44. How would you go about creating a static route?
Use the route command with the add option to create a static route.
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 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.
user's home directory in the /etc/skel directory
45. What benefit does a web proxy provide to your network?
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 SMTP service runs on TCP port 110.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
46. What two commands are special for dealing with user login events?
The /var/log/audit/audit.log file contains all policy violations.
The tcpdump command is used to monitor network connections on different interfaces.
The lastlog and faillog commands are used to view user login-related events?
Use the top command to view CPU and memory usage.
47. What option would you use to query an installed package using the rpm command?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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 four types of DNS servers are master - slave - caching-only - and forwarding.
support for TCP Wrappers
48. What command can you use to validate the syntax of the Apache config file?
You can use the remove or erase options with yum to remove a package.
service httpd configtest
The vsftpd package is used to install an FTP server.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
49. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
The ping command can be used to verify connectivity to another host.
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
50. What option needs to be used with the mount command to mount an NFS resource?
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 -t nfs option is used with the mount command to mount NFS resources.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
entering rescue mode and repairing the problem.