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-line program can you use to check your mail?
Typing the mail or mutt command allows you to read mail from the command line.
Sendmail
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
2. What command displays your current interfaces and IP address?
Use the ps command to view processes and their CPU usage.
entering rescue mode and repairing the problem.
ifconfig
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.
3. What is the xinetd service used for?
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 xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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.
Physical volumes - volume groups - and logical volumes.
4. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
support for TCP Wrappers
LUKS encryption
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
5. How can you check the currently mounted file systems?
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The mount command lists all currently mounted file systems.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
You must open TCP ports 20 and 21 for the FTP server to function properly.
6. The firewall service is...
ifconfig
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
enabled by default
The yum and rpm commands are used for package management.
7. What command can you use to create a password-protected page?
chkconfig xinetd --list
The DHCP server listens on port 67 by default.
The htpasswd command can be used to password-protect a web page.
SELinux provides enhanced granular security for the Linux operating system.
8. What command do you use to report information on quota usage?
repquota
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 ping command can be used to verify connectivity to another host.
browseable option
9. Explain the difference between soft and hard limits in quotas.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
10. Most boot issues can be resolved by...
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.
Enforcing during installation
entering rescue mode and repairing the problem.
Physical volumes - volume groups - and logical volumes.
11. What command do you use to change the permissions on a file or directory - To change ownership?
The du and df commands are used to view available space on the system.
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.
atq
DNS uses port 53.
12. A service needs to have _______________ to be able to use it.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
support for TCP Wrappers
chkconfig sshd off
Enforcing during installation
13. Before you work with ACLs - what do you need to do to the file system?
Use the yum groupinstall command to install multiple packages in a single group at once.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
You can use the remove or erase options with yum to remove a package.
By default - Squid runs on port 3128.
14. 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
Enforcing during installation
semanage boolean -l
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
15. How would you install a group of packages all at a single time?
browseable option
Use the yum groupinstall command to install multiple packages in a single group at once.
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/dhcp/dhcpd.conf file is the main config file for the DHCP service.
16. What two commands are used for package management?
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
export one or all resources
The yum and rpm commands are used for package management.
The -t nfs option is used with the mount command to mount NFS resources.
17. What command is used to change the mail server from Sendmail to Postfix (useful only if you have both installed)?
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
alternatives --config mta
You add your action to the end of the /home/user01/.bashrc file.
18. What is the name of the package that allows you to install VNC?
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 /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
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.
19. What are the three modes in which the rpm command can operate?
The rpm command can operate in install - query - or verify modes.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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.
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.
20. What command can you use to view system processes and their CPU usage?
export one or all resources
The SMTP service runs on TCP port 110.
Use the ps command to view processes and their CPU usage.
enabled by default
21. SSH does...
support TCP Wrappers
chkconfig—list
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
ifconfig
22. 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
23. What are the three items that make up LVM?
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.
SELinux Booleans provide restrictions to different aspects of a service.
Physical volumes - volume groups - and logical volumes.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
24. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
The four types of DNS servers are master - slave - caching-only - and forwarding.
used for kickstart and/or network installs
Use the yum groupinstall command to install multiple packages in a single group at once.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
25. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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.
atq
Apache uses port 80 for HTTP and port 443 for HTTPS.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
26. What port does the DHCP server listen on by default?
repquota
The DHCP server listens on port 67 by default.
The lastlog and faillog commands are used to view user login-related events?
enabled by default
27. What is NAT - How is it used?
alternatives --config mta
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The two main config files are master.cf and main.cf.
28. What file is used to maintain custom parameters for the kernel during system boot?
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
Use the setgid flag to create the appropriate permissions (chmod 2770).
alternatives --config mta
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
29. What command can you use to get information about logical volumes?
SELinux provides enhanced granular security for the Linux operating system.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
have the same effect
lvdisplay
30. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
rpcbind service
generates errors under Red Hat Enterprise Linux 6
You can use the remove or erase options with yum to remove a package.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
31. What command disables the SSH service from running when the system boots?
cat /proc/mdstat
getsebool
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
chkconfig sshd off
32. What command can be used to easily list all the options in the FTP main config file?
used for kickstart and/or network installs
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 grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
33. What protocols are used with Dovecot?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
service httpd configtest
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Use the route command with the add option to create a static route.
34. What two commands are special for dealing with user login events?
halts the system
The lastlog and faillog commands are used to view user login-related events?
The user_list file can be used to limit which users have access to the FTP server.
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.
35. What are the side effects of shrinking a volume group or logical volume?
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
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.
Use the resize2fs command to grow a file system.
Enforcing during installation
36. How would you view all Boolean options for the HTTP service?
defining a %pre section although it is rarely used
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
you have access to the correct packages or repositories.
getsebool -a | grep http
37. What does the partprobe command do?
The file that stores usernames and their encrypted passwords is erased and replaced with a new 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 mount command lists all currently mounted file systems.
You can use the remove or erase options with yum to remove a package.
38. Samba servers can...
The DHCP server listens on port 67 by default.
The three utilities are: route - ping - and nslookup.
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.
serve both files and printers to users
39. What is the difference between an ext2 and ext3 file system?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
40. To grow a file system
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.
You can use the remove or erase options with yum to remove a package.
Use the resize2fs command to grow a file system.
schedule one-time-only jobs
41. What critical step must you take after updating the kernel to a newer version?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
By default - the rndc utility listens on port 953.
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.
Use the top command to view CPU and memory usage.
42. What command can you use to view the current ACL on a file?
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 -t nfs option is used with the mount command to mount NFS resources.
getfacl
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
43. 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 nfsstat command can be used to view NFS statistics.
kickstart installations to work
The vsftpd package is used to install an FTP server.
44. What command (and options) can be used to create a user named George with the description "Jr Admin"?
chkconfig sshd off
semanage boolean -l
useradd -c "Jr Admin" George
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
45. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
defining a %pre section although it is rarely used
46. What option would you use to query an installed package using the rpm command?
This command reboots virtual guest Client04.
browseable option
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers 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.
47. Which log file is used to keep track of policy violations?
generates errors under Red Hat Enterprise Linux 6
The /var/log/audit/audit.log file contains all policy violations.
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.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
48. What is the format of the /etc/shadow file?
via the command line
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 format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
entering rescue mode and repairing the problem.
49. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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.
halts the system
50. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
Sendmail
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.
The ping command can be used to verify connectivity to another host.
A virtual host is a way of hosting multiple sites using a single IP address.