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 do you use to change the permissions on a file or directory - To change ownership?
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 can use the remove or erase options with yum to remove a package.
The rndc utility provides a method for managing the DNS server remotely and securely.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
2. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
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.
used for kickstart and/or network installs
repquota
A user's home directory is created under the /home directory.
3. A slave DNS server provides...
defining a %pre section although it is rarely used
The anonymous_enable=YES option in the main config file allows anonymous uploads.
load balancing and redundancy benefits
browseable option
4. What is a gateway used for on a network?
entering rescue mode and repairing the problem.
support for TCP Wrappers
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
5. What command can you use to create 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.
defining a %pre section although it is rarely used
You add your action to the end of the /home/user01/.bashrc file.
mkfs.ext4
6. By default - what is the path to a user's home directory?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. The portmap service was replaced by the ______________ in Red Hat Enterprise Linux 6.
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.
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.
rpcbind service
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
8. What port does the rndc utility listen on by default?
DNS uses port 53.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
By default - the rndc utility listens on port 953.
Enforcing during installation
9. How can you verify the status of the SSH service after the system has booted?
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
Sendmail
service sshd statuts
The vsftpd package is used to install an FTP server.
10. What is NAT - How is it used?
service dhcpd configtest
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 partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
chkconfig xinetd --list
11. What is a swap? Is it created as a partition or device file?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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 user_list file can be used to limit which users have access to the FTP server.
The rndc utility provides a method for managing the DNS server remotely and securely.
12. What command can you use to monitor and troubleshoot network connections?
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.
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.
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
The tcpdump command is used to monitor network connections on different interfaces.
13. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
The four types of DNS servers are master - slave - caching-only - and forwarding.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
used for kickstart and/or network installs
14. 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
15. What command-line program can you use to check your mail?
createrepo
The four types of DNS servers are master - slave - caching-only - and forwarding.
Typing the mail or mutt command allows you to read mail from the command line.
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.
16. What command and option can you use to enable a service to start on boot?
browseable option
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
alternatives --config mta
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
17. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
used for kickstart and/or network installs
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.
SSH is used for secure remote management of Linux systems.
18. What critical step must you take after updating the kernel to a newer version?
Use the top command to view CPU and memory usage.
The smbpasswd command is used to create Samba users.
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
19. What is the virsh command used for?
The virsh command is used to manage virtual guests.
user's home directory in the /etc/skel directory
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.
The tcpdump command is used to monitor network connections on different interfaces.
20. What command is used to create an RPM package?
support for TCP Wrappers
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
rpmbuild
amount of RAM
21. What command can you use to create your own repositories?
createrepo
A user's home directory is created under the /home directory.
getfacl
The mount command lists all currently mounted file systems.
22. What file is used to maintain custom parameters for the kernel during system boot?
chkconfig xinetd --list
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
23. What command can you use to create a password-protected page?
VNC is used to control a remote desktop session.
The htpasswd command can be used to password-protect a web page.
Sendmail
A virtual host is a way of hosting multiple sites using a single IP address.
24. Can you name the two commands that can be used to view the free space on the system?
A user's home directory is created under the /home directory.
load balancing and redundancy benefits
Sendmail
The du and df commands are used to view available space on the system.
25. How can you check the currently mounted file systems?
By default - the rndc utility listens on port 953.
chcon
LUKS encryption
The mount command lists all currently mounted file systems.
26. How can virtual hosts be used?
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
27. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
By default - Squid runs on port 3128.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
user's home directory in the /etc/skel directory
28. 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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
schedule one-time-only jobs
rpcbind service
29. Red Hat Enterprise Linux 6 is the only version that officially supports _______
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.
halts the 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.
LUKS encryption
30. Most boot issues can be resolved by...
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.
entering rescue mode and repairing the problem.
The dig - host - and ping commands can be used to test DNS server functionality.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
31. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
getfacl
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.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
alternatives --config mta
32. How would you view all Boolean options for the HTTP service?
load balancing and redundancy benefits
Using the chcon command - you can change the context of a file to work with Apache.
getsebool -a | grep http
The lftp command can be used on a client to test FTP server connections.
33. Do you need to write changes to the disk when using the parted command? What about fdisk?
schedule one-time-only jobs
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Enforcing during installation
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.
34. There are four types of DNS servers. Name them.
The nfsstat command can be used to view NFS statistics.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The two main config files are master.cf and main.cf.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
35. 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
36. What are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
alternatives --config mta
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 lastlog and faillog commands are used to view user login-related events?
37. What does the testparm command do?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
38. What is the name of the package that allows you to install VNC?
load balancing and redundancy benefits
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.
Using the chcon command - you can change the context of a file to work with Apache.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
39. What command displays your current interfaces and IP address?
The lftp command can be used on a client to test FTP server connections.
The three utilities are: route - ping - and nslookup.
ifconfig
By default - Squid runs on port 3128.
40. What option is used to allow anonymous uploads to the FTP server?
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
The virsh command is used to manage virtual guests.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
41. What are the two types of back-end authentication mechanisms discussed in this chapter?
The ping command can be used to verify connectivity to another host.
Use the route command with the add option to create a static route.
This chapter described tdbsm and smbpasswd back-end authentication.
Use the resize2fs command to grow a file system.
42. Which version of SSH should you use?
Use the route command with the add option to create a static route.
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
Version 2 is the latest and most secure version of SSH.
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
43. What three components are needed to fully automate a kickstart installation?
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the ps command to view processes and their CPU usage.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
44. What is the /etc/vsftpd/user_list file used for?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
The user_list file can be used to limit which users have access to the FTP server.
45. How would you install a group of packages all at a single time?
The service command is used to start - stop - and manage system services.
Use the yum groupinstall command to install multiple packages in a single group at once.
getsebool
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. What happens if you call the command from question 3 with the -c option after it has already been run?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The three utilities are: route - ping - and nslookup.
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 /etc/fstab file.
47. What is SSH used for?
chcon
By default - Squid runs on port 3128.
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
SSH is used for secure remote management of Linux systems.
48. Samba servers can...
Network installations can be performed using the HTTP - FTP - and NFS protocols.
serve both files and printers to users
Enforcing during installation
Use the route command with the add option to create a static route.
49. What port does NFS use by default?
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.
The rndc utility provides a method for managing the DNS server remotely and securely.
The NFS service uses TCP port 2049 by default.
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.
50. To grow a file system
Use the ps command to view processes and their CPU usage.
The SMTP service runs on TCP port 110.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Use the resize2fs command to grow a file system.