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. How would you install a group of packages all at a single time?
service sshd statuts
user's home directory in the /etc/skel directory
Use the yum groupinstall command to install multiple packages in a single group at once.
SELinux Booleans provide restrictions to different aspects of a service.
2. What command disables the SSH service from running when the system boots?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
chkconfig sshd off
DNS uses port 53.
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
3. What are the two config files for Postfix called?
chkconfig sshd off
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The two main config files are master.cf and main.cf.
4. What two commands are used for package management?
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.
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
getfacl
The yum and rpm commands are used for package management.
5. What command can you use to create a password-protected page?
Enforcing during installation
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.
The htpasswd command can be used to password-protect a web page.
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.
6. What does the partprobe command do?
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.
The mount command lists all currently mounted file systems.
Use the resize2fs command to grow a file system.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
7. 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
8. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
Enforcing during installation
serve both files and printers to users
alternatives --config mta
rpcbind service
9. What is the biggest benefit to using LVM over basic partitions?
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
10. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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
Physical volumes - volume groups - and logical volumes.
service sshd statuts
alternatives --config mta
11. A PXE server eases the automation process but isn't required for...
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The four types of DNS servers are master - slave - caching-only - and forwarding.
kickstart installations to work
A virtual host is a way of hosting multiple sites using a single IP address.
12. What command can be used to view the queue for at service jobs?
getfacl
atq
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The TFTP server uses UDP port 69.
13. What port does the Apache web server run on - What about HTTPS?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
serve both files and printers to users
browseable option
Apache uses port 80 for HTTP and port 443 for HTTPS.
14. What is the difference between an A record and a PTR record?
schedule one-time-only jobs
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
getfacl
15. There are four types of DNS servers. Name them.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
chcon
The four types of DNS servers are master - slave - caching-only - and forwarding.
16. What is the top command used for?
halts the system
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the top command to view CPU and memory usage.
17. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
export one or all 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.
Sendmail
18. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
SELinux provides enhanced granular security for the Linux operating system.
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 tcpdump command is used to monitor network connections on different interfaces.
19. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
repquota
20. What command can you use to change the context of files?
This command reboots virtual guest Client04.
chcon
Apache uses port 80 for HTTP and port 443 for HTTPS.
alternatives --config mta
21. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
kickstart installations to work
halts the system
generates errors under Red Hat Enterprise Linux 6
22. Runlevel 0 ___________. Runlevel 6 reboots the system.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
halts the system
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 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.
23. What is the /etc/vsftpd/user_list file used for?
The ping command can be used to verify connectivity to another host.
The user_list file can be used to limit which users have access to the FTP server.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
24. What is the main config file for the DHCP service?
export one or all resources
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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.
Enforcing during installation
25. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
used for kickstart and/or network installs
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Enforcing during installation
26. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
ifconfig
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.
kickstart installations to work
The vsftpd package is used to install an FTP server.
27. 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
28. What command do you use to report information on quota usage?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The NFS service uses TCP port 2049 by default.
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.
repquota
29. Before you work with ACLs - what do you need to do to the file system?
The DHCP server listens on port 67 by default.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
30. 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).
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The dig - host - and ping commands can be used to test DNS server functionality.
The vsftpd package is used to install an FTP server.
31. The firewall service is...
enabled by default
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. GRUB has three stages. Can you name them?
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
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
useradd -c "Jr Admin" George
user's home directory in the /etc/skel directory
33. What is the superblock used for?
chkconfig xinetd --list
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.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
34. What benefit does a web proxy provide to your network?
kickstart installations to work
The nfsstat command can be used to view NFS statistics.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
35. What critical step must you take after updating the kernel to a newer version?
By default - the rndc utility listens on port 953.
Using the chcon command - you can change the context of a file to work with Apache.
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.
36. How do you run a command with elevated privileges?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
The smbstatus command shows you currently mounted Samba resources.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
37. How would you view all Boolean options for the HTTP service?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
getsebool -a | grep http
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
38. Which version of SSH should you use?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Version 2 is the latest and most secure version of SSH.
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
39. A slave DNS server provides...
load balancing and redundancy benefits
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
user's home directory in the /etc/skel directory
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
40. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
41. What port must be opened on the firewall for DNS?
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.
enabled by default
Enforcing during installation
DNS uses port 53.
42. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
service sshd statuts
Version 2 is the latest and most secure version of SSH.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
43. 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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The dig - host - and ping commands can be used to test DNS server functionality.
The smbpasswd command is used to create Samba users.
44. Are additional packages besides httpd required for a secure website - If so - what are they?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
For Apache to run a secure site - the mod_ssl package is required to be installed.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
You can use the remove or erase options with yum to remove a package.
45. It is possible to run scripts before a kickstart installation. This is done by...
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
rpmbuild
defining a %pre section although it is rarely used
createrepo
46. Where are Yum repository config files located?
A virtual host is a way of hosting multiple sites using a single IP address.
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
By default - Squid runs on port 3128.
47. What are the three modes in which the rpm command can operate?
This command reboots virtual guest Client04.
The rpm command can operate in install - query - or verify modes.
The tcpdump command is used to monitor network connections on different interfaces.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
48. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
getsebool -a | grep http
The lastlog and faillog commands are used to view user login-related events?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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.
49. 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.
browseable option
A user's home directory is created under the /home directory.
Use the route command with the add option to create a static route.
50. What two ports should be opened on the firewall for the FTP server to function properly?
The NFS service uses TCP port 2049 by default.
load balancing and redundancy benefits
You must open TCP ports 20 and 21 for the FTP server to function properly.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.