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?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
2. What does the rdnc-confgen command do?
The du and df commands are used to view available space on the system.
The ping command can be used to verify connectivity to another host.
ifconfig
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
3. Explain the difference between soft and hard limits in quotas.
4. To grow a file system
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Version 2 is the latest and most secure version of SSH.
Use the resize2fs command to grow a file system.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
5. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
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 lftp command can be used on a client to test FTP server connections.
SSH is used for secure remote management of Linux systems.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
6. What benefit does a web proxy provide to your network?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
you have access to the correct packages or repositories.
7. The at command is used to ____________. The cron service handles reoccurring system jobs.
serve both files and printers to users
VNC is used to control a remote desktop session.
You can use the authconfig-tui command or the authconfig command.
schedule one-time-only jobs
8. Can you name the two commands that can be used to view the free space on the system?
You can use the authconfig-tui command or the authconfig command.
The du and df commands are used to view available space on the system.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
9. What is the last rule in the iptables file?
10. What command-line program can you use to check your mail?
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.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Typing the mail or mutt command allows you to read mail from the command line.
11. How do you run a command with elevated privileges?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
user's home directory in the /etc/skel directory
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
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.
12. What is the difference between an ext2 and ext3 file system?
13. The firewall service is...
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
enabled by default
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
14. GRUB has three stages. Can you name them?
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
getsebool -a | grep http
chkconfig sshd off
user's home directory in the /etc/skel directory
15. Which version of SSH should you use?
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the ps command to view processes and their CPU usage.
The nfsstat command can be used to view NFS statistics.
Version 2 is the latest and most secure version of SSH.
16. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
The /etc/fstab file.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
service named configtest
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
17. What is a virtual host?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
A virtual host is a way of hosting multiple sites using a single IP address.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
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.
18. Runlevel 0 ___________. Runlevel 6 reboots the system.
The lastlog and faillog commands are used to view user login-related events?
The vsftpd package is used to install an FTP server.
halts the system
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.
19. What command and options can you use to update the time?
LUKS encryption
service named configtest
You can use the remove or erase options with yum to remove a package.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
20. How would you go about creating a static route?
generates errors under Red Hat Enterprise Linux 6
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
ifconfig
Use the route command with the add option to create a static route.
21. What port does the DHCP server listen on by default?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
getfacl
support for TCP Wrappers
The DHCP server listens on port 67 by default.
22. 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.
The /etc/fstab file.
chkconfig—list
service sshd statuts
23. What is the biggest benefit to using LVM over basic partitions?
SSH is used for secure remote management of Linux systems.
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.
VNC is used to control a remote desktop session.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
24. What are the three items that make up LVM?
Use the top command to view CPU and memory usage.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
ifconfig
Physical volumes - volume groups - and logical volumes.
25. What is the difference between an A record and a PTR record?
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.
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The yum and rpm commands are used for package management.
26. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
You can use the authconfig-tui command or the authconfig command.
createrepo
27. What is the format of the /etc/shadow file?
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
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.
28. What is the name of the package used to install an FTP?
useradd -c "Jr Admin" George
The vsftpd package is used to install an FTP server.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
generates errors under Red Hat Enterprise Linux 6
29. What is the default port that Squid runs on?
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.
By default - Squid runs on port 3128.
schedule one-time-only jobs
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.
30. What is the benefit of using public/private key authentication?
31. What are the two types of back-end authentication mechanisms discussed in this chapter?
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.
The DHCP server listens on port 67 by default.
LUKS encryption
This chapter described tdbsm and smbpasswd back-end authentication.
32. SSH does...
support TCP Wrappers
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.
The TFTP server uses UDP port 69.
alternatives --config mta
33. What command and option can you use to enable a service to start on boot?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
SELinux provides enhanced granular security for the Linux operating system.
The mount command lists all currently mounted file systems.
The SMTP service runs on TCP port 110.
34. 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 vsftpd package is used to install an FTP server.
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/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
35. What commands can you use to add a client machine to an LDAP server?
browseable option
You can use the authconfig-tui command or the authconfig command.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The two main config files are master.cf and main.cf.
36. What happens if a host changes its IP address and the keys don't match?
37. There are four types of DNS servers. Name them.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The -t nfs option is used with the mount command to mount NFS resources.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
38. What client-side command can you use to test your FTP server connection?
run on any port you'd like (provided that port is available)
The lftp command can be used on a client to test FTP server connections.
A user's home directory is created under the /home directory.
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.
39. By default - what is the path to a user's home directory?
40. How can you display all virtual guests after they're connected to a hypervisor?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
You can use the remove or erase options with yum to remove a package.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
chkconfig—list
41. What port must be opened on the firewall for DNS?
DNS uses port 53.
You can use the remove or erase options with yum to remove a package.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
service httpd configtest
42. What command and option do you use to view the description of Boolean values?
semanage boolean -l
support for TCP Wrappers
The vsftpd package is used to install an FTP server.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
43. Can you put your /boot partition on a RAID 5 array?
The three utilities are: route - ping - and nslookup.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
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.
44. What is VNC?
VNC is used to control a remote desktop session.
support TCP Wrappers
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 four types of DNS servers are master - slave - caching-only - and forwarding.
45. 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.
A user's home directory is created under the /home directory.
you have access to the correct packages or repositories.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
46. What is the superblock used for?
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.
Use the top command to view CPU and memory usage.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
47. What command (and options) can be used to create a user named George with the description "Jr Admin"?
getsebool
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.
useradd -c "Jr Admin" George
A virtual host is a way of hosting multiple sites using a single IP address.
48. What are the two config files for Postfix called?
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.
The DHCP server listens on port 67 by default.
The vsftpd package is used to install an FTP server.
The two main config files are master.cf and main.cf.
49. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
used for kickstart and/or network installs
service dhcpd configtest
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
50. Which file shows you all the client IP addresses?
The four types of DNS servers are master - slave - caching-only - and forwarding.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The DHCP server listens on port 67 by default.