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 commands can you use to add a client machine to an LDAP server?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
repquota
You can use the authconfig-tui command or the authconfig command.
chcon
2. What command can you use to view system processes and their CPU usage?
Use the ps command to view processes and their CPU usage.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The two main config files are master.cf and main.cf.
3. Which log file is used to keep track of policy violations?
The /etc/fstab file.
The lastlog and faillog commands are used to view user login-related events?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /var/log/audit/audit.log file contains all policy violations.
4. What command can you use to test connectivity to another host?
mkfs.ext4
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The ping command can be used to verify connectivity to another host.
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
5. What command can you use to check the config file of the DHCP server?
service dhcpd configtest
The print option is used with both the fdisk and parted commands to display the current partition tables.
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 remove or erase options with yum to remove a package.
6. What two commands are used for package management?
The yum and rpm commands are used for package management.
amount of RAM
The DHCP server listens on port 67 by default.
user's home directory in the /etc/skel directory
7. What file is used to maintain custom parameters for the kernel during system boot?
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
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.
8. 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
9. What command can you use to create a file system?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the route command with the add option to create a static route.
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.
mkfs.ext4
10. 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.
getfacl
repquota
Sendmail
11. What port must be opened on the firewall for DNS?
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.
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.
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.
12. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
13. What port does the Apache web server run on - What about HTTPS?
chkconfig—list
Apache uses port 80 for HTTP and port 443 for HTTPS.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The lastlog and faillog commands are used to view user login-related events?
14. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
support TCP Wrappers
15. What is a virtual host?
mkfs.ext4
A virtual host is a way of hosting multiple sites using a single IP address.
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 three utilities are: route - ping - and nslookup.
16. What are the three items that make up LVM?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Physical volumes - volume groups - and logical volumes.
The NFS service uses TCP port 2049 by default.
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.
17. 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
18. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
halts the system
export one or all resources
19. 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.
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 user_list file can be used to limit which users have access to the FTP server.
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.
20. What command can you use to manage system services?
have the same effect
The service command is used to start - stop - and manage system services.
choose which mode you'd like it to operate in
SELinux Booleans provide restrictions to different aspects of a service.
21. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
A user's home directory is created under the /home directory.
kickstart installations to work
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Use the setgid flag to create the appropriate permissions (chmod 2770).
22. GRUB has three stages. Can you name them?
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 NFS service uses TCP port 2049 by default.
service sshd statuts
run on any port you'd like (provided that port is available)
23. How would you install a group of packages all at a single time?
generates errors under Red Hat Enterprise Linux 6
Enforcing during installation
Use the yum groupinstall command to install multiple packages in a single group at once.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
24. How can you verify the status of the SSH service after the system has booted?
The service command is used to start - stop - and manage system services.
service sshd statuts
Physical volumes - volume groups - and logical volumes.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
25. What command-line program can you use to check your mail?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Typing the mail or mutt command allows you to read mail from the command line.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
26. What is the xinetd service used for?
DNS uses port 53.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
chkconfig sshd off
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
27. Which remote management service is installed by default?Can you name the port that it uses?
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.
A virtual host is a way of hosting multiple sites using a single IP address.
This chapter described tdbsm and smbpasswd back-end authentication.
28. 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.
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.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
29. Does a DHCP server allow reserved IP addresses - If so - how?
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.
via the command line
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
mkfs.ext4
30. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
A user's home directory is created under the /home directory.
halts the system
support TCP Wrappers
31. What command is used to create an RPM package?
you have access to the correct packages or repositories.
rpmbuild
By default - the rndc utility listens on port 953.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
32. What does the partprobe command do?
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 smbpasswd command is used to create Samba users.
The mount command lists all currently mounted file systems.
you have access to the correct packages or repositories.
33. 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...
The DHCP server listens on port 67 by default.
have the same effect
getsebool -a | grep http
The SMTP service runs on TCP port 110.
34. What port does the rndc utility listen on by default?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
By default - the rndc utility listens on port 953.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
amount of RAM
35. What is VNC?
You add your action to the end of the /home/user01/.bashrc file.
VNC is used to control a remote desktop session.
The NFS service uses TCP port 2049 by default.
have the same effect
36. Do you need to write changes to the disk when using the parted command? What about fdisk?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
Physical volumes - volume groups - and logical volumes.
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
37. What is NAT - How is it used?
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 last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
38. What command would you use to create a group - to add the user George to the group?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
service named configtest
The TFTP server uses UDP port 69.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
39. What command disables the SSH service from running when the system boots?
VNC is used to control a remote desktop session.
chkconfig sshd off
SELinux Booleans provide restrictions to different aspects of a service.
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.
40. 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
41. What are the two config files for Postfix called?
The htpasswd command can be used to password-protect a web page.
Use the top command to view CPU and memory usage.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The two main config files are master.cf and main.cf.
42. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
Use the top command to view CPU and memory usage.
defining a %pre section although it is rarely used
The smbpasswd command is used to create Samba users.
43. Can you put your /boot partition on a RAID 5 array?
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.
via the command line
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
44. 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
45. What command can you use to query Boolean values?
chkconfig—list
getsebool
SELinux provides enhanced granular security for the Linux operating system.
used for kickstart and/or network installs
46. What command do you use to report information on quota usage?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
repquota
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.
47. What does the rdnc-confgen command do?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the yum groupinstall command to install multiple packages in a single group at once.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
48. What command is used to create a user for Samba?
The rpm command can operate in install - query - or verify modes.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The lastlog and faillog commands are used to view user login-related events?
The smbpasswd command is used to create Samba users.
49. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
The DHCP server listens on port 67 by default.
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.
support for TCP Wrappers
50. How can you change the security context of a directory to work with Apache?
Enforcing during installation
The four types of DNS servers are master - slave - caching-only - and forwarding.
The NFS service uses TCP port 2049 by default.
Using the chcon command - you can change the context of a file to work with Apache.