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 are the three items that make up LVM?
run on any port you'd like (provided that port is available)
Physical volumes - volume groups - and logical volumes.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
2. What is the virsh command used for?
The virsh command is used to manage virtual guests.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
createrepo
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
3. What two commands are used for package management?
Use the route command with the add option to create a static route.
support TCP Wrappers
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The yum and rpm commands are used for package management.
4. What is NAT - How is it used?
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 smbpasswd command is used to create Samba users.
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 service command is used to start - stop - and manage system services.
5. How can you list all services on the system to tell whether they will boot during startup?
lvdisplay
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
LUKS encryption
chkconfig—list
6. 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
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.
used for kickstart and/or network installs
The two main config files are master.cf and main.cf.
7. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The vsftpd package is used to install an FTP server.
used for kickstart and/or network installs
service dhcpd configtest
chkconfig sshd off
8. Which log file is used to keep track of policy violations?
This chapter described tdbsm and smbpasswd back-end authentication.
The SMTP service runs on TCP port 110.
The /var/log/audit/audit.log file contains all policy violations.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
9. What command can you use to query Boolean values?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
repquota
getsebool
rpmbuild
10. What command and options can you use to update the time?
By defining a %post section - you can run scripts after a kickstart installation is complete.
This chapter described tdbsm and smbpasswd back-end authentication.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
service httpd configtest
11. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
defining a %pre section although it is rarely used
alternatives --config mta
The service command is used to start - stop - and manage system services.
12. What is the main config file for the DHCP service?
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.
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
13. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
entering rescue mode and repairing the problem.
alternatives --config mta
Enforcing during installation
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
14. A service needs to have _______________ to be able to use it.
amount of RAM
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
cat /proc/mdstat
support for TCP Wrappers
15. What are SELinux Booleans?
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/dhcp/dhcpd.conf file is the main config file for the DHCP service.
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
SELinux Booleans provide restrictions to different aspects of a service.
16. What is the format of the /etc/shadow file?
By defining a %post section - you can run scripts after a kickstart installation is complete.
ifconfig
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
17. What command can be used to easily list all the options in the FTP main config file?
service httpd configtest
repquota
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
Enforcing during installation
18. What command can you use to create a file system?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The tcpdump command is used to monitor network connections on different interfaces.
mkfs.ext4
getsebool -a | grep http
19. What command can you use to validate the syntax of the Apache config file?
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
By default - Squid runs on port 3128.
service httpd configtest
support for TCP Wrappers
20. What command can you use to view the current ACL on a file?
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.
getfacl
The DHCP server listens on port 67 by default.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
21. How would you view all Boolean options for the HTTP service?
getsebool -a | grep http
load balancing and redundancy benefits
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
you have access to the correct packages or repositories.
22. What port does NFS use by default?
The NFS service uses TCP port 2049 by default.
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.
lvdisplay
The print option is used with both the fdisk and parted commands to display the current partition tables.
23. What is the name of the package that allows you to install VNC?
ifconfig
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
kickstart installations to work
24. What is the default port that Squid runs on?
export one or all resources
By default - Squid runs on port 3128.
serve both files and printers to users
have the same effect
25. A PXE server eases the automation process but isn't required for...
getsebool -a | grep http
kickstart installations to work
The user_list file can be used to limit which users have access to the FTP server.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
26. What does virsh reboot Client04 do?
This command reboots virtual guest Client04.
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.
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.
You add your action to the end of the /home/user01/.bashrc file.
27. What is the rndc utility used for?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The rndc utility provides a method for managing the DNS server remotely and securely.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
28. What is PAM used for?
The dig - host - and ping commands can be used to test DNS server functionality.
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.
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.
export one or all resources
29. What are the side effects of shrinking a volume group or logical volume?
You can use the remove or erase options with yum to remove a package.
run on any port you'd like (provided that port is available)
The virsh command is used to manage virtual guests.
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.
30. What command disables the SSH service from running when the system boots?
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.
chkconfig sshd off
This command reboots virtual guest Client04.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
31. What is the superblock used for?
SELinux provides enhanced granular security for the Linux operating system.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
via the command line
export one or all resources
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 that stores usernames and their encrypted passwords is erased and replaced with a new file.
33. How can you change the security context of a directory to work with Apache?
The lastlog and faillog commands are used to view user login-related events?
By default - the rndc utility listens on port 953.
Using the chcon command - you can change the context of a file to work with Apache.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
34. Runlevel 0 ___________. Runlevel 6 reboots the system.
rpmbuild
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.
SELinux Booleans provide restrictions to different aspects of a service.
halts the system
35. What command can you use to test connectivity to another host?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the resize2fs command to grow a file system.
The ping command can be used to verify connectivity to another host.
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.
36. What is VNC?
defining a %pre section although it is rarely used
A user's home directory is created under the /home directory.
VNC is used to control a remote desktop session.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
37. What command is used to show all services being controlled by the xinetd daemon?
The SMTP service runs on TCP port 110.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The lftp command can be used on a client to test FTP server connections.
chkconfig xinetd --list
38. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
ifconfig
kickstart installations to work
mkfs.ext4
39. What command can you use to query information from the kernel about RAID arrays?
getsebool
run on any port you'd like (provided that port is available)
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
cat /proc/mdstat
40. What option would you use to query an installed package using the rpm command?
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.
user's home directory in the /etc/skel directory
Apache uses port 80 for HTTP and port 443 for HTTPS.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
41. The exportfs command is used to...
You can use the authconfig-tui command or the authconfig command.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
export one or all resources
semanage boolean -l
42. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
have the same effect
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.
alternatives --config mta
via the command line
43. What port must be opened on the firewall for DNS?
By default - Squid runs on port 3128.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
44. What command and option can you use to enable a service to start on boot?
The NFS service uses TCP port 2049 by default.
chkconfig sshd off
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
45. What is the point of using SELinux?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
SELinux provides enhanced granular security for the Linux operating system.
browseable option
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.
46. 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
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
enabled by default
service dhcpd configtest
47. Do you need to write changes to the disk when using the parted command? What about fdisk?
The service command is used to start - stop - and manage system services.
chkconfig xinetd --list
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.
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.
48. What is the xinetd service used for?
cat /proc/mdstat
via the command line
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
used for kickstart and/or network installs
49. Are additional packages besides httpd required for a secure website - If so - what are they?
For Apache to run a secure site - the mod_ssl package is required to be installed.
enabled by default
schedule one-time-only jobs
run on any port you'd like (provided that port is available)
50. 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 anonymous_enable=YES option in the main config file allows anonymous uploads.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.