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 name of the package that allows you to install VNC?
schedule one-time-only jobs
mkfs.ext4
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The two main config files are master.cf and main.cf.
2. What is the name of the section used to run scripts after a kickstart installation?
setsebool -P nfs_export_all_rw=1
By defining a %post section - you can run scripts after a kickstart installation is complete.
The DHCP server listens on port 67 by default.
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.
3. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
You must open TCP ports 20 and 21 for the FTP server to function properly.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The rndc utility provides a method for managing the DNS server remotely and securely.
4. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
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.
halts the system
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.
Enforcing during installation
5. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
The nfsstat command can be used to view NFS statistics.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
getsebool -a | grep http
6. What port must be opened on the firewall for DNS?
DNS uses port 53.
service dhcpd configtest
mkfs.ext4
The /etc/fstab file.
7. What command can you use to create a password-protected page?
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
atq
The htpasswd command can be used to password-protect a web page.
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.
8. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
chkconfig—list
choose which mode you'd like it to operate in
Typing the mail or mutt command allows you to read mail from the command line.
9. 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...
10. What is the format of the /etc/shadow file?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
semanage boolean -l
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The smbstatus command shows you currently mounted Samba resources.
11. Explain the difference between soft and hard limits in quotas.
12. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The dig - host - and ping commands can be used to test DNS server functionality.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
13. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
A user's home directory is created under the /home directory.
Physical volumes - volume groups - and logical volumes.
The yum and rpm commands are used for package management.
14. What two ports should be opened on the firewall for the FTP server to function properly?
The ping command can be used to verify connectivity to another host.
Use the top command to view CPU and memory usage.
You must open TCP ports 20 and 21 for the FTP server to function properly.
repquota
15. What command can you use to test the config files before starting the DNS service?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
service named configtest
export one or all resources
The /var/log/audit/audit.log file contains all policy violations.
16. What is the benefit of using public/private key authentication?
17. 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.
DNS uses port 53.
VNC is used to control a remote desktop session.
This command reboots virtual guest Client04.
18. How would you go about creating a static route?
user's home directory in the /etc/skel directory
SSH is used for secure remote management of Linux systems.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
Use the route command with the add option to create a static route.
19. What command do you use to report information on quota usage?
cat /proc/mdstat
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.
repquota
enabled by default
20. What client-side command can you use to test your FTP server connection?
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The lftp command can be used on a client to test FTP server connections.
21. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
Enforcing during installation
semanage boolean -l
The dig - host - and ping commands can be used to test DNS server functionality.
22. What is SSH used for?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
This command reboots virtual guest Client04.
SSH is used for secure remote management of Linux systems.
23. It is possible to run scripts before a kickstart installation. This is done by...
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
defining a %pre section although it is rarely used
The file system where ACLs will be implemented must be mounted with the acl option before ACLs 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
24. The exportfs command is used to...
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 have access to the correct packages or repositories.
Use the resize2fs command to grow a file system.
export one or all resources
25. What command can you use to query information from the kernel about RAID arrays?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
cat /proc/mdstat
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.
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.
26. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
atq
The /etc/fstab file.
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.
27. Do you need to write changes to the disk when using the parted command? What about fdisk?
The virsh command is used to manage virtual guests.
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.
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.
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.
28. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The rndc utility provides a method for managing the DNS server remotely and securely.
service httpd configtest
via the command line
29. By default - what is the path to a user's home directory?
30. What option at the GRUB boot menu can you use to append something to a kernel?
have the same effect
chkconfig sshd off
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
31. What protocols are used with Dovecot?
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.
Use the resize2fs command to grow a file system.
cat /proc/mdstat
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
32. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
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.
You add your action to the end of the /home/user01/.bashrc file.
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.
33. What command displays your current interfaces and IP address?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
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.
support TCP Wrappers
ifconfig
34. What are the three items that make up LVM?
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 have access to the correct packages or repositories.
SELinux Booleans provide restrictions to different aspects of a service.
Physical volumes - volume groups - and logical volumes.
35. A service needs to have _______________ to be able to use it.
you have access to the correct packages or repositories.
support for TCP Wrappers
The smbstatus command shows you currently mounted Samba resources.
service sshd statuts
36. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
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.
run on any port you'd like (provided that port is available)
Apache uses port 80 for HTTP and port 443 for HTTPS.
37. What command can you use to view the current ACL on a file?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
You can use the authconfig-tui command or the authconfig command.
support for TCP Wrappers
getfacl
38. What is PAM used for?
The lastlog and faillog commands are used to view user login-related events?
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.
Use the yum groupinstall command to install multiple packages in a single group at once.
The rndc utility provides a method for managing the DNS server remotely and securely.
39. What command (and options) can be used to create a user named George with the description "Jr Admin"?
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.
rpmbuild
chcon
useradd -c "Jr Admin" George
40. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
repquota
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
used for kickstart and/or network installs
41. Are additional packages besides httpd required for a secure website - If so - what are they?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
For Apache to run a secure site - the mod_ssl package is required to be installed.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
service dhcpd configtest
42. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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 /var/lib/nfs/etab file is used to keep track of currently exported resources.
service dhcpd configtest
43. How can you display all virtual guests after they're connected to a hypervisor?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
schedule one-time-only jobs
For Apache to run a secure site - the mod_ssl package is required to be installed.
44. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The virsh command is used to manage virtual guests.
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The -t nfs option is used with the mount command to mount NFS resources.
45. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
rpcbind service
createrepo
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
46. What is the last rule in the iptables file?
47. What is the point of using SELinux?
export one or all resources
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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
SELinux provides enhanced granular security for the Linux operating system.
48. What three commands can you use to help verify that the DNS server is functioning properly?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The dig - host - and ping commands can be used to test DNS server functionality.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
49. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
alternatives --config mta
The two main config files are master.cf and main.cf.
lvdisplay
mkfs.ext4
50. What command and option do you use to view the description of Boolean values?
service named configtest
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the resize2fs command to grow a file system.
semanage boolean -l