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 file needs to be edited so that the system will mount a file system at boot time?
You can use the remove or erase options with yum to remove a package.
Use the resize2fs command to grow a file system.
The /etc/fstab file.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
2. What is VNC?
VNC is used to control a remote desktop session.
serve both files and printers to users
chkconfig xinetd --list
export one or all resources
3. 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
4. What client-side command can you use to test your FTP server connection?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The lftp command can be used on a client to test FTP server connections.
lvdisplay
5. How can you list all services on the system to tell whether they will boot during startup?
chkconfig—list
alternatives --config mta
amount of RAM
The /var/log/audit/audit.log file contains all policy violations.
6. What does the rdnc-confgen command do?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The virsh command is used to manage virtual guests.
7. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
SELinux Booleans provide restrictions to different aspects of a service.
used for kickstart and/or network installs
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
8. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
export one or all resources
alternatives --config mta
Use the setgid flag to create the appropriate permissions (chmod 2770).
You must open TCP ports 20 and 21 for the FTP server to function properly.
9. How do you run a command with elevated privileges?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
browseable option
amount of RAM
10. What is the superblock used for?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
export one or all resources
The vsftpd package is used to install an FTP server.
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.
11. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Enforcing during installation
The nfsstat command can be used to view NFS statistics.
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
12. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
setsebool -P nfs_export_all_rw=1
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
You add your action to the end of the /home/user01/.bashrc file.
A virtual host is a way of hosting multiple sites using a single IP address.
13. Does a DHCP server allow reserved IP addresses - If so - how?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
14. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
Using the chcon command - you can change the context of a file to work with Apache.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
support TCP Wrappers
15. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
have the same effect
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
serve both files and printers to users
16. How would you view all Boolean options for the HTTP service?
Physical volumes - volume groups - and logical volumes.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
getsebool -a | grep http
This command reboots virtual guest Client04.
17. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
support for TCP Wrappers
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.
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
18. What option is used with both the fdisk and parted commands to display the current partition tables?
The four types of DNS servers are master - slave - caching-only - and forwarding.
The print option is used with both the fdisk and parted commands to display the current partition tables.
export one or all resources
The TFTP server uses UDP port 69.
19. Red Hat Enterprise Linux 6 is the only version that officially supports _______
LUKS encryption
SSH is used for secure remote management of Linux systems.
Use the route command with the add option to create a static route.
The mount command lists all currently mounted file systems.
20. What protocols are used with Dovecot?
The TFTP server uses UDP port 69.
service dhcpd configtest
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
21. What command can you use to get information about logical volumes?
A user's home directory is created under the /home directory.
defining a %pre section although it is rarely used
VNC is used to control a remote desktop session.
lvdisplay
22. What two ports should be opened on the firewall for the FTP server to function properly?
SELinux Booleans provide restrictions to different aspects of a service.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
entering rescue mode and repairing the problem.
23. What is the top command used for?
Use the top command to view CPU and memory usage.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
service sshd statuts
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
24. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
browseable option
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.
Enforcing during installation
The /etc/fstab file.
25. The ____________ is available for each share.
browseable option
This command reboots virtual guest Client04.
The htpasswd command can be used to password-protect a web page.
service dhcpd configtest
26. What is NAT - How is it used?
rpmbuild
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
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.
27. What is the rndc utility used for?
This command reboots virtual guest Client04.
The tcpdump command is used to monitor network connections on different interfaces.
The rndc utility provides a method for managing the DNS server remotely and securely.
By default - the rndc utility listens on port 953.
28. What happens to jobs that are scheduled to run while the system is off?
The lftp command can be used on a client to test FTP server connections.
When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
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.
entering rescue mode and repairing the problem.
29. What does the partprobe command do?
The -t nfs option is used with the mount command to mount NFS resources.
You must open TCP ports 20 and 21 for the FTP server to function properly.
By default - Squid runs on port 3128.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
30. What two commands are special for dealing with user login events?
user's home directory in the /etc/skel directory
The lastlog and faillog commands are used to view user login-related events?
entering rescue mode and repairing the problem.
createrepo
31. What is the xinetd service used for?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
This command reboots virtual guest Client04.
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.
32. What happens if you call the command from question 3 with the -c option after it has already been run?
The SMTP service runs on TCP port 110.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
33. What is the name of the package used to install an FTP?
via the command line
Kickstart supports both basic and advanced partitioning (RAID/LVM).
alternatives --config mta
The vsftpd package is used to install an FTP server.
34. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
35. How can you check the currently mounted file systems?
browseable option
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 mount command lists all currently mounted file systems.
Use the route command with the add option to create a static route.
36. Which log file is used to keep track of policy violations?
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
The /var/log/audit/audit.log file contains all policy violations.
The htpasswd command can be used to password-protect a web page.
37. Runlevel 0 ___________. Runlevel 6 reboots the system.
SELinux provides enhanced granular security for the Linux operating system.
chcon
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.
halts the system
38. What command can you use to test connectivity to another host?
Using the chcon command - you can change the context of a file to work with Apache.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The ping command can be used to verify connectivity to another host.
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.
39. Samba servers can...
schedule one-time-only jobs
serve both files and printers to users
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
40. What command can you use to view system processes and their CPU usage?
support TCP Wrappers
useradd -c "Jr Admin" George
browseable option
Use the ps command to view processes and their CPU usage.
41. What critical step must you take after updating the kernel to a newer version?
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.
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 /var/log/audit/audit.log file contains all policy violations.
42. What command can you use to validate the syntax of the Apache config file?
The user_list file can be used to limit which users have access to the FTP server.
The rndc utility provides a method for managing the DNS server remotely and securely.
service httpd configtest
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
43. What option at the GRUB boot menu can you use to append something to a kernel?
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.
DNS uses port 53.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
44. What three components are needed to fully automate a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The /var/log/audit/audit.log file contains all policy violations.
45. 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
46. What two commands are used for package management?
service named configtest
The yum and rpm commands are used for package management.
Use the route command with the add option to create a static route.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
47. What is the name of the section used to run scripts after a kickstart installation?
chkconfig—list
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The four types of DNS servers are master - slave - caching-only - and forwarding.
By defining a %post section - you can run scripts after a kickstart installation is complete.
48. What commands can you use to add a client machine to an LDAP server?
The vsftpd package is used to install an FTP server.
support for TCP Wrappers
You can use the authconfig-tui command or the authconfig command.
chkconfig sshd off
49. What command do you use to report information on quota usage?
By default - the rndc utility listens on port 953.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
rpcbind service
repquota
50. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
useradd -c "Jr Admin" George
repquota
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