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 PAM used for?
service named configtest
generates errors under Red Hat Enterprise Linux 6
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.
Enforcing during installation
2. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
chcon
entering rescue mode and repairing the problem.
The /var/lib/nfs/etab file is used to keep track of currently exported 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.
3. What option needs to be used with the mount command to mount an NFS resource?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Enforcing during installation
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.
4. What command and options can you use to update the time?
rpcbind service
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The smbpasswd command is used to create Samba users.
5. What command do you use to report information on quota usage?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
service httpd configtest
Use the resize2fs command to grow a file system.
repquota
6. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The virsh command is used to manage virtual guests.
The rpm command can operate in install - query - or verify modes.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
amount of RAM
7. What command and option can you use to enable a service to start on boot?
amount of RAM
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
A user's home directory is created under the /home directory.
8. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
The dig - host - and ping commands can be used to test DNS server functionality.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
9. To grow a file system
The smbstatus command shows you currently mounted Samba resources.
chkconfig xinetd --list
SSH is used for secure remote management of Linux systems.
Use the resize2fs command to grow a file system.
10. What are the five required directories when building RPMS?
chkconfig—list
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
Physical volumes - volume groups - and logical volumes.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
11. What command is used to create a user for Samba?
The rndc utility provides a method for managing the DNS server remotely and securely.
This chapter described tdbsm and smbpasswd back-end authentication.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The smbpasswd command is used to create Samba users.
12. Before you work with ACLs - what do you need to do to the file system?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The two main config files are master.cf and main.cf.
13. What is a gateway used for on a network?
Using the chcon command - you can change the context of a file to work with Apache.
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.
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 /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
14. What are the two config files for Postfix called?
useradd -c "Jr Admin" George
atq
alternatives --config mta
The two main config files are master.cf and main.cf.
15. What command would you use to create a group - to add the user George to the group?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The smbstatus command shows you currently mounted Samba resources.
Apache uses port 80 for HTTP and port 443 for HTTPS.
A virtual host is a way of hosting multiple sites using a single IP address.
16. What client-side command can you use to test your FTP server connection?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The lftp command can be used on a client to test FTP server connections.
A user's home directory is created under the /home directory.
createrepo
17. What is the top command used for?
Version 2 is the latest and most secure version of SSH.
The two main config files are master.cf and main.cf.
Use the top command to view CPU and memory usage.
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.
18. What file needs to be edited so that the system will mount a file system at boot time?
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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.
19. What command is used to show all services being controlled by the xinetd daemon?
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.
lvdisplay
chkconfig xinetd --list
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
20. What two commands are special for dealing with user login events?
entering rescue mode and repairing the problem.
The lastlog and faillog commands are used to view user login-related events?
You can use the authconfig-tui command or the authconfig command.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
21. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The three utilities are: route - ping - and nslookup.
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.
lvdisplay
The user_list file can be used to limit which users have access to the FTP server.
22. 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.
atq
createrepo
You can use the authconfig-tui command or the authconfig command.
23. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
24. How can you display all virtual guests after they're connected to a hypervisor?
A virtual host is a way of hosting multiple sites using a single IP address.
Use the resize2fs command to grow a file system.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
25. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
alternatives --config mta
you have access to the correct packages or repositories.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
26. Where are Yum repository config files located?
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.
The mount command lists all currently mounted file systems.
service dhcpd configtest
via the command line
27. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
This command reboots virtual guest Client04.
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 default - the rndc utility listens on port 953.
The htpasswd command can be used to password-protect a web page.
28. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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 yum and rpm commands are used for package management.
rpcbind service
29. Can you name three utilities that can be used for network or DNS client troubleshooting?
The /etc/fstab file.
support TCP Wrappers
The three utilities are: route - ping - and nslookup.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
30. How would you go about creating a static route?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
Use the route command with the add option to create a static route.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
31. 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
32. What are the side effects of shrinking a volume group or logical 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.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
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.
33. Before you work with quotas - what do you need to do to the file system?
The print option is used with both the fdisk and parted commands to display the current partition tables.
service httpd configtest
VNC is used to control a remote desktop session.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
34. 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
35. What port does the SMTP service run on?
Typing the mail or mutt command allows you to read mail from the command line.
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 /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
The SMTP service runs on TCP port 110.
36. What command can you use to view mounted Samba shares?
You add your action to the end of the /home/user01/.bashrc file.
The smbstatus command shows you currently mounted Samba resources.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
37. 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.
alternatives --config mta
user's home directory in the /etc/skel directory
choose which mode you'd like it to operate in
38. A slave DNS server provides...
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
mkfs.ext4
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
load balancing and redundancy benefits
39. What is VNC?
VNC is used to control a remote desktop session.
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.
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.
user's home directory in the /etc/skel directory
40. Can you name the two commands that can be used to view the free space on the system?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The du and df commands are used to view available space on the system.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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.
41. 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.
The virsh command is used to manage 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.
The four types of DNS servers are master - slave - caching-only - and forwarding.
42. It is possible to run scripts before a kickstart installation. This is done by...
The rpm command can operate in install - query - or verify modes.
defining a %pre section although it is rarely used
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Using the chcon command - you can change the context of a file to work with Apache.
43. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
useradd -c "Jr Admin" George
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Typing the mail or mutt command allows you to read mail from the command line.
44. The firewall service is...
enabled by default
The ping command can be used to verify connectivity to another host.
service named configtest
The mount command lists all currently mounted file systems.
45. What critical step must you take after updating the kernel to a newer version?
Use the yum groupinstall command to install multiple packages in a single group at once.
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
46. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
service named configtest
The -t nfs option is used with the mount command to mount NFS resources.
Physical volumes - volume groups - and logical volumes.
47. 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.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
By defining a %post section - you can run scripts after a kickstart installation is complete.
48. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
Sendmail
49. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
50. How can virtual hosts be used?
The virsh command is used to manage virtual guests.
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 tcpdump command is used to monitor network connections on different interfaces.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests