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 command can you use to view the current ACL on a file?
Use the yum groupinstall command to install multiple packages in a single group at once.
getfacl
A user's home directory is created under the /home directory.
amount of RAM
2. What is the main config file for the DHCP service?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
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 TFTP server uses UDP port 69.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
3. What command and options can you use to update the time?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The virsh command is used to manage virtual guests.
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.
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.
4. What is the rndc utility used for?
kickstart installations to work
atq
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 rndc utility provides a method for managing the DNS server remotely and securely.
5. What option would you use to query an installed package using the rpm command?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
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.
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 command disables the SSH service from running when the system boots?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
chkconfig sshd off
7. What is the top command used for?
Use the top command to view CPU and memory usage.
The tcpdump command is used to monitor network connections on different interfaces.
Enforcing during installation
The du and df commands are used to view available space on the system.
8. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
run on any port you'd like (provided that port is available)
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
9. What is the xinetd service used for?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
A user's home directory is created under the /home directory.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
10. What is a virtual host?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
A virtual host is a way of hosting multiple sites using a single IP address.
The three utilities are: route - ping - and nslookup.
11. How would you view all Boolean options for the HTTP service?
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
service sshd statuts
getsebool -a | grep http
12. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
By default - Squid runs on port 3128.
cat /proc/mdstat
entering rescue mode and repairing the problem.
13. What is a swap? Is it created as a partition or device file?
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.
Enforcing during installation
rpmbuild
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.
14. What does the testparm command do?
Use the setgid flag to create the appropriate permissions (chmod 2770).
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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
15. Samba servers can...
serve both files and printers to users
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.
you have access to the correct packages or repositories.
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.
16. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
kickstart installations to work
Typing the mail or mutt command allows you to read mail from the command line.
Use the setgid flag to create the appropriate permissions (chmod 2770).
17. What does virsh reboot Client04 do?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
This command reboots virtual guest Client04.
18. What options with the yum command would you use to remove a package?
useradd -c "Jr Admin" George
load balancing and redundancy benefits
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
You can use the remove or erase options with yum to remove a package.
19. GRUB has three stages. Can you name them?
rpcbind service
The TFTP server uses UDP port 69.
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 vsftpd package is used to install an FTP server.
20. What command can you use to monitor and troubleshoot network connections?
Use the top command to view CPU and memory usage.
The tcpdump command is used to monitor network connections on different interfaces.
atq
Apache uses port 80 for HTTP and port 443 for HTTPS.
21. What two commands are special for dealing with user login events?
The lastlog and faillog commands are used to view user login-related events?
getsebool -a | grep http
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 service command is used to start - stop - and manage system services.
22. Can you name three utilities that can be used for network or DNS client troubleshooting?
service named configtest
The three utilities are: route - ping - and nslookup.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The smbstatus command shows you currently mounted Samba resources.
23. Can you put your /boot partition on a RAID 5 array?
chcon
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 /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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.
24. What two commands are used for package management?
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 yum and rpm commands are used for package management.
The mount command lists all currently mounted file systems.
SELinux Booleans provide restrictions to different aspects of a service.
25. There are four types of DNS servers. Name them.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
entering rescue mode and repairing the problem.
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 four types of DNS servers are master - slave - caching-only - and forwarding.
26. What is VNC?
generates errors under Red Hat Enterprise Linux 6
The user_list file can be used to limit which users have access to the FTP server.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
VNC is used to control a remote desktop session.
27. What command can you use to create your own repositories?
The lastlog and faillog commands are used to view user login-related events?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
For Apache to run a secure site - the mod_ssl package is required to be installed.
createrepo
28. How can you check the currently mounted file systems?
atq
Version 2 is the latest and most secure version of SSH.
The mount command lists all currently mounted file systems.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
29. The firewall service is...
defining a %pre section although it is rarely used
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.
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
enabled by default
30. What command-line program can you use to check your mail?
lvdisplay
Typing the mail or mutt command allows you to read mail from the command line.
load balancing and redundancy benefits
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
31. What benefit does a web proxy provide to your network?
The du and df commands are used to view available space on the system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
alternatives --config mta
The rpm command can operate in install - query - or verify modes.
32. What is SSH used for?
SSH is used for secure remote management of Linux systems.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
useradd -c "Jr Admin" George
33. How can you change the security context of a directory to work with Apache?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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
SSH is used for secure remote management of Linux systems.
Using the chcon command - you can change the context of a file to work with Apache.
34. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
This chapter described tdbsm and smbpasswd back-end authentication.
Enforcing during installation
halts the system
35. What command can you use to query Boolean values?
The mount command lists all currently mounted file systems.
getsebool -a | grep http
getsebool
support for TCP Wrappers
36. SSH does...
The rndc utility provides a method for managing the DNS server remotely and securely.
useradd -c "Jr Admin" George
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
support TCP Wrappers
37. What is PAM used for?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
createrepo
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.
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.
38. A PXE server eases the automation process but isn't required for...
atq
kickstart installations to work
The TFTP server uses UDP port 69.
enabled by default
39. What port on the firewall needs to be open for the TFTP server to work?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The TFTP server uses UDP port 69.
The three utilities are: route - ping - and nslookup.
getfacl
40. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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 dig - host - and ping commands can be used to test DNS server functionality.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
alternatives --config mta
41. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The du and df commands are used to view available space on the system.
The htpasswd command can be used to password-protect a web page.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
42. What is the difference between the update (-U) and install (-i) options when using rpm to update the kernel?
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.
DNS uses port 53.
service httpd configtest
Enforcing during installation
43. Before you work with quotas - what do you need to do to the file system?
DNS uses port 53.
The smbstatus command shows you currently mounted Samba resources.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
44. How would you disable SELinux protection for NFS - allowing shares to be read/write?
The rndc utility provides a method for managing the DNS server remotely and securely.
SELinux provides enhanced granular security for the Linux operating system.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
setsebool -P nfs_export_all_rw=1
45. What command can you use to check the config file of the DHCP server?
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
serve both files and printers to users
service dhcpd configtest
46. You must dictate the ____________ you want allocated to your virtual machine when you create it.
The smbstatus command shows you currently mounted Samba resources.
amount of RAM
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
service httpd configtest
47. How can virtual hosts be used?
alternatives --config mta
getsebool -a | grep http
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.
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.
48. 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.
You add your action to the end of the /home/user01/.bashrc file.
The tcpdump command is used to monitor network connections on different interfaces.
you have access to the correct packages or repositories.
49. Where are Yum repository config files located?
chkconfig xinetd --list
chcon
The vsftpd package is used to install an FTP server.
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.
50. What is the /etc/hosts file used for?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183