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 do you use to change the permissions on a file or directory - To change ownership?
Apache uses port 80 for HTTP and port 443 for HTTPS.
amount of RAM
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.
Typing the mail or mutt command allows you to read mail from the command line.
2. What are the side effects of shrinking a volume group or logical volume?
user's home directory in the /etc/skel directory
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.
This command reboots virtual guest Client04.
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
3. What client-side command can you use to test your FTP server connection?
The lftp command can be used on a client to test FTP server connections.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The htpasswd command can be used to password-protect a web page.
By defining a %post section - you can run scripts after a kickstart installation is complete.
4. Before you work with quotas - what do you need to do to the file system?
Enforcing during installation
The -t nfs option is used with the mount command to mount NFS resources.
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The smbstatus command shows you currently mounted Samba resources.
5. What file needs to be edited so that the system will mount a file system at boot time?
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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 /etc/fstab file.
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.
6. What command can be used to easily list all the options in the FTP main config file?
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
By defining a %post section - you can run scripts after a kickstart installation is complete.
service named configtest
chkconfig sshd off
7. How can you check the currently mounted file systems?
rpcbind service
This chapter described tdbsm and smbpasswd back-end authentication.
The mount command lists all currently mounted file systems.
Use the yum groupinstall command to install multiple packages in a single group at once.
8. What command can you use to get information about logical volumes?
The DHCP server listens on port 67 by default.
The -t nfs option is used with the mount command to mount NFS resources.
lvdisplay
The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
9. What is a swap? Is it created as a partition or device file?
chkconfig xinetd --list
Apache uses port 80 for HTTP and port 443 for HTTPS.
repquota
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.
10. How would you go about creating a static route?
By defining a %post section - you can run scripts after a kickstart installation is complete.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Use the route command with the add option to create a static route.
11. A slave DNS server provides...
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
load balancing and redundancy benefits
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
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
12. What port does the DHCP server listen on by default?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
You can use the remove or erase options with yum to remove a package.
The DHCP server listens on port 67 by default.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
13. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work 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.
Enforcing during installation
14. What command can you use to check the config file of the DHCP server?
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.
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The nfsstat command can be used to view NFS statistics.
service dhcpd configtest
15. What happens if you call the command from question 3 with the -c option after it has already been run?
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 DHCP server listens on port 67 by default.
used for kickstart and/or network installs
16. What three components are needed to fully automate a kickstart installation?
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.
SSH is used for secure remote management of Linux systems.
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.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
17. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository - are RHEL5 systems able to use it?
service named configtest
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
chcon
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
18. Does a DHCP server allow reserved IP addresses - If so - how?
Using the host option in the dhcpd.conf file allows you to reserve a client IP address based on its MAC address.
The lftp command can be used on a client to test FTP server connections.
The du and df commands are used to view available space on the system.
Use the top command to view CPU and memory usage.
19. A service needs to have _______________ to be able to use it.
getsebool
lvdisplay
support for TCP Wrappers
rpcbind service
20. Which file shows you all the client IP addresses?
The lastlog and faillog commands are used to view user login-related events?
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 vsftpd package is used to install an FTP server.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
21. Can you name three utilities that can be used for network or DNS client troubleshooting?
The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
The three utilities are: route - ping - and nslookup.
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
The two main config files are master.cf and main.cf.
22. What command can you use to query information from the kernel about RAID arrays?
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.
cat /proc/mdstat
The print option is used with both the fdisk and parted commands to display the current partition tables.
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
23. How can you change the security context of a directory to work with Apache?
Using the chcon command - you can change the context of a file to work with Apache.
Use the setgid flag to create the appropriate permissions (chmod 2770).
The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
The TFTP server uses UDP port 69.
24. What command-line program can you use to check your mail?
LUKS encryption
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
Typing the mail or mutt command allows you to read mail from the command line.
rpcbind service
25. 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
26. What option would you use to query an installed package using the rpm command?
VNC is used to control a remote desktop session.
service dhcpd configtest
chkconfig sshd off
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.
27. 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
28. What is the name of the section used to run scripts after a kickstart installation?
The /etc/fstab file.
getsebool -a | grep http
By defining a %post section - you can run scripts after a kickstart installation is complete.
entering rescue mode and repairing the problem.
29. What does the partprobe command do?
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.
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.
By default - the rndc utility listens on port 953.
The partprobe command forces the kernel to reread the partition table. You should always call it after making any changes to your system partitions.
30. What command can you use to change the context of files?
chcon
amount of RAM
user's home directory in the /etc/skel directory
The two main config files are master.cf and main.cf.
31. 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.
mkfs.ext4
getsebool -a | grep http
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
32. Do you need to write changes to the disk when using the parted command? What about fdisk?
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
Enforcing during installation
The anonymous_enable=YES option in the main config file allows anonymous uploads.
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.
33. 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.
kickstart installations to work
The file that stores usernames and their encrypted passwords is erased and replaced with a new file.
The three utilities are: route - ping - and nslookup.
Enforcing during installation
34. What options with the yum command would you use to remove a package?
The yum and rpm commands are used for package management.
DNS uses port 53.
The rndc utility provides a method for managing the DNS server remotely and securely.
You can use the remove or erase options with yum to remove a package.
35. It is possible to run scripts before a kickstart installation. This is done by...
The rpm command can operate in install - query - or verify modes.
Enforcing during installation
defining a %pre section although it is rarely used
amount of RAM
36. There are four types of DNS servers. Name them.
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
SELinux provides enhanced granular security for the Linux operating system.
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
The four types of DNS servers are master - slave - caching-only - and forwarding.
37. What port does NFS use by default?
By default - the rndc utility listens on port 953.
DNS uses port 53.
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
The NFS service uses TCP port 2049 by default.
38. What are the two config files for Postfix called?
The two main config files are master.cf and main.cf.
SELinux provides enhanced granular security for the Linux operating system.
The four types of DNS servers are master - slave - caching-only - and forwarding.
A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
39. What port does the Apache web server run on - What about HTTPS?
The SMTP service runs on TCP port 110.
By combining a TFTP server - PXE boot - and DHCP server - you can fully automate the kickstart installation process.
Apache uses port 80 for HTTP and port 443 for HTTPS.
The rpm command can operate in install - query - or verify modes.
40. What command can you use to view the current ACL on a file?
A user's home directory is created under the /home directory.
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 vsftpd package is used to install an FTP server.
getfacl
41. What does it mean if you ping a host and you receive the response Destination Unreachable?
An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
You can use the authconfig-tui command or the authconfig command.
The -t nfs option is used with the mount command to mount NFS resources.
The gateway is incorrectly set - and the subnet of the host you are trying to reach is inaccessible.
42. What command can you use to validate the syntax of the Apache config file?
Enforcing during installation
schedule one-time-only jobs
The service command is used to start - stop - and manage system services.
service httpd configtest
43. What port does the rndc utility listen on by default?
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
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.
By default - the rndc utility listens on port 953.
44. What option is used to allow anonymous uploads to the FTP server?
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The mount command lists all currently mounted file systems.
SELinux Booleans provide restrictions to different aspects of a service.
45. What command can you use to monitor and troubleshoot network connections?
The tcpdump command is used to monitor network connections on different interfaces.
For Apache to run a secure site - the mod_ssl package is required to be installed.
chkconfig xinetd --list
This command reboots virtual guest Client04.
46. What command and options can you use to update the time?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
After the ntpd service is stopped - you can use the ntpdate <server> command to update/sync the time.
RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
Network installations can be performed using the HTTP - FTP - and NFS protocols.
47. Should you allow remote root access - Why or why not?
Warning
: Invalid argument supplied for foreach() in
/var/www/html/basicversity.com/show_quiz.php
on line
183
48. The firewall service is...
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.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
enabled by default
Enforcing during installation
49. Runlevel 0 ___________. Runlevel 6 reboots the system.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
halts the system
This command reboots virtual guest Client04.
50. How would you install a group of packages all at a single time?
via the command line
DNS uses port 53.
Use the route command with the add option to create a static route.
Use the yum groupinstall command to install multiple packages in a single group at once.