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. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
You can use the remove or erase options with yum to remove a package.
generates errors under Red Hat Enterprise Linux 6
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.
run on any port you'd like (provided that port is available)
2. What command disables the SSH service from running when the system boots?
chkconfig sshd off
Use the top command to view CPU and memory usage.
A virtual host is a way of hosting multiple sites using a single IP address.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
3. 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
4. What command can you use to test connectivity to another host?
The /etc/fstab file.
The ping command can be used to verify connectivity to another host.
alternatives --config mta
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
5. 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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The NFS service uses TCP port 2049 by default.
ifconfig
6. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
via the command line
By default - Squid runs on port 3128.
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.
Physical volumes - volume groups - and logical volumes.
7. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
halts the system
SELinux Booleans provide restrictions to different aspects of a service.
The mount command lists all currently mounted file systems.
8. How can you verify the status of the SSH service after the system has booted?
The rndc utility provides a method for managing the DNS server remotely and securely.
service sshd statuts
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
useradd -c "Jr Admin" George
9. Do you need to write changes to the disk when using the parted command? What about fdisk?
getfacl
The three utilities are: route - ping - and nslookup.
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.
VNC is used to control a remote desktop session.
10. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
useradd -c "Jr Admin" George
The smbstatus command shows you currently mounted Samba resources.
The rpm command can operate in install - query - or verify modes.
11. What command can you use to change the context of files?
chcon
The DHCP server listens on port 67 by default.
The /etc/fstab file.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
12. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Enforcing during installation
rpcbind service
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
13. Samba servers can...
The two main config files are master.cf and main.cf.
via the command line
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
serve both files and printers to users
14. What is a swap? Is it created as a partition or device file?
SELinux provides enhanced granular security for the Linux operating system.
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.
service httpd configtest
The nfsstat command can be used to view NFS statistics.
15. What is VNC?
VNC is used to control a remote desktop session.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
load balancing and redundancy benefits
16. What port does the DHCP server listen on by default?
chkconfig sshd off
The DHCP server listens on port 67 by default.
mkfs.ext4
The smbpasswd command is used to create Samba users.
17. What command is used to create a user for Samba?
createrepo
getfacl
The smbpasswd command is used to create Samba users.
This chapter described tdbsm and smbpasswd back-end authentication.
18. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
Version 2 is the latest and most secure version of SSH.
19. A slave DNS server provides...
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
load balancing and redundancy benefits
The vsftpd package is used to install an FTP server.
serve both files and printers to users
20. What file is used to maintain custom parameters for the kernel during system boot?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
service named configtest
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
21. How can you check the currently mounted file systems?
ifconfig
The rndc utility provides a method for managing the DNS server remotely and securely.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The mount command lists all currently mounted file systems.
22. What does the partprobe command do?
rpmbuild
used for kickstart and/or network installs
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
23. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
Enforcing during installation
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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 four types of DNS servers are master - slave - caching-only - and forwarding.
24. A PXE server eases the automation process but isn't required for...
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.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
run on any port you'd like (provided that port is available)
kickstart installations to work
25. What command-line program can you use to check your mail?
Enforcing during installation
The yum and rpm commands are used for package management.
Typing the mail or mutt command allows you to read mail from the command line.
The htpasswd command can be used to password-protect a web page.
26. 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
27. What command can you use to monitor and troubleshoot network connections?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The tcpdump command is used to monitor network connections on different interfaces.
SELinux provides enhanced granular security for the Linux operating system.
Apache uses port 80 for HTTP and port 443 for HTTPS.
28. It is possible to run scripts before a kickstart installation. This is done by...
Using the chcon command - you can change the context of a file to work with Apache.
defining a %pre section although it is rarely used
atq
chcon
29. 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...
have the same effect
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
30. Does a DHCP server allow reserved IP addresses - If so - how?
The print option is used with both the fdisk and parted commands to display the current partition tables.
rpcbind service
The -t nfs option is used with the mount command to mount NFS resources.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
31. 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.
Use the ps command to view processes and their CPU usage.
Enforcing during installation
getsebool -a | grep http
Use the route command with the add option to create a static route.
32. GRUB has three stages. Can you name them?
enabled by default
The rpm command can operate in install - query - or verify modes.
LUKS encryption
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
33. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
have the same effect
Physical volumes - volume groups - and logical volumes.
service dhcpd configtest
alternatives --config mta
34. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
service sshd statuts
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
35. What are SELinux Booleans?
generates errors under Red Hat Enterprise Linux 6
entering rescue mode and repairing the problem.
SELinux Booleans provide restrictions to different aspects of a service.
The htpasswd command can be used to password-protect a web page.
36. What command can you use to get information about logical volumes?
A user's home directory is created under the /home directory.
lvdisplay
Using the chcon command - you can change the context of a file to work with Apache.
The user_list file can be used to limit which users have access to the FTP server.
37. What is a virtual host?
By default - the rndc utility listens on port 953.
serve both files and printers to users
By defining a %post section - you can run scripts after a kickstart installation is complete.
A virtual host is a way of hosting multiple sites using a single IP address.
38. What command can be used to view the queue for at service jobs?
atq
The print option is used with both the fdisk and parted commands to display the current partition tables.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
39. 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
40. What are the five required directories when building RPMS?
run on any port you'd like (provided that port is available)
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
41. How can you list all services on the system to tell whether they will boot during startup?
You must open TCP ports 20 and 21 for the FTP server to function properly.
chkconfig—list
chcon
Use the top command to view CPU and memory usage.
42. How can virtual hosts be used?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
atq
This command reboots virtual guest Client04.
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.
43. What command can you use to test the config files before starting the DNS service?
SELinux Booleans provide restrictions to different aspects of a service.
The four types of DNS servers are master - slave - caching-only - and forwarding.
service named configtest
For Apache to run a secure site - the mod_ssl package is required to be installed.
44. To grow a file system
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Use the resize2fs command to grow a file system.
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
45. How do you run a command with elevated privileges?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The NFS service uses TCP port 2049 by default.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
halts the system
46. What command (and options) can be used to create a user named George with the description "Jr Admin"?
You add your action to the end of the /home/user01/.bashrc file.
The ping command can be used to verify connectivity to another host.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
useradd -c "Jr Admin" George
47. What three protocols can you use to perform network installations?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
48. What port does the Apache web server run on - What about HTTPS?
chcon
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Apache uses port 80 for HTTP and port 443 for 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.
49. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
The virsh command is used to manage virtual guests.
The rndc utility provides a method for managing the DNS server remotely and securely.
DNS uses port 53.
50. 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