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. Before you work with quotas - what do you need to do to the file system?
The two main config files are master.cf and main.cf.
Use the setgid flag to create the appropriate permissions (chmod 2770).
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 file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
2. What two commands are special for dealing with user login events?
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 yum groupinstall command to install multiple packages in a single group at once.
The lastlog and faillog commands are used to view user login-related events?
halts the system
3. What is the name of the package that allows you to install VNC?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
The two main config files are master.cf and main.cf.
atq
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
4. What option is used to allow anonymous uploads to the FTP server?
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
The anonymous_enable=YES option in the main config file allows anonymous uploads.
service dhcpd configtest
chkconfig—list
5. 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
6. What happens if a host changes its IP address and the keys don't match?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
7. Before you work with ACLs - what do you need to do to the file system?
browseable option
Use the ps command to view processes and their CPU usage.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
rpmbuild
8. What option at the GRUB boot menu can you use to append something to a kernel?
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
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
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.
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
9. What does S12rsyslog in the /etc/rc.d/rc2.d directory mean?
The service command is used to start - stop - and manage system services.
cat /proc/mdstat
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.
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.
10. What command can you use to create your own repositories?
The two main config files are master.cf and main.cf.
createrepo
browseable option
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
11. 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...
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
user's home directory in the /etc/skel directory
chkconfig sshd off
have the same effect
12. 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
Sendmail
The -t nfs option is used with the mount command to mount NFS resources.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
13. 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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
14. How would you install a group of packages all at a single time?
repquota
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
entering rescue mode and repairing the problem.
Use the yum groupinstall command to install multiple packages in a single group at once.
15. 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
16. Which remote management service is installed by default?Can you name the port that it uses?
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.
getsebool -a | grep http
By defining a %post section - you can run scripts after a kickstart installation is complete.
service dhcpd configtest
17. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
getsebool -a | grep http
The rpm command can operate in install - query - or verify modes.
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.
18. 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 /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Sendmail
rpcbind service
19. What command can you use to test connectivity to another host?
The print option is used with both the fdisk and parted commands to display the current partition tables.
The TFTP server uses UDP port 69.
The ping command can be used to verify connectivity to another host.
You can use the remove or erase options with yum to remove a package.
20. What command can be used to view the queue for at service jobs?
atq
The ping command can be used to verify connectivity to another host.
Typing the mail or mutt command allows you to read mail from the command line.
By default - Squid runs on port 3128.
21. What does the testparm command do?
mkfs.ext4
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
22. What is the superblock used for?
This command reboots virtual guest Client04.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
chkconfig xinetd --list
23. Is it possible to share files among groups - What permissions would you set on the directory to accomplish file sharing if possible?
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
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
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
24. What is a swap? Is it created as a partition or device file?
An ext3 file system has journaling built in to it - whereas the ext2 file system doesn't.
Physical volumes - volume groups - and logical volumes.
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.
enabled by default
25. What command do you use to change the permissions on a file or directory - To change ownership?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 rndc utility provides a method for managing the DNS server remotely and securely.
Enforcing during installation
26. What command displays your current interfaces and IP address?
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
ifconfig
You can use the authconfig-tui command or the authconfig command.
27. 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.
The rndc utility provides a method for managing the DNS server remotely and securely.
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.
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
28. What is PAM used for?
You can use the authconfig-tui command or the authconfig command.
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.
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
cat /proc/mdstat
29. What command can you use to test the config files before starting the DNS service?
The rndc utility provides a method for managing the DNS server remotely and securely.
By default - the rndc utility listens on port 953.
The rpm command can operate in install - query - or verify modes.
service named configtest
30. What does the partprobe command 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.
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 five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
You must open TCP ports 20 and 21 for the FTP server to function properly.
31. What command can you use to get information about logical volumes?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
lvdisplay
The rndc utility provides a method for managing the DNS server remotely and securely.
The vsftpd package is used to install an FTP server.
32. 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
33. What option is used with both the fdisk and parted commands to display the current partition tables?
SSH is used for secure remote management of Linux systems.
The print option is used with both the fdisk and parted commands to display the current partition tables.
Use the route command with the add option to create a static route.
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
34. What command can you use to view NFS statistics?
useradd -c "Jr Admin" George
The nfsstat command can be used to view NFS statistics.
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 /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
35. The ______________ for Red Hat Enterprise Linux 5 or 6 includes the use of LVM.
Enforcing during installation
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.
The /etc/dhcp/dhcpd.conf file is the main config file for the DHCP service.
36. What are the three items that make up LVM?
By defining a %post section - you can run scripts after a kickstart installation is complete.
The service command is used to start - stop - and manage system services.
Use the yum groupinstall command to install multiple packages in a single group at once.
Physical volumes - volume groups - and logical volumes.
37. Do you need to write changes to the disk when using the parted command? What about fdisk?
you have access to the correct packages or repositories.
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.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
Dovecot supports the POP3 - POP3S - IMAP - and IMAPS protocols.
38. What command can you use to validate the syntax of the Apache config file?
run on any port you'd like (provided that port is available)
service httpd configtest
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
39. Which version of SSH should you use?
Version 2 is the latest and most secure version of SSH.
load balancing and redundancy benefits
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
SSH is used for secure remote management of Linux systems.
40. What port does the rndc utility listen on by default?
By default - the rndc utility listens on port 953.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
The smbpasswd command is used to create Samba users.
repquota
41. What command and option can you use to enable a service to start on boot?
Enforcing during installation
Use the top command to view CPU and memory usage.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
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.
42. What are the two types of back-end authentication mechanisms discussed in this chapter?
chkconfig xinetd --list
This chapter described tdbsm and smbpasswd back-end authentication.
You can use the remove or erase options with yum to remove a package.
via the command line
43. A PXE server eases the automation process but isn't required for...
kickstart installations to work
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
semanage boolean -l
44. What is the point of using SELinux?
SELinux provides enhanced granular security for the Linux operating system.
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.
The /var/log/audit/audit.log file contains all policy violations.
The two main config files are master.cf and main.cf.
45. What does it mean if you ping a host and you receive the response Destination Unreachable?
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 gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
Physical volumes - volume groups - and logical volumes.
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
46. What is the rndc utility used for?
The du and df commands are used to view available space on the system.
Typing the mail or mutt command allows you to read mail from the command line.
The rndc utility provides a method for managing the DNS server remotely and securely.
chkconfig—list
47. What two commands are used for package management?
useradd -c "Jr Admin" George
alternatives --config mta
chcon
The yum and rpm commands are used for package management.
48. How can you check the currently mounted file systems?
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.
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 smbpasswd command is used to create Samba users.
The mount command lists all currently mounted file systems.
49. You must dictate the ____________ you want allocated to your virtual machine when you create it.
amount of RAM
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
chcon
The last rule is always an implicit deny statement rejecting anything that wasn't matched by previous rules.
50. What port must be opened on the firewall for DNS?
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.
Kickstart supports both basic and advanced partitioning (RAID/LVM).
DNS uses port 53.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.