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. The exportfs command is used to...
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
repquota
export one or all resources
By default - the rndc utility listens on port 953.
2. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
support for TCP Wrappers
By defining a %post section - you can run scripts after a kickstart installation is complete.
serve both files and printers to users
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
3. What directory is used to represent the virtual file system created by the kernel?
chcon
The /etc/fstab file.
you have access to the correct packages or repositories.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
4. How would you go about creating a static route?
SSH is used for secure remote management of Linux systems.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Use the route command with the add option to create a static route.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
5. What three components are needed to fully automate a kickstart installation?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The dig - host - and ping commands can be used to test DNS server functionality.
You can use the authconfig-tui command or the authconfig command.
6. Which version of SSH should you use?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
choose which mode you'd like it to operate in
Version 2 is the latest and most secure version of SSH.
chkconfig—list
7. What is the rndc utility used for?
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
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
The rndc utility provides a method for managing the DNS server remotely and securely.
8. What is the top command used for?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
By default - the rndc utility listens on port 953.
You can use the authconfig-tui command or the authconfig command.
Use the top command to view CPU and memory usage.
9. What is the format of the /etc/shadow file?
The -t nfs option is used with the mount command to mount NFS resources.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The three utilities are: route - ping - and nslookup.
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
10. What port does NFS use by default?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the route command with the add option to create a static route.
The NFS service uses TCP port 2049 by default.
The print option is used with both the fdisk and parted commands to display the current partition tables.
11. How can virtual hosts be used?
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.
kickstart installations to work
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
alternatives --config mta
12. Are additional packages besides httpd required for a secure website - If so - what are they?
useradd -c "Jr Admin" George
The /etc/fstab file.
Enforcing during installation
For Apache to run a secure site - the mod_ssl package is required to be installed.
13. What is a virtual host?
A virtual host is a way of hosting multiple sites using a single IP address.
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 rpm command can operate in install - query - or verify modes.
The /var/log/audit/audit.log file contains all policy violations.
14. It is possible to run scripts before a kickstart installation. This is done by...
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
LUKS encryption
defining a %pre section although it is rarely used
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.
15. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
16. 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.
The SMTP service runs on TCP port 110.
The yum and rpm commands are used for package management.
serve both files and printers to users
17. The package selection screen allows you to install any software you want during the installation process as long as...
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
you have access to the correct packages or repositories.
The dig - host - and ping commands can be used to test DNS server functionality.
useradd -c "Jr Admin" George
18. 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
19. What command do you use to report information on quota usage?
Typing the mail or mutt command allows you to read mail from the command line.
repquota
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
20. How do you run a command with elevated privileges?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
service dhcpd configtest
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
21. To grow a file system
The /var/log/audit/audit.log file contains all policy violations.
The DHCP server listens on port 67 by default.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Use the resize2fs command to grow a file system.
22. What are the three different types of RAID described in this chapter?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The TFTP server uses UDP port 69.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
23. What command-line program can you use to check your mail?
The service command is used to start - stop - and manage system services.
Sendmail
Apache uses port 80 for HTTP and port 443 for HTTPS.
Typing the mail or mutt command allows you to read mail from the command line.
24. What file is used to maintain custom parameters for the kernel during system boot?
repquota
By default - Squid runs on port 3128.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
25. What command can you use to change the context of files?
service sshd statuts
You add your action to the end of the /home/user01/.bashrc file.
chcon
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.
26. A slave DNS server provides...
load balancing and redundancy benefits
defining a %pre section although it is rarely used
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 /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
27. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
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.
generates errors under Red Hat Enterprise Linux 6
Using the chcon command - you can change the context of a file to work with Apache.
Use the setgid flag to create the appropriate permissions (chmod 2770).
28. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
29. What command do you use to change the permissions on a file or directory - To change ownership?
The tcpdump command is used to monitor network connections on different interfaces.
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 chapter described tdbsm and smbpasswd back-end authentication.
For Apache to run a secure site - the mod_ssl package is required to be installed.
30. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
DNS uses port 53.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
31. To create a RAID or LVM partition using kickstart
lvdisplay
The virsh command is used to manage virtual guests.
Use the yum groupinstall command to install multiple packages in a single group at once.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
32. What port does the Apache web server run on - What about HTTPS?
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
Enforcing during installation
used for kickstart and/or network installs
33. What port on the firewall needs to be open for the TFTP server to work?
The TFTP server uses UDP port 69.
The /var/log/audit/audit.log file contains all policy violations.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
rpcbind service
34. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The nfsstat command can be used to view NFS statistics.
chkconfig—list
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.
chkconfig xinetd --list
35. What are the five required directories when building RPMS?
rpcbind service
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
36. What option would you use to query an installed package using the rpm command?
schedule one-time-only jobs
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.
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
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.
37. What client-side command can you use to test your FTP server connection?
The virsh command is used to manage virtual guests.
The lftp command can be used on a client to test FTP server connections.
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
38. What command disables the SSH service from running when the system boots?
Sendmail
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
chkconfig sshd off
39. What is the benefit of using public/private key authentication?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The ping command can be used to verify connectivity to another host.
The lftp command can be used on a client to test FTP server connections.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
41. What command can you use to view system processes and their CPU usage?
Use the ps command to view processes and their CPU usage.
chcon
load balancing and redundancy benefits
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.
42. How would you disable SELinux protection for NFS - allowing shares to be read/write?
The smbpasswd command is used to create Samba users.
Use the yum groupinstall command to install multiple packages in a single group at once.
setsebool -P nfs_export_all_rw=1
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
43. There are four types of DNS servers. Name them.
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.
The four types of DNS servers are master - slave - caching-only - and forwarding.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
Use the resize2fs command to grow a file system.
44. 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...
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
By defining a %post section - you can run scripts after a kickstart installation is complete.
have the same effect
user's home directory in the /etc/skel directory
45. What command is used to show all services being controlled by the xinetd daemon?
A virtual host is a way of hosting multiple sites using a single IP address.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
have the same effect
chkconfig xinetd --list
46. What command can you use to view mounted Samba shares?
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.
You add your action to the end of the /home/user01/.bashrc file.
The smbpasswd command is used to create Samba users.
The smbstatus command shows you currently mounted Samba resources.
47. What three commands can you use to help verify that the DNS server is functioning properly?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
service sshd statuts
The dig - host - and ping commands can be used to test DNS server functionality.
48. What benefit does a web proxy provide to your network?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The rndc utility provides a method for managing the DNS server remotely and securely.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
49. What command can you use to view NFS statistics?
Use the route command with the add option to create a static route.
The nfsstat command can be used to view NFS statistics.
service sshd statuts
You can use the authconfig-tui command or the authconfig command.
50. How would you install a group of packages all at a single time?
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 yum groupinstall command to install multiple packages in a single group at once.
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.
Use the route command with the add option to create a static route.