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 PAM used for?
The DHCP server listens on port 67 by default.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
repquota
2. 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.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
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.
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.
3. How would you view all Boolean options for the HTTP service?
rpcbind service
The du and df commands are used to view available space on the system.
getsebool
getsebool -a | grep http
4. What command is used to create an RPM package?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
SELinux provides enhanced granular security for the Linux operating system.
The nfsstat command can be used to view NFS statistics.
rpmbuild
5. What command displays your current interfaces and IP address?
ifconfig
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
6. What command can you use to create a new SSL certificate?
service dhcpd configtest
Use the yum groupinstall command to install multiple packages in a single group at once.
serve both files and printers to users
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
7. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
rpcbind service
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
Use the route command with the add option to create a static route.
8. What port does the DHCP server listen on by default?
The DHCP server listens on port 67 by default.
You can use the remove or erase options with yum to remove a package.
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.
Version 2 is the latest and most secure version of SSH.
9. What happens to jobs that are scheduled to run while the system is off?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
kickstart installations to work
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
10. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Typing the mail or mutt command allows you to read mail from the command line.
used for kickstart and/or network installs
11. What command can you use to check the config file of the DHCP server?
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.
alternatives --config mta
service dhcpd configtest
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
12. What command disables the SSH service from running when the system boots?
Apache uses port 80 for HTTP and port 443 for HTTPS.
The htpasswd command can be used to password-protect a web page.
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.
13. What port must be opened on the firewall for DNS?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
DNS uses port 53.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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
14. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
cat /proc/mdstat
rpmbuild
15. Does a DHCP server allow reserved IP addresses - If so - how?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
16. How can you change the security context of a directory to work with Apache?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The lftp command can be used on a client to test FTP server connections.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Using the chcon command - you can change the context of a file to work with Apache.
17. Place all files you want added to a _______________ during creation.
18. What are the two types of back-end authentication mechanisms discussed in this chapter?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
choose which mode you'd like it to operate in
lvdisplay
This chapter described tdbsm and smbpasswd back-end authentication.
19. What is the main config file for the DHCP service?
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
DNS uses port 53.
The /var/log/audit/audit.log file contains all policy violations.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
20. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
By default - the rndc utility listens on port 953.
21. What are the three different types of RAID described in this chapter?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
rpcbind service
The /etc/fstab file.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
22. What is the benefit of using public/private key authentication?
23. What command can you use to query Boolean values?
This command reboots virtual guest Client04.
getsebool
useradd -c "Jr Admin" George
You must open TCP ports 20 and 21 for the FTP server to function properly.
24. What command and option can you use to enable a service to start on boot?
The ping command can be used to verify connectivity to another host.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
schedule one-time-only jobs
chkconfig xinetd --list
25. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
26. What command can you use to view mounted Samba shares?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
By default - the rndc utility listens on port 953.
The smbstatus command shows you currently mounted Samba resources.
The three utilities are: route - ping - and nslookup.
27. What are the side effects of shrinking a volume group or logical volume?
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.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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
support TCP Wrappers
28. What file needs to be edited so that the system will mount a file system at boot time?
Version 2 is the latest and most secure version of SSH.
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 /etc/fstab file.
This chapter described tdbsm and smbpasswd back-end authentication.
29. Which version of SSH should you use?
The nfsstat command can be used to view NFS statistics.
Version 2 is the latest and most secure version of SSH.
mkfs.ext4
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.
30. What command can you use to monitor and troubleshoot network connections?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
mkfs.ext4
The tcpdump command is used to monitor network connections on different interfaces.
31. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
browseable option
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
used for kickstart and/or network installs
32. What is the format of the /etc/shadow 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 service command is used to start - stop - and manage system services.
Version 2 is the latest and most secure version of SSH.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
33. What client-side command can you use to test your FTP server connection?
Use the yum groupinstall command to install multiple packages in a single group at once.
This command reboots virtual guest Client04.
The lftp command can be used on a client to test FTP server connections.
amount of RAM
34. To create a RAID or LVM partition using kickstart
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
35. What is the default port that Squid runs on?
By default - Squid runs on port 3128.
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 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.
The DHCP server listens on port 67 by default.
36. What is the point of using SELinux?
The two main config files are master.cf and main.cf.
alternatives --config mta
SELinux provides enhanced granular security for the Linux operating system.
The SMTP service runs on TCP port 110.
37. What critical step must you take after updating the kernel to a newer version?
The SMTP service runs on TCP port 110.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
createrepo
38. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The virsh command is used to manage virtual guests.
mkfs.ext4
Network installations can be performed using the HTTP - FTP - and NFS protocols.
39. To export directories as resources - what file needs to be edited?
40. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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.
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 service command is used to start - stop - and manage system services.
schedule one-time-only jobs
41. You must dictate the ____________ you want allocated to your virtual machine when you create it.
getfacl
amount of RAM
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
42. What is the difference between an A record and a PTR record?
The service command is used to start - stop - and manage system services.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
43. What command can you use to get information about logical volumes?
service sshd statuts
lvdisplay
used for kickstart and/or network installs
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
44. 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.
DNS uses port 53.
SELinux Booleans provide restrictions to different aspects of a service.
used for kickstart and/or network installs
45. What is the xinetd service used for?
You must open TCP ports 20 and 21 for the FTP server to function properly.
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.
export one or all resources
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
46. To grow a file system
serve both files and printers to users
The smbpasswd command is used to create Samba users.
Use the resize2fs command to grow a file system.
The virsh command is used to manage virtual guests.
47. What command can you use to change the context of files?
chcon
entering rescue mode and repairing the problem.
defining a %pre section although it is rarely used
A user's home directory is created under the /home directory.
48. The ____________ is available for each share.
via the command line
browseable option
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
You can use the authconfig-tui command or the authconfig command.
49. What command can you use to create a password-protected page?
VNC is used to control a remote desktop session.
The htpasswd command can be used to password-protect a web page.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
support for TCP Wrappers
50. There are four types of DNS servers. Name them.
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
lvdisplay
The four types of DNS servers are master - slave - caching-only - and forwarding.
The lastlog and faillog commands are used to view user login-related events?