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 port on the firewall needs to be open for the TFTP server to work?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
The TFTP server uses UDP port 69.
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.
Use the ps command to view processes and their CPU usage.
2. What command can you use to view system processes and their CPU usage?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The mount command lists all currently mounted file systems.
Use the ps command to view processes and their CPU usage.
you have access to the correct packages or repositories.
3. What command can you use to manage system services?
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 service command is used to start - stop - and manage system services.
The virsh command is used to manage virtual guests.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
4. You must dictate the ____________ you want allocated to your virtual machine when you create it.
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.
The dig - host - and ping commands can be used to test DNS server functionality.
The vsftpd package is used to install an FTP server.
amount of RAM
5. What are the two config files for Postfix called?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The two main config files are master.cf and main.cf.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
6. What command can you use to create a file system?
The vsftpd package is used to install an FTP server.
generates errors under Red Hat Enterprise Linux 6
chkconfig—list
mkfs.ext4
7. By default - what is the path to a user's home directory?
8. What is the virsh command used for?
halts the system
The virsh command is used to manage virtual guests.
lvdisplay
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
9. To export directories as resources - what file needs to be edited?
10. What command displays your current interfaces and IP address?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
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.
ifconfig
11. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
alternatives --config mta
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.
service sshd statuts
schedule one-time-only jobs
12. 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.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
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.
SELinux provides enhanced granular security for the Linux operating system.
13. The at command is used to ____________. The cron service handles reoccurring system jobs.
Enforcing during installation
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.
schedule one-time-only jobs
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.
14. What option needs to be used with the mount command to mount an NFS resource?
The -t nfs option is used with the mount command to mount NFS resources.
Use the top command to view CPU and memory usage.
chkconfig sshd off
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
15. What is the name of the package used to install an FTP?
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 vsftpd package is used to install an FTP server.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
The smbpasswd command is used to create Samba users.
16. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
LUKS encryption
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.
Apache uses port 80 for HTTP and port 443 for HTTPS.
17. Through its main config file - SSH can be configured to...
18. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
Use the setgid flag to create the appropriate permissions (chmod 2770).
You add your action to the end of the /home/user01/.bashrc file.
SSH is used for secure remote management of Linux systems.
19. 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>.
Use the top command to view CPU and memory usage.
have the same effect
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
20. What is NAT - How is it used?
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.
semanage boolean -l
atq
choose which mode you'd like it to operate in
21. What is the name of the section used to run scripts after a kickstart installation?
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.
setsebool -P nfs_export_all_rw=1
By defining a %post section - you can run scripts after a kickstart installation is complete.
LUKS encryption
22. What client-side command can you use to test your FTP server connection?
For Apache to run a secure site - the mod_ssl package is required to be installed.
service sshd statuts
browseable option
The lftp command can be used on a client to test FTP server connections.
23. What command and option do you use to view the description of Boolean values?
semanage boolean -l
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Typing the mail or mutt command allows you to read mail from the command line.
The virsh command is used to manage virtual guests.
24. Before you work with quotas - what do you need to do to the file system?
cat /proc/mdstat
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
25. What command can you use to view NFS statistics?
Apache uses port 80 for HTTP and port 443 for HTTPS.
enabled by default
amount of RAM
The nfsstat command can be used to view NFS statistics.
26. What option is used to allow anonymous uploads to the FTP server?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
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.
27. What command can you use to change the context of files?
The vsftpd package is used to install an FTP server.
chkconfig xinetd --list
chcon
The nfsstat command can be used to view NFS statistics.
28. A service needs to have _______________ to be able to use it.
Enforcing during installation
support for TCP Wrappers
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
service sshd statuts
29. What is the top command used for?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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 have access to the correct packages or repositories.
Use the top command to view CPU and memory usage.
30. To grow a file system
Use the resize2fs command to grow a file system.
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
chcon
support for TCP Wrappers
31. Are additional packages besides httpd required for a secure website - If so - what are they?
The lastlog and faillog commands are used to view user login-related events?
getsebool
service dhcpd configtest
For Apache to run a secure site - the mod_ssl package is required to be installed.
32. How would you go about creating a static route?
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 superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
getsebool -a | grep http
Use the route command with the add option to create a static route.
33. What does virsh reboot Client04 do?
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.
This chapter described tdbsm and smbpasswd back-end authentication.
The rndc utility provides a method for managing the DNS server remotely and securely.
This command reboots virtual guest Client04.
34. A slave DNS server provides...
load balancing and redundancy benefits
getfacl
lvdisplay
You add your action to the end of the /home/user01/.bashrc file.
35. What command can you use to monitor and troubleshoot network connections?
You can use the authconfig-tui command or the authconfig command.
generates errors under Red Hat Enterprise Linux 6
The tcpdump command is used to monitor network connections on different interfaces.
getfacl
36. What command can be used to view the queue for at service jobs?
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The lastlog and faillog commands are used to view user login-related events?
The du and df commands are used to view available space on the system.
atq
37. What command can you use to get information about logical volumes?
By default - the rndc utility listens on port 953.
lvdisplay
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.
By defining a %post section - you can run scripts after a kickstart installation is complete.
38. 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...
39. What is the difference between an A record and a PTR record?
The yum and rpm commands are used for package management.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
service dhcpd configtest
Enforcing during installation
40. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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 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
Use the top command to view CPU and memory usage.
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.
41. What command is used to create a user for Samba?
By default - Squid runs on port 3128.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
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.
42. What is the biggest benefit to using LVM over basic partitions?
repquota
VNC is used to control a remote desktop session.
The two main config files are master.cf and main.cf.
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.
43. What port does NFS use by default?
alternatives --config mta
The NFS service uses TCP port 2049 by default.
you have access to the correct packages or repositories.
serve both files and printers to users
44. What is a gateway used for on a network?
service httpd configtest
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
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.
Enforcing during installation
45. Samba servers can...
serve both files and printers to users
Use the setgid flag to create the appropriate permissions (chmod 2770).
The smbstatus command shows you currently mounted Samba resources.
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
46. The ____________ is available for each share.
browseable option
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
chkconfig—list
47. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
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
Use the resize2fs command to grow a file system.
Use the ps command to view processes and their CPU usage.
You add your action to the end of the /home/user01/.bashrc file.
48. Explain the difference between soft and hard limits in quotas.
49. How can you list all services on the system to tell whether they will boot during startup?
This command reboots virtual guest Client04.
service sshd statuts
chkconfig—list
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.
50. What file is used to maintain custom parameters for the kernel during system boot?
support for TCP Wrappers
mkfs.ext4
halts the system
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.