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 portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
VNC is used to control a remote desktop session.
rpcbind service
The du and df commands are used to view available space on the system.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
2. What command can you use to validate the syntax of the Apache config file?
service httpd configtest
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.
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.
alternatives --config mta
3. What command is used to show all services being controlled by the xinetd daemon?
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
chkconfig xinetd --list
Using the chcon command - you can change the context of a file to work with Apache.
4. What command can you use to view system processes and their CPU usage?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
useradd -c "Jr Admin" George
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Use the ps command to view processes and their CPU usage.
5. What command can you use to view NFS statistics?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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 nfsstat command can be used to view NFS statistics.
6. What file is used to maintain custom parameters for the kernel during system boot?
By defining a %post section - you can run scripts after a kickstart installation is complete.
useradd -c "Jr Admin" George
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Enforcing during installation
7. GRUB has three stages. Can you name them?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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
8. What command do you use to report information on quota usage?
VNC is used to control a remote desktop session.
repquota
The /etc/fstab file.
support TCP Wrappers
9. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The two main config files are master.cf and main.cf.
Enforcing during installation
The vsftpd package is used to install an FTP server.
10. What is the virsh command used for?
The virsh command is used to manage virtual guests.
repquota
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The /var/log/audit/audit.log file contains all policy violations.
11. What command can you use to monitor and troubleshoot network connections?
chkconfig sshd off
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The tcpdump command is used to monitor network connections on different interfaces.
The three utilities are: route - ping - and nslookup.
12. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
amount of RAM
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The -t nfs option is used with the mount command to mount NFS resources.
13. To create a RAID or LVM partition using kickstart
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
ifconfig
14. How can you verify the status of the SSH service after the system has booted?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
service sshd statuts
entering rescue mode and repairing the problem.
The three utilities are: route - ping - and nslookup.
15. What command can you use to test connectivity to another host?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The tcpdump command is used to monitor network connections on different interfaces.
The ping command can be used to verify connectivity to another host.
By default - the rndc utility listens on port 953.
16. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
atq
SELinux Booleans provide restrictions to different aspects of a service.
useradd -c "Jr Admin" George
17. What port on the firewall needs to be open for the TFTP server to work?
alternatives --config mta
The virsh command is used to manage virtual guests.
The TFTP server uses UDP port 69.
rpcbind service
18. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
The virsh command is used to manage virtual guests.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
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 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
19. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
serve both files and printers to users
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
The SMTP service runs on TCP port 110.
20. What are SELinux Booleans?
semanage boolean -l
SELinux Booleans provide restrictions to different aspects of a service.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Use the route command with the add option to create a static route.
21. How can you check the currently mounted file systems?
SSH is used for secure remote management of Linux systems.
Use the top command to view CPU and memory usage.
The mount command lists all currently mounted file systems.
chkconfig xinetd --list
22. What are the two config files for Postfix called?
The /etc/fstab file.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The two main config files are master.cf and main.cf.
support for TCP Wrappers
23. 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
24. A slave DNS server provides...
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
load balancing and redundancy benefits
export one or all resources
25. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
via the command line
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
DNS uses port 53.
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 happens to jobs that are scheduled to run while the system is off?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
chcon
The lastlog and faillog commands are used to view user login-related events?
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.
28. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
setsebool -P nfs_export_all_rw=1
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.
DNS uses port 53.
29. 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
30. What command disables the SSH service from running when the system boots?
run on any port you'd like (provided that port is available)
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.
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.
chkconfig sshd off
31. Red Hat Enterprise Linux 6 is the only version that officially supports _______
Physical volumes - volume groups - and logical volumes.
LUKS encryption
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.
getsebool -a | grep http
32. What command is used to create an RPM package?
The htpasswd command can be used to password-protect a web page.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
rpmbuild
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
33. What does it mean if you ping a host and you receive the response Destination Unreachable?
lvdisplay
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The rndc utility provides a method for managing the DNS server remotely and securely.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
34. Runlevel 0 ___________. Runlevel 6 reboots the system.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
halts the system
chkconfig xinetd --list
user's home directory in the /etc/skel directory
35. What command can you use to create a new SSL certificate?
You can use the authconfig-tui command or the authconfig command.
used for kickstart and/or network installs
SSH is used for secure remote management of Linux systems.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
36. What option is used to allow anonymous uploads to the FTP server?
user's home directory in the /etc/skel directory
You can use the remove or erase options with yum to remove a package.
VNC is used to control a remote desktop session.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
37. What command and option do you use to view the description of Boolean values?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
semanage boolean -l
38. 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
The rndc utility provides a method for managing the DNS server remotely and securely.
The /etc/fstab file.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
39. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
useradd -c "Jr Admin" George
via the command line
semanage boolean -l
enabled by default
40. What command can you use to create a password-protected page?
The du and df commands are used to view available space on the system.
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 htpasswd command can be used to password-protect a web page.
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.
41. How do you run a command with elevated privileges?
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 can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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 nfsstat command can be used to view NFS statistics.
42. What is the main config file for the DHCP service?
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.
The nfsstat command can be used to view NFS statistics.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
43. What does the testparm command do?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
44. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What is the top command used for?
atq
Use the top command to view CPU and memory usage.
semanage boolean -l
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
46. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
service sshd statuts
The smbstatus command shows you currently mounted Samba resources.
The lftp command can be used on a client to test FTP server connections.
47. What command can you use to check the config file of the DHCP server?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
choose which mode you'd like it to operate in
The /etc/fstab file.
service dhcpd configtest
48. What happens if you call the command from question 3 with the -c option after it has already been run?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
used for kickstart and/or network installs
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
49. What command can you use to change the context of files?
chcon
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
atq
defining a %pre section although it is rarely used
50. What is the /var/lib/nfs/etab file used for?
mkfs.ext4
Enforcing during installation
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
VNC is used to control a remote desktop session.