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 does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
setsebool -P nfs_export_all_rw=1
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.
you have access to the correct packages or repositories.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
2. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
kickstart installations to work
alternatives --config mta
load balancing and redundancy benefits
getfacl
3. What port on the firewall needs to be open for the TFTP server to work?
The nfsstat command can be used to view NFS statistics.
service httpd configtest
The user_list file can be used to limit which users have access to the FTP server.
The TFTP server uses UDP port 69.
4. How would you view all Boolean options for the HTTP service?
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
lvdisplay
getsebool -a | grep http
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
5. What is the rndc utility used for?
lvdisplay
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 rndc utility provides a method for managing the DNS server remotely and securely.
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.
6. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
rpmbuild
This command reboots virtual guest Client04.
support for TCP Wrappers
7. Which version of SSH should you use?
support TCP Wrappers
SELinux provides enhanced granular security for the Linux operating system.
Version 2 is the latest and most secure version of SSH.
run on any port you'd like (provided that port is available)
8. What are SELinux Booleans?
The yum and rpm commands are used for package management.
SELinux Booleans provide restrictions to different aspects of a service.
halts the system
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
9. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The mount command lists all currently mounted file systems.
The service command is used to start - stop - and manage system services.
10. What benefit does a web proxy provide to your network?
kickstart installations to work
Enforcing during installation
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
halts the system
11. Where are Yum repository config files located?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
SELinux provides enhanced granular security for the Linux operating system.
user's home directory in the /etc/skel directory
12. 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
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.
LUKS encryption
useradd -c "Jr Admin" George
13. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The yum and rpm commands are used for package management.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Use the top command to view CPU and memory usage.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
14. What is the format of the /etc/shadow file?
The mount command lists all currently mounted file systems.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Enforcing during installation
15. What is the /etc/vsftpd/user_list file used for?
The user_list file can be used to limit which users have access to the FTP server.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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.
16. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
17. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
Physical volumes - volume groups - and logical volumes.
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.
The vsftpd package is used to install an FTP server.
18. What three components are needed to fully automate a kickstart installation?
The mount command lists all currently mounted file systems.
lvdisplay
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
19. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
20. What command can you use to create a file system?
The /etc/fstab file.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
mkfs.ext4
The mount command lists all currently mounted file systems.
21. How can you check the currently mounted file systems?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
atq
The mount command lists all currently mounted file systems.
The SMTP service runs on TCP port 110.
22. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
23. What client-side command can you use to test your FTP server connection?
The ping command can be used to verify connectivity to another host.
The virsh command is used to manage virtual guests.
The lftp command can be used on a client to test FTP server connections.
Sendmail
24. 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
25. What command can you use to view the current ACL on a file?
getfacl
Enforcing during installation
The vsftpd package is used to install an FTP server.
chcon
26. What command is used to create a user for Samba?
used for kickstart and/or network installs
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The smbpasswd command is used to create Samba users.
27. What is a swap? Is it created as a partition or device 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.
run on any port you'd like (provided that port is available)
The lastlog and faillog commands are used to view user login-related events?
SSH is used for secure remote management of Linux systems.
28. There are four types of DNS servers. Name them.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The service command is used to start - stop - and manage system services.
VNC is used to control a remote desktop session.
29. What option is used with both the fdisk and parted commands to display the current partition tables?
Sendmail
The du and df commands are used to view available space on the system.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Enforcing during installation
30. A PXE server eases the automation process but isn't required for...
chkconfig xinetd --list
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 default - Squid runs on port 3128.
31. What are the three different types of RAID described in this chapter?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The rndc utility provides a method for managing the DNS server remotely and securely.
kickstart installations to work
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
32. Can you name the two commands that can be used to view the free space on the system?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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 du and df commands are used to view available space on the system.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
33. To grow a file system
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 smbpasswd command is used to create Samba users.
Use the resize2fs command to grow a file system.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
34. How do you run a command with elevated privileges?
The vsftpd package is used to install an FTP server.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the setgid flag to create the appropriate permissions (chmod 2770).
service httpd configtest
35. What command is used to show all services being controlled by the xinetd daemon?
chkconfig xinetd --list
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
getsebool
mkfs.ext4
36. 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 du and df commands are used to view available space on the system.
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.
Use the top command to view CPU and memory usage.
37. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
You add your action to the end of the /home/user01/.bashrc 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.
run on any port you'd like (provided that port is available)
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
38. Editing the /etc/xinetd.d/tftp file and enabling the service are the same as running the chkconfig tftp on command. Both of these actions...
have the same effect
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
DNS uses port 53.
The NFS service uses TCP port 2049 by default.
39. The at command is used to ____________. The cron service handles reoccurring system jobs.
cat /proc/mdstat
service named configtest
schedule one-time-only jobs
ifconfig
40. GRUB has three stages. Can you name them?
The service command is used to start - stop - and manage system services.
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
service dhcpd 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.
41. To create a RAID or LVM partition using kickstart
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.
The ping command can be used to verify connectivity to another host.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
42. What command and option do you use to view the description of Boolean values?
semanage boolean -l
schedule one-time-only jobs
The service command is used to start - stop - and manage system services.
rpmbuild
43. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
SELinux provides enhanced granular security for the Linux operating system.
Using the chcon command - you can change the context of a file to work with Apache.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
44. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What are the three modes in which the rpm command can operate?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
Sendmail
The rpm command can operate in install - query - or verify modes.
useradd -c "Jr Admin" George
46. What port does the rndc utility listen on by default?
Use the resize2fs command to grow a file system.
kickstart installations to work
By default - the rndc utility listens on port 953.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
47. What command do you use to change the permissions on a file or directory - To change ownership?
The three utilities are: route - ping - and nslookup.
Use the resize2fs command to grow a file system.
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.
kickstart installations to work
48. What is a gateway used for on a network?
You must open TCP ports 20 and 21 for the FTP server to function properly.
By default - Squid runs on port 3128.
service sshd statuts
A gateway is used as an entry and exit point for a subnet on a network. To contact hosts outside your subnet - you need to pass through a gateway.
49. 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.
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
browseable option
The TFTP server uses UDP port 69.
50. The firewall service is...
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The TFTP server uses UDP port 69.
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.
enabled by default