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. Where are Yum repository config files located?
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
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.
2. What command (and options) can be used to create a user named George with the description "Jr Admin"?
useradd -c "Jr Admin" George
service httpd configtest
Sendmail
The lastlog and faillog commands are used to view user login-related events?
3. 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...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
4. How can you display all virtual guests after they're connected to a hypervisor?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The SMTP service runs on TCP port 110.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
schedule one-time-only jobs
5. Most boot issues can be resolved by...
Enforcing during installation
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 virsh command is used to manage virtual guests.
entering rescue mode and repairing the problem.
6. In Red Hat Enterprise Linux 6 - the default for SELinux is _______________ (which can be changed after the installation completes). For Red Hat Enterprise Linux 5 - you were able to choose what mode you wanted SELinux to start in.
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.
Enforcing during installation
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.
entering rescue mode and repairing the problem.
7. What option at the GRUB boot menu can you use to append something to a kernel?
alternatives --config mta
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
getsebool -a | grep http
The du and df commands are used to view available space on the system.
8. Which remote management service is installed by default?Can you name the port that it uses?
Version 2 is the latest and most secure version of SSH.
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.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
ifconfig
9. What protocols are used with Dovecot?
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.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
Use the resize2fs command to grow a file system.
10. What are the three items that make up LVM?
Physical volumes - volume groups - and logical volumes.
lvdisplay
rpmbuild
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
11. What options with the yum command would you use to remove a package?
The DHCP server listens on port 67 by default.
have the same effect
You can use the remove or erase options with yum to remove a package.
you have access to the correct packages or repositories.
12. What is the superblock used for?
This chapter described tdbsm and smbpasswd back-end authentication.
Use the yum groupinstall command to install multiple packages in a single group at once.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
13. What option needs to be used with the mount command to mount an NFS resource?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The -t nfs option is used with the mount command to mount NFS 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.
14. What client-side command can you use to test your FTP server connection?
Use the setgid flag to create the appropriate permissions (chmod 2770).
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
semanage boolean -l
The lftp command can be used on a client to test FTP server connections.
15. The package selection screen allows you to install any software you want during the installation process as long as...
you have access to the correct packages or repositories.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The user_list file can be used to limit which users have access to the FTP server.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
16. What port does the DHCP server listen on by default?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
You can use the remove or erase options with yum to remove a package.
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 DHCP server listens on port 67 by default.
17. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
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 yum and rpm commands are used for package management.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
load balancing and redundancy benefits
18. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The two main config files are master.cf and main.cf.
useradd -c "Jr Admin" George
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.
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.
19. How would you install a group of packages all at a single time?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
Sendmail
Use the yum groupinstall command to install multiple packages in a single group at once.
20. Can you name the two commands that can be used to view the free space on the system?
The TFTP server uses UDP port 69.
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 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 du and df commands are used to view available space on the system.
21. What is the /var/lib/nfs/etab file used for?
Using the chcon command - you can change the context of a file to work with Apache.
support for TCP Wrappers
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
getfacl
22. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
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.
export one or all resources
cat /proc/mdstat
23. 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
24. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
chcon
LUKS encryption
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
25. What is the biggest benefit to using LVM over basic partitions?
Use the yum groupinstall command to install multiple packages in a single group at once.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
support for TCP Wrappers
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.
26. What is the xinetd service used for?
You must open TCP ports 20 and 21 for the FTP server to function properly.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
chkconfig xinetd --list
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
27. Are additional packages besides httpd required for a secure website - If so - what are they?
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.
rpcbind service
For Apache to run a secure site - the mod_ssl package is required to be installed.
The /etc/fstab file.
28. FTP is one of three protocols ______________. The other two protocols are NFS and HTTP.
A virtual host is a way of hosting multiple sites using a single IP address.
Use the yum groupinstall command to install multiple packages in a single group at once.
used for kickstart and/or network installs
Use the top command to view CPU and memory usage.
29. 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
30. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
DNS uses port 53.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
SELinux Booleans provide restrictions to different aspects of a service.
By default - Squid runs on port 3128.
31. What command can you use to change the context of files?
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
chcon
DNS uses port 53.
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.
32. How do you run a command with elevated privileges?
Using the chcon command - you can change the context of a file to work with Apache.
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 /var/log/audit/audit.log file contains all policy violations.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
33. What port must be opened on the firewall for DNS?
DNS uses port 53.
By defining a %post section - you can run scripts after a kickstart installation is complete.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
The DHCP server listens on port 67 by default.
34. Which log file is used to keep track of policy violations?
defining a %pre section although it is rarely used
Physical volumes - volume groups - and logical volumes.
via the command line
The /var/log/audit/audit.log file contains all policy violations.
35. Before you work with ACLs - what do you need to do to the file system?
chkconfig sshd off
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The du and df commands are used to view available space on the system.
36. What two ports should be opened on the firewall for the FTP server to function properly?
You must open TCP ports 20 and 21 for the FTP server to function properly.
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
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.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
37. To create a RAID or LVM partition using kickstart
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Kickstart supports both basic and advanced partitioning (RAID/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.
The smbpasswd command is used to create Samba users.
38. What command and option do you use to view the description of Boolean values?
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.
schedule one-time-only jobs
semanage boolean -l
39. What is the name of the package used to install an FTP?
The vsftpd package is used to install an FTP server.
serve both files and printers to users
run on any port you'd like (provided that port is available)
load balancing and redundancy benefits
40. The exportfs command is used to...
getsebool -a | grep http
export one or all resources
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
VNC is used to control a remote desktop session.
41. What critical step must you take after updating the kernel to a newer version?
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 ping command can be used to verify connectivity to another host.
Use the top command to view CPU and memory usage.
DNS uses port 53.
42. What is the name of the package that allows you to install VNC?
entering rescue mode and repairing the problem.
You can use the remove or erase options with yum to remove a package.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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. A PXE server eases the automation process but isn't required for...
cat /proc/mdstat
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
kickstart installations to work
The vsftpd package is used to install an FTP server.
44. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
halts the system
semanage boolean -l
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the 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.
45. To export directories as resources - what file needs to be edited?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
46. How can you verify the status of the SSH service after the system has booted?
service sshd statuts
By defining a %post section - you can run scripts after a kickstart installation is complete.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
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.
47. To grow a file system
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
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.
Use the resize2fs command to grow a file system.
repquota
48. What command can be used to easily list all the options in the FTP main config file?
chkconfig sshd off
lvdisplay
Apache uses port 80 for HTTP and port 443 for HTTPS.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
49. What command can you use to query information from the kernel about RAID arrays?
cat /proc/mdstat
The lastlog and faillog commands are used to view user login-related events?
used for kickstart and/or network installs
The anonymous_enable=YES option in the main config file allows anonymous uploads.
50. What is a swap? Is it created as a partition or device file?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The lastlog and faillog commands are used to view user login-related events?
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.