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 Commands
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. Stores IPtables rules (filter) chains - input forward output are persistant
rsync /home root@server6.example.com:/tmp
#rpm -qi [package name]
updating the kernel
/etc/sysconfig/iptables
2. Determine which package provides SSH
/var/lib/rpm
yum provides "*/sbin/sshd"
GUI menu system/administratrion/firewall
#rpm -qac [package name]
3. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rpm -ql vsftpd
# vi /etc/inittab change - id:3:initdefault:
rpm --import [public key location]
4. All messages sent at info priority or higher
/etc/rsyslog.conf
/var/log/messages
/var/log/cron
vsftpd restart
5. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
yum provides "*/sbin/sshd"
rpm localinstall pkg.rpm --nogpgcheck
vsftpd restart
6. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
#ip addr show
#virsh destroy domain-id
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
logwatch
7. Process packets coming into the system
IPtables input chain
rpm -qc httpd
# grep -i
.spec
8. Start vsftp service
#iptables -L
vsftpd restart
/usr/share/doc/initscripts-*/sysconfig.txt
#yum install [package name]
9. Get a list of package groups from yum
#yum grouplist
/etc/hosts
cat >> some_file << _EOF
#rpm -qad [package name]
10. Messages related to cron log
name-version-release.architecture.rpm
/var/log/cron
vncviewer -via student@server6 localhost:2
#iptables -I INPUT -p tcp --dport 21 -j Accept
11. List scripts that can be run after installation of pkg.rpm
rpm -qc httpd
# renice -10 proc-id
/etc/sysconfig/resolv.conf
rpm -q pkg.rpm --scripts
12. Backup a home directory on desktop6 to /tmp on server6
vncviewer -via student@server6 localhost:2
/etc/rsyslog.conf
rsync /home root@server6.example.com:/tmp
/etc/yum.repos.d
13. Grep with ignoring case
#yum groupremove "group name"
# grep -i
#iptables -F
/etc/hosts
14. fqdn
ssh-keygen
palimpsest
Fully Qualified Domain Name
rsync /home/test1.html root@server6.example.com:/var/pub
15. Redirect errors to std out
ssh-copy-id root@server6.example.com
2>&1
# star -xattr -H=exustar -c -f=home.star /home/
ssh-keygen
16. Generate SSH Keys
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
tar cxtv
ssh-keygen
cat >> some_file << _EOF
17. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
GUI menu system/administratrion/firewall
MailTo=student@server6.example.com
/var/www/html/
18. Documentation about sysconfig network scripts
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
vncviewer -via student@server6 localhost:2
yum info firefox4
/usr/share/doc/initscripts-*/sysconfig.txt
19. Install with RPM
/etc/ssh/sshd_config
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
updating the kernel
#rpm -ivh [package name]
20. Flush the firewall of all rules
/etc/sysconfig/resolv.conf
/var/log/maillog
#iptables -F
# cat /var/log/messages | grep [Ff]ailed | less
21. Kill a VM
yum list
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#virsh destroy domain-id
Fully Qualified Domain Name
22. Extract a gzipped tar ball in your home directory
$ tar xzvf home.tar.gz /home
rsync /home/test1.html root@server6.example.com:/var/pub
IPtables forward chain
# renice -10 proc-id
23. original DNS config file - still used
/etc/sysconfig/resolv.conf
ln -s /pub /var/www/html/pub
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum
24. Install star
tar cxtv
rsync /home root@server6.example.com:/tmp
# yum
/etc/yum.repos.d/
25. Display packages that match the pathname
yum provides
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
/var/log/secure
26. An example of searching through system logs with interpretation.
# cat /var/log/messages | grep [Ff]ailed | less
# virsh create /etc/libvert/qemu/vm_file_name.xml
name-version-release.architecture.rpm
#rpm -qac [package name]
27. Get more information on a package availale through yum
tar cxtv
rpm -q pkg.rpm --scripts
#yum info [package name]
system-config-date
28. tar options for create - extract - test - and verbose
/etc/yum.repos.d/
tar cxtv
yum provides
rsync /home/test1.html root@server6.example.com:/var/pub
29. Persist FTP on boot
rpm -qp pkg.rpm
chkconfig vsftpd on
insert as opposed to append
/etc/sysconfig/resolv.conf
30. Install a package named firefox4
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# ls -l /usr/share/doc | grep httpd
/var/www/html/
yum install firefox4
31. Get information about a package named firefox4
#virsh destroy domain-id
tar czvf /tmp/etc.tar.gz /etc
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum info firefox4
32. Connect with VNC viewer securely
vsftpd
Fully Qualified Domain Name
vncviewer -via student@server6 localhost:2
#yum groupinstall "group name"
33. Stores filewall rules for the system.
/etc/sysconfig/iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
#yum
ssh-copy-id root@server6.example.com
34. Remove a package with yum
tar fzj
#yum remove [package name]
#rpm -qi [package name]
tar xvzf /tmp/etc.tar.gz /etc
35. Process packets being forwarded through the system
#yum groupremove "group name"
tar fzj
#iptables -D INPUT -p tcp --dport 21 -j accpet
IPtables forward chain
36. System config firewall
2>&1
$ grep -v ^# /etc/nsswitch.conf
GUI menu system/administratrion/firewall
vsftpd
37. Start a VM
GUI menu system/administratrion/firewall
# virsh create /etc/libvert/qemu/vm_file_name.xml
logwatch
chkconfig httpd on
38. Location of repo's
/etc/yum.repos.d/
rpm -qc httpd
ssh-copy-id root@server6.example.com
# vi /etc/inittab change - id:3:initdefault:
39. Gets kernel version and release number
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#uname -r
rsync /home root@server6.example.com:/tmp
vsftpd
40. Process packets coming out of the system
/etc/sysconfig/network
chkconfig vsftpd on
service ntpd restart
IPtables output chain
41. Program to analyze standard log files and send a summary email to root
#rpm -qad [package name]
#virsh list
insert as opposed to append
logwatch
42. Use lftp to connect
/etc/ssh/sshd_config
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
43. Disk Utility Command
# star -xattr -H=exustar -c -f=home.star /home/
nautilus
palimpsest
# virsh create /etc/libvert/qemu/vm_file_name.xml
44. Search for a package with firefox in the description
rpm -qp pkg.rpm
yum search firefox
/etc/sysconfig/iptables
vsftpd
45. Create a symbolic link to /pub on the FTP and name it pub
system-config-firewall tui
palimpsest
/etc/rsyslog.conf
ln -s /pub /var/www/html/pub
46. Import a public key
rpm --import [public key location]
#iptables -L
yum update
tar xvzf /tmp/etc.tar.gz /etc
47. Local host file (contains hostname). Can contain local system DNS.
/var/log/messages
rpm -qp pkg.rpm
/etc/hosts
tar czvf /tmp/etc.tar.gz /etc
48. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
/etc/sysconfig/iptables
vncviewer -via student@server6 localhost:2
/etc/sysconfig/iptables
insert as opposed to append
49. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
rpm -ql vsftpd
#virsh destroy domain-id
50. Rpm upgrade package u upgrade v verbose h hash
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#rpm -uvh [package name]
# grep -i
chkconfig httpd on