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. How would you go about creating a static route?
The htpasswd command can be used to password-protect a web page.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Use the route command with the add option to create a static route.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
2. What command can be used to easily list all the options in the FTP main config file?
SELinux Booleans provide restrictions to different aspects of a service.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
choose which mode you'd like it to operate in
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
3. How do you run a command with elevated privileges?
service sshd statuts
Typing the mail or mutt command allows you to read mail from the command line.
A virtual host is a way of hosting multiple sites using a single IP address.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
4. What is the difference between an ext2 and ext3 file system?
5. What happens to jobs that are scheduled to run while the system is off?
Sendmail
Using the chcon command - you can change the context of a file to work with Apache.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
6. What commands can you use to add a client machine to an LDAP server?
You can use the authconfig-tui command or the authconfig command.
getsebool -a | grep http
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
The rpm command can operate in install - query - or verify modes.
7. Can you put your /boot partition on a RAID 5 array?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The tcpdump command is used to monitor network connections on different interfaces.
8. Before you work with quotas - what do you need to do to the file system?
Apache uses port 80 for HTTP and port 443 for HTTPS.
chkconfig—list
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The service command is used to start - stop - and manage system services.
9. What critical step must you take after updating the kernel to a newer version?
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
export one or all resources
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.
The DHCP server listens on port 67 by default.
10. To create a RAID or LVM partition using kickstart
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
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
defining a %pre section although it is rarely used
11. What port does the DHCP server listen on by default?
support for TCP Wrappers
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The DHCP server listens on port 67 by default.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
12. How can you verify the status of the SSH service after the system has booted?
Enforcing during installation
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
service sshd statuts
useradd -c "Jr Admin" George
13. What file is used to maintain custom parameters for the kernel during system boot?
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
VNC is used to control a remote desktop session.
SELinux provides enhanced granular security for the Linux operating system.
14. What option is used with both the fdisk and parted commands to display the current partition tables?
A virtual host is a way of hosting multiple sites using a single IP address.
generates errors under Red Hat Enterprise Linux 6
browseable option
The print option is used with both the fdisk and parted commands to display the current partition tables.
15. What file needs to be edited so that the system will mount a file system at boot time?
service named configtest
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
You add your action to the end of the /home/user01/.bashrc file.
The /etc/fstab file.
16. What are the three modes in which the rpm command can operate?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The print option is used with both the fdisk and parted commands to display the current partition tables.
The rpm command can operate in install - query - or verify modes.
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.
17. 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.
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 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.
18. What is SSH used for?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
19. What command displays your current interfaces and IP address?
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 anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
ifconfig
20. What directory is used to represent the virtual file system created by the kernel?
The three utilities are: route - ping - and nslookup.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
21. How can virtual hosts be used?
This chapter described tdbsm and smbpasswd back-end authentication.
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 tcpdump command is used to monitor network connections on different interfaces.
The ping command can be used to verify connectivity to another host.
22. What port does NFS use by default?
The rndc utility provides a method for managing the DNS server remotely and securely.
have the same effect
The NFS service uses TCP port 2049 by default.
The SMTP service runs on TCP port 110.
23. What command can you use to validate the syntax of the Apache config file?
chkconfig sshd off
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.
service httpd configtest
cat /proc/mdstat
24. Which remote management service is installed by default?Can you name the port that it uses?
via the command line
chkconfig sshd off
browseable option
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.
25. What is the format of the /etc/shadow file?
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
A virtual host is a way of hosting multiple sites using a single IP address.
Enforcing during installation
The smbstatus command shows you currently mounted Samba resources.
26. What command is used to create a user for Samba?
DNS uses port 53.
A virtual host is a way of hosting multiple sites using a single IP address.
mkfs.ext4
The smbpasswd command is used to create Samba users.
27. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
used for kickstart and/or network installs
Use the setgid flag to create the appropriate permissions (chmod 2770).
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The rpm command can operate in install - query - or verify modes.
28. What command can you use to query information from the kernel about RAID arrays?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The vsftpd package is used to install an FTP server.
rpcbind service
cat /proc/mdstat
29. What command can you use to manage system services?
schedule one-time-only jobs
The service command is used to start - stop - and manage system services.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
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.
30. The at command is used to ____________. The cron service handles reoccurring system jobs.
The nfsstat command can be used to view NFS statistics.
The NFS service uses TCP port 2049 by default.
schedule one-time-only jobs
The du and df commands are used to view available space on the system.
31. What is the virsh command used for?
The virsh command is used to manage virtual guests.
Using the chcon command - you can change the context of a file to work with Apache.
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
rpmbuild
32. What option would you use to query an installed package using the rpm command?
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.
support for TCP Wrappers
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
33. How can you check the currently mounted file systems?
The mount command lists all currently mounted file systems.
service named configtest
serve both files and printers to users
service dhcpd configtest
34. For Red Hat Enterprise Linux 6 - SELinux comes set up in enforcing mode. When installing Red Hat Enterprise Linux 5 - you have the option to...
35. By default - what is the path to a user's home directory?
36. To grow a file system
You can use the authconfig-tui command or the authconfig command.
You must open TCP ports 20 and 21 for the FTP server to function properly.
Use the resize2fs command to grow a file system.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
37. What options with the yum command would you use to remove a package?
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.
The user_list file can be used to limit which users have access to the FTP server.
You can use the remove or erase options with yum to remove a package.
atq
38. What is the name of the package used to install an FTP?
You add your action to the end of the /home/user01/.bashrc file.
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 vsftpd package is used to install an FTP server.
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.
39. There are four types of DNS servers. Name them.
The three utilities are: route - ping - and nslookup.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The four types of DNS servers are master - slave - caching-only - and forwarding.
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.
40. What command disables the SSH service from running when the system boots?
chkconfig sshd off
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 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
41. What command and options can you use to update the time?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
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.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
42. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The smbstatus command shows you currently mounted Samba resources.
A virtual host is a way of hosting multiple sites using a single IP address.
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.
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.
43. Red Hat Enterprise Linux 6 is the only version that officially supports _______
The tcpdump command is used to monitor network connections on different interfaces.
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.
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.
LUKS encryption
44. What are the three different types of RAID described in this chapter?
cat /proc/mdstat
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the resize2fs command to grow a file system.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
45. Through its main config file - SSH can be configured to...
46. Which file shows you all the client IP addresses?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The user_list file can be used to limit which users have access to the FTP server.
setsebool -P nfs_export_all_rw=1
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
47. What command can you use to view system processes and their CPU usage?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
Use the ps command to view processes and their CPU usage.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
48. Explain the difference between soft and hard limits in quotas.
49. What command would you use to create a group - to add the user George to the group?
service httpd configtest
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
ifconfig
50. What command can you use to create a new SSL certificate?
Typing the mail or mutt command allows you to read mail from the command line.
ifconfig
The /etc/fstab file.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.