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 can you display all virtual guests after they're connected to a hypervisor?
getfacl
The virsh command is used to manage virtual guests.
Use the resize2fs command to grow a file system.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
2. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
You can use the remove or erase options with yum to remove a package.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
DNS uses port 53.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
3. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
Enforcing during installation
You must open TCP ports 20 and 21 for the FTP server to function properly.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
4. What are the three different types of RAID described in this chapter?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The dig - host - and ping commands can be used to test DNS server functionality.
Use the setgid flag to create the appropriate permissions (chmod 2770).
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
5. Can you name the two commands that can be used to view the free space on the system?
getsebool
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The du and df commands are used to view available space on the system.
atq
6. A PXE server eases the automation process but isn't required for...
serve both files and printers to users
kickstart installations to work
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.
Enforcing during installation
7. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
The /var/log/audit/audit.log file contains all policy violations.
getsebool -a | grep http
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.
8. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
The rpm command can operate in install - query - or verify modes.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
generates errors under Red Hat Enterprise Linux 6
Typing the mail or mutt command allows you to read mail from the command line.
9. What command can you use to check the config file of the DHCP server?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
service dhcpd configtest
10. Where are Yum repository config files located?
The TFTP server uses UDP port 69.
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
enabled by default
11. What option at the GRUB boot menu can you use to append something to a kernel?
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
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.
halts the system
12. How can you verify the status of the SSH service after the system has booted?
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.
service sshd statuts
The /etc/fstab file.
The ping command can be used to verify connectivity to another host.
13. Samba servers can...
For Apache to run a secure site - the mod_ssl package is required to be installed.
serve both files and printers to users
support for TCP Wrappers
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.
14. What command can you use to view NFS statistics?
getfacl
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The nfsstat command can be used to view NFS statistics.
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.
15. What command can you use to create a file system?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
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.
user's home directory in the /etc/skel directory
mkfs.ext4
16. What command can you use to manage system services?
The service command is used to start - stop - and manage system services.
via the command line
rpcbind service
Sendmail
17. What is SSH used for?
The htpasswd command can be used to password-protect a web page.
The smbstatus command shows you currently mounted Samba resources.
VNC is used to control a remote desktop session.
SSH is used for secure remote management of Linux systems.
18. How do you run a command with elevated privileges?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
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.
19. What port does the Apache web server run on - What about HTTPS?
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Apache uses port 80 for HTTP and port 443 for HTTPS.
VNC is used to control a remote desktop session.
20. Before you work with quotas - what do you need to do to the file system?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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 NFS service uses TCP port 2049 by default.
The lastlog and faillog commands are used to view user login-related events?
21. What three commands can you use to help verify that the DNS server is functioning properly?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The dig - host - and ping commands can be used to test DNS server functionality.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
You can use the remove or erase options with yum to remove a package.
22. What are the five required directories when building RPMS?
The rndc utility provides a method for managing the DNS server remotely and securely.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The service command is used to start - stop - and manage system services.
SELinux Booleans provide restrictions to different aspects of a service.
23. What does the testparm command do?
A virtual host is a way of hosting multiple sites using a single IP address.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
24. What is the /var/lib/nfs/etab file used for?
defining a %pre section although it is rarely used
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The ping command can be used to verify connectivity to another host.
25. What command can you use to view mounted Samba shares?
The yum and rpm commands are used for package management.
The smbstatus command shows you currently mounted Samba resources.
serve both files and printers to users
support for TCP Wrappers
26. What command can you use to create a new SSL certificate?
generates errors under Red Hat Enterprise Linux 6
The NFS service uses TCP port 2049 by default.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
27. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
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.
generates errors under Red Hat Enterprise Linux 6
Use the resize2fs command to grow a file system.
28. What is the benefit of using public/private key authentication?
29. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
You can use the remove or erase options with yum to remove a package.
The tcpdump command is used to monitor network connections on different interfaces.
The rpm command can operate in install - query - or verify modes.
30. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
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.
chkconfig sshd off
The lftp command can be used on a client to test FTP server connections.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
31. What command can you use to change the context of files?
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
Use the ps command to view processes and their CPU usage.
chcon
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. What command can you use to create a password-protected page?
Using the chcon command - you can change the context of a file to work with Apache.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
via the command line
The htpasswd command can be used to password-protect a web page.
33. To grow a file system
Use the resize2fs command to grow a file system.
SELinux Booleans provide restrictions to different aspects of a service.
repquota
Using the chcon command - you can change the context of a file to work with Apache.
34. What does the rdnc-confgen command do?
DNS uses port 53.
By defining a %post section - you can run scripts after a kickstart installation is complete.
The /etc/fstab file.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
35. 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...
36. What file is used to maintain custom parameters for the kernel during system boot?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Enforcing during installation
The tcpdump command is used to monitor network connections on different interfaces.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
37. Through its main config file - SSH can be configured to...
38. What command and option do you use to view the description of Boolean values?
run on any port you'd like (provided that port is available)
getsebool -a | grep http
alternatives --config mta
semanage boolean -l
39. Explain the difference between soft and hard limits in quotas.
40. How would you view all Boolean options for the HTTP service?
setsebool -P nfs_export_all_rw=1
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.
getsebool -a | grep http
41. Most boot issues can be resolved by...
entering rescue mode and repairing the problem.
The NFS service uses TCP port 2049 by default.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The tcpdump command is used to monitor network connections on different interfaces.
42. What command can you use to view the current ACL on a file?
getfacl
You can use the remove or erase options with yum to remove a package.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
43. What directory is used to represent the virtual file system created by the kernel?
The -t nfs option is used with the mount command to mount NFS resources.
The virsh command is used to manage virtual guests.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
44. 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).
lvdisplay
Network installations can be performed using the HTTP - FTP - and NFS protocols.
VNC is used to control a remote desktop session.
45. What critical step must you take after updating the kernel to a newer version?
lvdisplay
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 four types of DNS servers are master - slave - caching-only - and forwarding.
kickstart installations to work
46. How can you change the security context of a directory to work with Apache?
The dig - host - and ping commands can be used to test DNS server functionality.
Using the chcon command - you can change the context of a file to work with Apache.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the ps command to view processes and their CPU usage.
47. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
cat /proc/mdstat
The lftp command can be used on a client to test FTP server connections.
You add your action to the end of the /home/user01/.bashrc file.
rpcbind service
48. What command can be used to view the queue for at service jobs?
getsebool
Use the yum groupinstall command to install multiple packages in a single group at once.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
atq
49. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
schedule one-time-only jobs
50. What is the difference between an A record and a PTR record?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
By default - the rndc utility listens on port 953.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.