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 do you run a command with elevated privileges?
repquota
The ping command can be used to verify connectivity to another host.
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
LUKS encryption
2. Do you need to write changes to the disk when using the parted command? What about fdisk?
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
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.
atq
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 are the five required directories when building RPMS?
The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
used for kickstart and/or network installs
SELinux provides enhanced granular security for the Linux operating system.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
4. The package selection screen allows you to install any software you want during the installation process as long as...
You can use the authconfig-tui command or the authconfig command.
you have access to the correct packages or repositories.
The nfsstat command can be used to view NFS statistics.
Use the setgid flag to create the appropriate permissions (chmod 2770).
5. What is the name of the package used to install an FTP?
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.
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.
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 vsftpd package is used to install an FTP server.
6. 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.
useradd -c "Jr Admin" George
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
7. How would you disable SELinux protection for NFS - allowing shares to be read/write?
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.
LUKS encryption
This chapter described tdbsm and smbpasswd back-end authentication.
setsebool -P nfs_export_all_rw=1
8. What are the two config files for Postfix called?
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
The two main config files are master.cf and main.cf.
LUKS encryption
9. The default SMTP service has been changed from _________ to Postfix in Red Hat Enterprise Linux 6.
entering rescue mode and repairing the problem.
Sendmail
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
run on any port you'd like (provided that port is available)
10. Does a DHCP server allow reserved IP addresses - If so - how?
used for kickstart and/or network installs
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
load balancing and redundancy benefits
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
11. What commands can you use to add a client machine to an LDAP server?
SELinux provides enhanced granular security for the Linux operating system.
useradd -c "Jr Admin" George
You can use the authconfig-tui command or the authconfig command.
The ping command can be used to verify connectivity to another host.
12. What does the following firewall rule accomplish: iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT?
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.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The -t nfs option is used with the mount command to mount NFS resources.
The lastlog and faillog commands are used to view user login-related events?
13. Place all files you want added to a _______________ during creation.
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
14. How would you go about creating a static route?
support TCP Wrappers
The yum and rpm commands are used for package management.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Use the route command with the add option to create a static route.
15. What command do you use to change the permissions on a file or directory - To change ownership?
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.
ifconfig
SELinux provides enhanced granular security for the Linux operating system.
chkconfig sshd off
16. What is the difference between an A record and a PTR record?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
Sendmail
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
17. What are SELinux Booleans?
SELinux Booleans provide restrictions to different aspects of a service.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
The virsh command is used to manage virtual guests.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
18. What command can you use to monitor and troubleshoot network connections?
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
The tcpdump command is used to monitor network connections on different interfaces.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
support for TCP Wrappers
19. 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.
load balancing and redundancy benefits
The smbpasswd command is used to create Samba users.
SELinux Booleans provide restrictions to different aspects of a service.
20. What is the top command used for?
The two main config files are master.cf and main.cf.
Use the top command to view CPU and memory usage.
browseable option
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
21. What three protocols can you use to perform network installations?
Network installations can be performed using the HTTP - FTP - and NFS protocols.
The -t nfs option is used with the mount command to mount NFS resources.
The nfsstat command can be used to view NFS statistics.
repquota
22. It is possible to run scripts before a kickstart installation. This is done by...
The service command is used to start - stop - and manage system services.
defining a %pre section although it is rarely used
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The mount command lists all currently mounted file systems.
23. What port does NFS use by default?
service sshd statuts
schedule one-time-only jobs
The NFS service uses TCP port 2049 by default.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
24. What option at the GRUB boot menu can you use to append something to a kernel?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
load balancing and redundancy benefits
service named configtest
25. What two commands are used for package management?
The vsftpd package is used to install an FTP server.
SELinux Booleans provide restrictions to different aspects of a service.
The yum and rpm commands are used for package management.
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.
26. What protocols are used with Dovecot?
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
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 NFS service uses TCP port 2049 by default.
The /var/log/audit/audit.log file contains all policy violations.
27. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
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 four types of DNS servers are master - slave - caching-only - and forwarding.
The rndc utility provides a method for managing the DNS server remotely and securely.
28. What command can you use to get information about logical volumes?
lvdisplay
The vsftpd package is used to install an FTP server.
A user's home directory is created under the /home directory.
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.
29. What is the /var/lib/nfs/etab file used for?
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
A virtual host is a way of hosting multiple sites using a single IP address.
load balancing and redundancy benefits
Use the route command with the add option to create a static route.
30. What is the superblock used for?
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.
Use the resize2fs command to grow a file system.
The nfsstat command can be used to view NFS statistics.
31. What command can you use to view the current ACL on a file?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
cat /proc/mdstat
getsebool -a | grep http
getfacl
32. What is the xinetd service used for?
The NFS service uses TCP port 2049 by default.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
load balancing and redundancy benefits
alternatives --config mta
33. What command can you use to create a file system?
Use the ps command to view processes and their CPU usage.
This command reboots virtual guest Client04.
mkfs.ext4
Enforcing during installation
34. What does the testparm command do?
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
you have access to the correct packages or repositories.
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
35. What option can you change in the rsyslog config file to accept remote logs (acting as a centralized logging server)?
DNS uses port 53.
generates errors under Red Hat Enterprise Linux 6
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
36. What option is used with both the fdisk and parted commands to display the current partition tables?
setsebool -P nfs_export_all_rw=1
The print option is used with both the fdisk and parted commands to display the current partition tables.
getsebool
The htpasswd command can be used to password-protect a web page.
37. What does the rdnc-confgen command do?
The rndc utility provides a method for managing the DNS server remotely and securely.
The rdnc-confgen command generates an rndc.conf file for the rndc utility.
SELinux Booleans provide restrictions to different aspects of a service.
The du and df commands are used to view available space on the system.
38. What port does the SMTP service run on?
Enforcing during installation
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The SMTP service runs on TCP port 110.
The /etc/fstab file.
39. What command can you use to check the config file of the DHCP server?
VNC is used to control a remote desktop session.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
service dhcpd configtest
halts the system
40. What command can be used to easily list all the options in the FTP main config file?
semanage boolean -l
Typing the mail or mutt command allows you to read mail from the command line.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
serve both files and printers to users
41. What command would you use to create a group - to add the user George to the group?
getfacl
Use the setgid flag to create the appropriate permissions (chmod 2770).
Use the groupadd command to create a group. You can then add user George with the following: usermod -G <group name> George
createrepo
42. What does it mean if you ping a host and you receive the response Destination Unreachable?
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Use the route command with the add option to create a static route.
export one or all resources
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.
43. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
serve both files and printers to users
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
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.
Network installations can be performed using the HTTP - FTP - and NFS protocols.
44. Through its main config file - SSH can be configured to...
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
45. What command can you use to manage system services?
Typing the mail or mutt command allows you to read mail from the command line.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
The service command is used to start - stop - and manage system services.
46. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
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.
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.
Sendmail
generates errors under Red Hat Enterprise Linux 6
47. What are the two types of back-end authentication mechanisms discussed in this chapter?
The NFS service uses TCP port 2049 by default.
This chapter described tdbsm and smbpasswd back-end authentication.
chkconfig xinetd --list
Enforcing during installation
48. What command can you use to view system processes and their CPU usage?
The /etc/exports file needs to contain any directory that you want to export - including which options you'd like to use as well.
Use the ps command to view processes and their CPU usage.
This command reboots virtual guest Client04.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
49. What options with the yum command would you use to remove a package?
The /var/log/audit/audit.log file contains all policy violations.
You can use the remove or erase options with yum to remove a package.
The TFTP server uses UDP port 69.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
50. The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.
via the command line
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
chcon
Use the resize2fs command to grow a file system.