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 protocols are used with Dovecot?
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
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The virsh command is used to manage virtual guests.
via the command line
2. How can you display all virtual guests after they're connected to a hypervisor?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
This chapter described tdbsm and smbpasswd back-end authentication.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
3. What command can you use to get information about logical volumes?
cat /proc/mdstat
halts the system
lvdisplay
The /var/log/audit/audit.log file contains all policy violations.
4. What command can you use to create a file system?
mkfs.ext4
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.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The dig - host - and ping commands can be used to test DNS server functionality.
5. 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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The smbstatus command shows you currently mounted Samba resources.
getsebool
6. What are the side effects of shrinking a volume group or logical volume?
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.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
The smbpasswd command is used to create Samba users.
schedule one-time-only jobs
7. What port does the Apache web server run on - What about HTTPS?
amount of RAM
Apache uses port 80 for HTTP and port 443 for HTTPS.
enabled by default
Use the top command to view CPU and memory usage.
8. What does the partprobe command do?
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 rndc utility provides a method for managing the DNS server remotely and securely.
Sendmail
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
9. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The /etc/fstab file.
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
10. What command can you use to query information from the kernel about RAID arrays?
service named configtest
cat /proc/mdstat
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.
run on any port you'd like (provided that port is available)
11. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
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 lftp command can be used on a client to test FTP server connections.
Use the route command with the add option to create a static route.
12. 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.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The rndc utility provides a method for managing the DNS server remotely and securely.
lvdisplay
13. What option would you use to query an installed package using the rpm command?
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
14. 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.
A user's home directory is created under the /home directory.
The /var/log/audit/audit.log file contains all policy violations.
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.
15. 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
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
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.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
16. What option at the GRUB boot menu can you use to append something to a kernel?
LUKS encryption
The anonymous_enable=YES option in the main config file allows anonymous uploads.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
kickstart installations to work
17. What is a swap? Is it created as a partition or device 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.
chkconfig—list
SELinux Booleans provide restrictions to different aspects of a service.
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.
18. Samba servers can...
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
serve both files and printers to users
19. What command can you use to change the context of files?
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.
chcon
The nfsstat command can be used to view NFS statistics.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
20. What command do you use to change the permissions on a file or directory - To change ownership?
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
serve both files and printers to users
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.
defining a %pre section although it is rarely used
21. Most boot issues can be resolved by...
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.
rpmbuild
The tcpdump command is used to monitor network connections on different interfaces.
entering rescue mode and repairing the problem.
22. The exportfs command is used to...
export one or all resources
The rndc utility provides a method for managing the DNS server remotely and securely.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
23. If you want a specific action to take place when user01 logs in to the system - which file would you edit?
halts the system
A user's home directory is created under the /home directory.
You add your action to the end of the /home/user01/.bashrc file.
SSH is used for secure remote management of Linux systems.
24. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
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
service named configtest
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.
defining a %pre section although it is rarely used
25. Runlevel 0 ___________. Runlevel 6 reboots the system.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
Use the ps command to view processes and their CPU usage.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
halts the system
26. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
The vsftpd package is used to install an FTP server.
The rndc utility provides a method for managing the DNS server remotely and securely.
Enforcing during installation
27. The firewall service is...
enabled by default
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 groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
repquota
28. 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
29. What command can you use to view NFS statistics?
The nfsstat command can be used to view NFS statistics.
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.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The smbstatus command shows you currently mounted Samba resources.
30. How can virtual hosts be used?
atq
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 file that stores usernames and their encrypted passwords is erased and replaced with a new file.
SSH is used for secure remote management of Linux systems.
31. What directory is used to represent the virtual file system created by the kernel?
The TFTP server uses UDP port 69.
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
atq
Enforcing during installation
32. 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
33. What options with the yum command would you use to remove a package?
You can use the remove or erase options with yum to remove a package.
Physical volumes - volume groups - and logical volumes.
Enforcing during installation
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.
34. What command do you use to report information on quota usage?
repquota
halts the system
SSH is used for secure remote management of Linux systems.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
35. 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.
Using the chcon command - you can change the context of a file to work with Apache.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
chkconfig xinetd --list
36. Which file contains all messages generated during installation that can be used for troubleshooting if the need arises?
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.
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
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.
DNS uses port 53.
37. What are the three modes in which the rpm command can operate?
Use the setgid flag to create the appropriate permissions (chmod 2770).
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
The nfsstat command can be used to view NFS statistics.
The rpm command can operate in install - query - or verify modes.
38. What is a virtual host?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The lastlog and faillog commands are used to view user login-related events?
useradd -c "Jr Admin" George
A virtual host is a way of hosting multiple sites using a single IP address.
39. What is the name of the section used to run scripts after a kickstart installation?
choose which mode you'd like it to operate in
have the same effect
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
By defining a %post section - you can run scripts after a kickstart installation is complete.
40. What command can be used to view the queue for at service jobs?
The smbpasswd command is used to create Samba users.
LUKS encryption
atq
The /var/log/audit/audit.log file contains all policy violations.
41. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
generates errors under Red Hat Enterprise Linux 6
Network installations can be performed using the HTTP - FTP - and NFS protocols.
setsebool -P nfs_export_all_rw=1
The four types of DNS servers are master - slave - caching-only - and forwarding.
42. What command (and options) can be used to create a user named George with the description "Jr Admin"?
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
useradd -c "Jr Admin" George
DNS uses port 53.
43. What are the three different types of RAID described in this chapter?
entering rescue mode and repairing the problem.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The three utilities are: route - ping - and nslookup.
DNS uses port 53.
44. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
Use the yum groupinstall command to install multiple packages in a single group at once.
The htpasswd command can be used to password-protect a web page.
generates errors under Red Hat Enterprise Linux 6
45. What is the rndc utility used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The rndc utility provides a method for managing the DNS server remotely and securely.
By default - Squid runs on port 3128.
service httpd configtest
46. There are four types of DNS servers. Name them.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The four types of DNS servers are master - slave - caching-only - and forwarding.
The user_list file can be used to limit which users have access to the FTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
47. What command can you use to manage system services?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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 service command is used to start - stop - and manage system services.
The du and df commands are used to view available space on the system.
48. Red Hat Enterprise Linux 6 is the only version that officially supports _______
Using the chcon command - you can change the context of a file to work with Apache.
getfacl
LUKS encryption
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
49. How can you change the security context of a directory to work with Apache?
You add your action to the end of the /home/user01/.bashrc file.
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.
Using the chcon command - you can change the context of a file to work with Apache.
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
50. What command can you use to validate the syntax of the Apache config file?
kickstart installations to work
service httpd configtest
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The yum and rpm commands are used for package management.