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 the virsh command used for?
useradd -c "Jr Admin" George
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
The virsh command is used to manage virtual guests.
2. What does the testparm command do?
choose which mode you'd like it to operate in
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The ping command can be used to verify connectivity to another host.
3. What is a gateway used for on a network?
The rpm command can operate in install - query - or verify modes.
browseable option
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.
4. What critical step must you take after updating the kernel to a newer version?
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 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 smbstatus command shows you currently mounted Samba resources.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
5. What happens if you call the command from question 3 with the -c option after it has already been run?
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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
service dhcpd configtest
6. What is the name of the package used to install an FTP?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The vsftpd package is used to install an FTP server.
You can use the authconfig-tui command or the authconfig command.
By default - the rndc utility listens on port 953.
7. How can you change the security context of a directory to work with Apache?
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
load balancing and redundancy benefits
Using the chcon command - you can change the context of a file to work with Apache.
The dig - host - and ping commands can be used to test DNS server functionality.
8. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
chkconfig xinetd --list
Use the yum groupinstall command to install multiple packages in a single group at once.
The ping command can be used to verify connectivity to another host.
9. What command can you use to view mounted Samba shares?
The smbstatus command shows you currently mounted Samba resources.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
You can use the remove or erase options with yum to remove a package.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
10. What command can you use to get information about logical volumes?
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.
By default - the rndc utility listens on port 953.
lvdisplay
export one or all resources
11. What three commands can you use to help verify that the DNS server is functioning properly?
VNC is used to control a remote desktop session.
The dig - host - and ping commands can be used to test DNS server functionality.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
12. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
entering rescue mode and repairing the problem.
The vsftpd package is used to install an FTP server.
13. What port on the firewall needs to be open for the TFTP server to work?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The TFTP server uses UDP port 69.
You add your action to the end of the /home/user01/.bashrc file.
The htpasswd command can be used to password-protect a web page.
14. What command can you use to change the context of files?
VNC is used to control a remote desktop session.
Use the ps command to view processes and their CPU usage.
chcon
The mount command lists all currently mounted file systems.
15. What command can you use to view NFS statistics?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The nfsstat command can be used to view NFS statistics.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
have the same effect
16. The exportfs command is used to...
you have access to the correct packages or repositories.
The /etc/fstab file.
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.
export one or all resources
17. What are the side effects of shrinking a volume group or logical volume?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
createrepo
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.
18. Runlevel 0 ___________. Runlevel 6 reboots the system.
halts the system
serve both files and printers to users
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 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.
19. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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 can use the remove or erase options with yum to remove a package.
This command reboots virtual guest Client04.
alternatives --config mta
20. What benefit does a web proxy provide to your network?
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.
The -t nfs option is used with the mount command to mount NFS resources.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Enforcing during installation
21. What command disables the SSH service from running when the system boots?
chkconfig sshd off
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.
browseable option
Use the top command to view CPU and memory usage.
22. The at command is used to ____________. The cron service handles reoccurring system jobs.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
schedule one-time-only jobs
mkfs.ext4
Enforcing during installation
23. Before you work with ACLs - what do you need to do to the file system?
Typing the mail or mutt command allows you to read mail from the command line.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
You must open TCP ports 20 and 21 for the FTP server to function properly.
24. What command would you use to create a group - to add the user George to the group?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
cat /proc/mdstat
entering rescue mode and repairing the problem.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
25. What is the last rule in the iptables file?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
26. 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.
Use the route command with the add option to create a static route.
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.
user's home directory in the /etc/skel directory
27. What does the partprobe command do?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
LUKS encryption
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
28. What command can you use to create a password-protected page?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The htpasswd command can be used to password-protect a web page.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
29. What option would you use to query an installed package using the rpm command?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
Typing the mail or mutt command allows you to read mail from the command line.
30. To grow a file system
Use the resize2fs command to grow a file system.
This chapter described tdbsm and smbpasswd back-end authentication.
defining a %pre section although it is rarely used
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
31. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The rndc utility provides a method for managing the DNS server remotely and securely.
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 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.
32. What command displays your current interfaces and IP address?
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.
VNC is used to control a remote desktop session.
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.
ifconfig
33. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
The rpm command can operate in install - query - or verify modes.
repquota
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.
34. What option is used to allow anonymous uploads to the FTP server?
The NFS service uses TCP port 2049 by default.
Use the ps command to view processes and their CPU usage.
The tcpdump command is used to monitor network connections on different interfaces.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
35. What command can you use to create a file system?
By default - the rndc utility listens on port 953.
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
enabled by default
mkfs.ext4
36. What two ports should be opened on the firewall for the FTP server to function properly?
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
getfacl
rpcbind service
37. 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 smbstatus command shows you currently mounted Samba resources.
This command reboots virtual guest Client04.
The tcpdump command is used to monitor network connections on different interfaces.
38. What command can you use to create your own repositories?
getsebool -a | grep http
createrepo
Kickstart supports both basic and advanced partitioning (RAID/LVM).
LUKS encryption
39. What command is used to create a user for Samba?
The NFS service uses TCP port 2049 by default.
The smbpasswd command is used to create Samba users.
Use the yum groupinstall command to install multiple packages in a single group at once.
The ping command can be used to verify connectivity to another host.
40. A PXE server eases the automation process but isn't required for...
you have access to the correct packages or repositories.
kickstart installations to work
entering rescue mode and repairing the problem.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
41. What two commands are special for dealing with user login events?
kickstart installations to work
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 lastlog and faillog commands are used to view user login-related events?
setsebool -P nfs_export_all_rw=1
42. Which version of SSH should you use?
used for kickstart and/or network installs
Version 2 is the latest and most secure version of SSH.
The nfsstat command can be used to view NFS statistics.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
43. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
Sendmail
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
support for TCP Wrappers
44. What command is used to create an RPM package?
rpmbuild
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
A virtual host is a way of hosting multiple sites using a single IP address.
Use the setgid flag to create the appropriate permissions (chmod 2770).
45. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
46. What port does the rndc utility listen on by default?
schedule one-time-only jobs
By default - the rndc utility listens on port 953.
entering rescue mode and repairing the problem.
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.
47. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
serve both files and printers to users
export one or all resources
service httpd configtest
48. What are SELinux Booleans?
The DHCP server listens on port 67 by default.
SELinux Booleans provide restrictions to different aspects of a service.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Typing the mail or mutt command allows you to read mail from the command line.
49. What command can be used to easily list all the options in the FTP main config file?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
enabled by default
You add your action to the end of the /home/user01/.bashrc file.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
50. 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