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. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
schedule one-time-only jobs
You can use the authconfig-tui command or the authconfig command.
used for kickstart and/or network installs
Use the setgid flag to create the appropriate permissions (chmod 2770).
2. What port does the Apache web server run on - What about HTTPS?
Apache uses port 80 for HTTP and port 443 for HTTPS.
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.
DNS uses port 53.
Using the chcon command - you can change the context of a file to work with Apache.
3. What command can you use to create a file system?
Use the ps command to view processes and their CPU usage.
mkfs.ext4
atq
The /etc/fstab file.
4. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
cat /proc/mdstat
chkconfig sshd off
The lftp command can be used on a client to test FTP server connections.
5. What command can you use to create a new SSL certificate?
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 /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
Use the top command to view CPU and memory usage.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
6. What is a virtual host?
schedule one-time-only jobs
A virtual host is a way of hosting multiple sites using a single IP address.
rpcbind 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.
7. What port on the firewall needs to be open for the TFTP server to work?
The service command is used to start - stop - and manage system services.
The TFTP server uses UDP port 69.
For Apache to run a secure site - the mod_ssl package is required to be installed.
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.
8. What option at the GRUB boot menu can you use to append something to a kernel?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
export one or all resources
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
9. What option is used to allow anonymous uploads to the FTP server?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
support for TCP Wrappers
The print option is used with both the fdisk and parted commands to display the current partition tables.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
10. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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
Use the setgid flag to create the appropriate permissions (chmod 2770).
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
11. What port does the rndc utility listen on by default?
setsebool -P nfs_export_all_rw=1
By default - the rndc utility listens on port 953.
The du and df commands are used to view available space on the system.
Use the setgid flag to create the appropriate permissions (chmod 2770).
12. Red Hat Enterprise Linux 6 is the only version that officially supports _______
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
serve both files and printers to users
The ping command can be used to verify connectivity to another host.
LUKS encryption
13. Can you put your /boot partition on a RAID 5 array?
The htpasswd command can be used to password-protect a web page.
amount of RAM
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
14. What is VNC?
VNC is used to control a remote desktop session.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
This command reboots virtual guest Client04.
15. How do you run a command with elevated privileges?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
run on any port you'd like (provided that port is available)
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
16. What command and option can you use to enable a service to start on boot?
The lftp command can be used on a client to test FTP server connections.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
17. What file needs to be edited so that the system will mount a file system at boot time?
The /etc/fstab file.
This command reboots virtual guest Client04.
Use the top command to view CPU and memory usage.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
18. What is the rndc utility used for?
The rndc utility provides a method for managing the DNS server remotely and securely.
By default - Squid runs on port 3128.
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 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.
19. Which log file is used to keep track of policy violations?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The /var/log/audit/audit.log file contains all policy violations.
defining a %pre section although it is rarely used
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
20. What command can you use to test connectivity to another host?
The tcpdump command is used to monitor network connections on different interfaces.
chkconfig xinetd --list
You can use the authconfig-tui command or the authconfig command.
The ping command can be used to verify connectivity to another host.
21. What does the partprobe command do?
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 user's home directory is created under the /home directory.
This chapter described tdbsm and smbpasswd back-end authentication.
via the command line
22. What command displays your current interfaces and IP address?
For Apache to run a secure site - the mod_ssl package is required to be installed.
The htpasswd command can be used to password-protect a web page.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
ifconfig
23. What is SSH used for?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
DNS uses port 53.
used for kickstart and/or network installs
SSH is used for secure remote management of Linux systems.
24. What is the /etc/hosts file used for?
25. What command can you use to get information about logical volumes?
chkconfig sshd off
lvdisplay
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
you have access to the correct packages or repositories.
26. What command can you use to test the config files before starting the DNS service?
SELinux provides enhanced granular security for the Linux operating system.
The smbstatus command shows you currently mounted Samba resources.
service named configtest
The service command is used to start - stop - and manage system services.
27. What is the biggest benefit to using LVM over basic partitions?
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.
The /etc/fstab file.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
service named configtest
28. What command would you use to create a group - to add the user George to the group?
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.
Using the chcon command - you can change the context of a file to work with Apache.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
Typing the mail or mutt command allows you to read mail from the command line.
29. What are the five required directories when building RPMS?
The NFS service uses TCP port 2049 by default.
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
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
30. What is NAT - How is it used?
SELinux Booleans provide restrictions to different aspects of a service.
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.
service named configtest
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
31. The ____________ is available for each share.
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.
DNS uses port 53.
run on any port you'd like (provided that port is available)
browseable option
32. To grow a file system
used for kickstart and/or network installs
You can use the remove or erase options with yum to remove a package.
Use the resize2fs command to grow a file 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.
33. What command can you use to view system processes and their CPU usage?
The lastlog and faillog commands are used to view user login-related events?
The three utilities are: route - ping - and nslookup.
Use the ps command to view processes and their CPU usage.
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.
34. What is the point of using SELinux?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
repquota
SELinux provides enhanced granular security for the Linux operating system.
export one or all resources
35. To create a RAID or LVM partition using kickstart
generates errors under Red Hat Enterprise Linux 6
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the ps command to view processes and their CPU usage.
The three utilities are: route - ping - and nslookup.
36. What is the xinetd service used for?
export one or all resources
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
37. What is the /var/lib/nfs/etab file used for?
Using the chcon command - you can change the context of a file to work with Apache.
VNC is used to control a remote desktop session.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
38. Can you name the two commands that can be used to view the free space on the system?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The service command is used to start - stop - and manage system services.
The du and df commands are used to view available space on the system.
The nfsstat command can be used to view NFS statistics.
39. What happens if a host changes its IP address and the keys don't match?
40. What command is used to show all services being controlled by the xinetd daemon?
Use the ps command to view processes and their CPU usage.
chkconfig xinetd --list
The two main config files are master.cf and main.cf.
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.
41. The package selection screen allows you to install any software you want during the installation process as long as...
ifconfig
service named configtest
you have access to the correct packages or repositories.
schedule one-time-only jobs
42. What command can you use to view mounted Samba shares?
via the command line
The smbstatus command shows you currently mounted Samba resources.
chkconfig xinetd --list
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.
43. What three components are needed to fully automate a kickstart installation?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
atq
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
44. What is the top command used for?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the top command to view CPU and memory usage.
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.
enabled by default
45. What command do you use to report information on quota usage?
repquota
kickstart installations to work
mkfs.ext4
enabled by default
46. SSH does...
The du and df commands are used to view available space on the system.
support TCP Wrappers
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
By default - Squid runs on port 3128.
47. How can you change the security context of a directory to work with Apache?
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 lftp command can be used on a client to test FTP server connections.
chkconfig sshd off
Using the chcon command - you can change the context of a file to work with Apache.
48. What is the name of the section used to run scripts after a kickstart installation?
repquota
generates errors under Red Hat Enterprise Linux 6
You can use the authconfig-tui command or the authconfig command.
By defining a %post section - you can run scripts after a kickstart installation is complete.
49. What is the benefit to using centralized authentication?
50. How can you verify the status of the SSH service after the system has booted?
service dhcpd configtest
service sshd statuts
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.