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. 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
2. SSH does...
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.
A user's home directory is created under the /home directory.
The smbpasswd command is used to create Samba users.
support TCP Wrappers
3. The exportfs command is used to...
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
ifconfig
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
export one or all resources
4. What happens to jobs that are scheduled to run while the system is off?
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 testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
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.
have the same effect
5. Runlevel 0 ___________. Runlevel 6 reboots the system.
mkfs.ext4
halts the system
getfacl
Use the setgid flag to create the appropriate permissions (chmod 2770).
6. What option is used to allow anonymous uploads to the FTP server?
The tcpdump command is used to monitor network connections on different interfaces.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
halts the system
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
7. What is a virtual host?
The tcpdump command is used to monitor network connections on different interfaces.
useradd -c "Jr Admin" George
serve both files and printers to users
A virtual host is a way of hosting multiple sites using a single IP address.
8. The firewall service is...
The testparm command allows you to check for syntax errors in the /etc/samba/smb.conf file.
enabled by default
chkconfig xinetd --list
getsebool -a | grep http
9. What is SSH used for?
support TCP Wrappers
No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
SSH is used for secure remote management of Linux systems.
Using the chcon command - you can change the context of a file to work with Apache.
10. 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...
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.
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
have the same effect
The yum and rpm commands are used for package management.
11. What command can you use to query information from the kernel about RAID arrays?
The DHCP server listens on port 67 by default.
getfacl
cat /proc/mdstat
The anonymous_enable=YES option in the main config file allows anonymous uploads.
12. What command can you use to create a file system?
mkfs.ext4
By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
you have access to the correct packages or repositories.
service sshd statuts
13. What port does the Apache web server run on - What about HTTPS?
LUKS encryption
lvdisplay
Apache uses port 80 for HTTP and port 443 for HTTPS.
setsebool -P nfs_export_all_rw=1
14. What command-line program can you use to check your mail?
Enforcing during installation
service dhcpd configtest
Typing the mail or mutt command allows you to read mail from the command line.
used for kickstart and/or network installs
15. A service needs to have _______________ to be able to use it.
support for TCP Wrappers
Typing the mail or mutt command allows you to read mail from the command line.
entering rescue mode and repairing the problem.
You must open TCP ports 20 and 21 for the FTP server to function properly.
16. What command displays your current interfaces and IP address?
Use the ps command to view processes and their CPU usage.
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.
ifconfig
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
17. What is NAT - How is it used?
Use the setgid flag to create the appropriate permissions (chmod 2770).
LUKS encryption
schedule one-time-only jobs
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. 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 /etc/fstab file.
The three utilities are: route - ping - and nslookup.
The /var/lib/nfs/etab file is used to keep track of currently exported resources.
19. What command disables the SSH service from running when the system boots?
chcon
chkconfig xinetd --list
The nfsstat command can be used to view NFS statistics.
chkconfig sshd off
20. What does ifconfig 172.168.1.100 netmask 255.255.255.0 eth1 do?
After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
halts the system
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.
service sshd statuts
21. How would you disable SELinux protection for NFS - allowing shares to be read/write?
you have access to the correct packages or repositories.
The ping command can be used to verify connectivity to another host.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
setsebool -P nfs_export_all_rw=1
22. The at command is used to ____________. The cron service handles reoccurring system jobs.
schedule one-time-only jobs
VNC is used to control a remote desktop session.
You can use the authconfig-tui command or the authconfig command.
By default - the rndc utility listens on port 953.
23. The old SysInit scripts have been replaced in Red Hat Enterprise Linux 6 for what new boot utility?
Using the chcon command - you can change the context of a file to work with Apache.
The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
used for kickstart and/or network installs
24. What command can you use to create a new SSL certificate?
Use the /usr/share/doc/dovecot-1.0.7/examples/mkcert.sh command after editing the /etc/pki/dovecot/dovecot-openssl.cnf file.
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
serve both files and printers to users
Kickstart supports both basic and advanced partitioning (RAID/LVM).
25. Do you need to write changes to the disk when using the parted command? What about fdisk?
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.
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.
You must open TCP ports 20 and 21 for the FTP server to function properly.
For Apache to run a secure site - the mod_ssl package is required to be installed.
26. What port does the SMTP service run on?
The SMTP service runs on TCP port 110.
service dhcpd configtest
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.
The NFS service uses TCP port 2049 by default.
27. 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.
generates errors under Red Hat Enterprise Linux 6
You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
rpmbuild
28. What command is used to create a user for Samba?
The smbpasswd command is used to create Samba users.
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 two main config files are master.cf and main.cf.
The dig - host - and ping commands can be used to test DNS server functionality.
29. 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
30. What directory is used to represent the virtual file system created by the kernel?
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
The NFS service uses TCP port 2049 by default.
This command reboots virtual guest Client04.
have the same effect
31. How would you go about creating a static route?
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
SELinux provides enhanced granular security for the Linux operating system.
Version 2 is the latest and most secure version of SSH.
Use the route command with the add option to create a static route.
32. What command can you use to test the config files before starting the DNS service?
enabled by default
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.
SSH is used for secure remote management of Linux systems.
service named configtest
33. What command (and options) can be used to create a user named George with the description "Jr Admin"?
The lastlog and faillog commands are used to view user login-related events?
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.
useradd -c "Jr Admin" George
The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
34. What option needs to be used with the mount command to mount an NFS resource?
By default - Squid runs on port 3128.
The -t nfs option is used with the mount command to mount NFS resources.
have the same effect
useradd -c "Jr Admin" George
35. What command can you use to view system processes and their CPU usage?
The smbstatus command shows you currently mounted Samba resources.
Use the ps command to view processes and their CPU usage.
kickstart installations to work
service sshd statuts
36. What is the format of the /etc/shadow file?
alternatives --config mta
service httpd configtest
semanage boolean -l
The format of the /etc/shadow file is <username>:<encrypted password>:<last passwd change>:<min>:<max>:<warn>:<inactive>:<expires>:<not used>.
37. What command can be used to easily list all the options in the FTP main config file?
The ping command can be used to verify connectivity to another host.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
getsebool -a | grep http
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.
38. 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
39. What command and option can you use to enable a service to start on boot?
The NFS service uses TCP port 2049 by default.
Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
Uncomment the following line in the /etc/rsyslog.conf file: #$ModLoad imudp.so #$UDPServerRun 514
chkconfig xinetd --list
40. What is the xinetd service used for?
support for TCP Wrappers
alternatives --config mta
The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
browseable option
41. What command can you use to query Boolean values?
cat /proc/mdstat
Apache uses port 80 for HTTP and port 443 for HTTPS.
By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
getsebool
42. What command and option do you use to view the description of Boolean values?
semanage boolean -l
The nfsstat command can be used to view NFS statistics.
amount of RAM
chcon
43. What is the name of the package that allows you to install VNC?
rpmbuild
The VNC package for Red Hat Enterprise Linux 6 is tiger-vnc.
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 TFTP server uses UDP port 69.
44. It is possible to run scripts before a kickstart installation. This is done by...
defining a %pre section although it is rarely used
The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
The NFS service uses TCP port 2049 by default.
The rpm command can operate in install - query - or verify modes.
45. What are the two types of back-end authentication mechanisms discussed in this chapter?
This chapter described tdbsm and smbpasswd back-end authentication.
chkconfig—list
The tcpdump command is used to monitor network connections on different interfaces.
You must open TCP ports 20 and 21 for the FTP server to function properly.
46. What option is used with both the fdisk and parted commands to display the current partition tables?
The tcpdump command is used to monitor network connections on different interfaces.
The anonymous_enable=YES option in the main config file allows anonymous uploads.
The print option is used with both the fdisk and parted commands to display the current partition tables.
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.
47. What command can you use to test connectivity to another host?
The ping command can be used to verify connectivity to another host.
Upstart. The Upstart utility is now used in the boot process for Red Hat Enterprise Linux 6.
Using the chcon command - you can change the context of a file to work with Apache.
The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
48. 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.
The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
The lftp command can be used on a client to test FTP server connections.
The service command is used to start - stop - and manage system services.
49. The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...
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 du and df commands are used to view available space on the system.
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.
generates errors under Red Hat Enterprise Linux 6
50. What does the rdnc-confgen command do?
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 rdnc-confgen command generates an rndc.conf file for the rndc utility.
You can use the authconfig-tui command or the authconfig command.
LUKS encryption