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. Get more information on a package availale through yum
/etc/yum.repos.d
#yum info [package name]
updating the kernel
#iptables -L
2. Repo config file
service sshd restart
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
[repo identifier] name=[repo name] baseurl=[repo url] enabled = 1 gpgcheck = 1 (0 for local system) gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release -file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
rpm -ql vsftpd
3. Local file copy of /home/test1.html to /var/www/html/test1.html
#iptables -I INPUT -p tcp --dport 21 -j Accept
*.debug /var/log/debug.log service rsyslog restart
cp /home/test1.html /var/www/html/test1.html
/var/log/messages
4. Query information files with RPM
#rpm -qi [package name]
Fully Qualified Domain Name
vncviewer -via student@server6 localhost:2
chkconfig vsftpd on
5. Display packages that match the pathname
yum provides
#rpm -qa | grep [package name]
tar cxtv
# star -x -f=home.star
6. Adjust the persistent runlevel
man search :/repository
#uname -r
service ntpd restart
# vi /etc/inittab change - id:3:initdefault:
7. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
#ip addr show
# cat /var/log/messages | grep [Ff]ailed | less
/etc/hosts
MailTo=student@server6.example.com
8. tar options for file name - gzip - and bzip2
#yum groupremove "group name"
rpm -ql vsftpd
service vncserver restart chkconfig vncserver on
tar fzj
9. Process packets being forwarded through the system
IPtables forward chain
[repo identifier] name=[repo name] baseurl=[repo url] enabled = 1 gpgcheck = 1 (0 for local system) gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release -file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
GUI menu system/administratrion/firewall
/etc/yum.repos.d
10. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
rsync -a /home/test1.html root@server6.example.com:/var/pub
#rpm -qad [package name]
chkconfig httpd on
/var/log/cron
11. Stores IPtables rules (filter) chains - input forward output are persistant
Fully Qualified Domain Name
ssh-copy-id root@server6.example.com
#yum groupinstall "group name"
/etc/sysconfig/iptables
12. Show IP address with the IP command
/var/log/messages
#rpm -uvh [package name]
/etc/sysconfig/resolv.conf
#ip addr show
13. Connect with VNC viewer securely
yum search firefox
/var/log/cron
cp /home/test1.html /var/www/html/test1.html
vncviewer -via student@server6 localhost:2
14. System config firewall
man search :/repository
[repo identifier] name=[repo name] baseurl=[repo url] enabled = 1 gpgcheck = 1 (0 for local system) gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release -file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
GUI menu system/administratrion/firewall
insert as opposed to append
15. See the configuration files installed with a package named httpd
ntpdate -b instructor
#ip addr show
/var/lib/rpm
rpm -qc httpd
16. Gets kernel version and release number
vncviewer -via student@server6 localhost:2
#virsh list
#uname -r
IPtables input chain
17. Program to analyze standard log files and send a summary email to root
service sshd restart
logwatch
#yum
service ntpd restart
18. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
$ tar xzvf home.tar.gz /home
#iptables -L
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum grouplist
19. Messages related to cron log
man search :/repository
logwatch
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/var/log/cron
20. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
service sshd restart
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#rpm -ivh [package name]
#rpm -qad [package name]
21. Install with RPM
#rpm -ivh [package name]
IPtables output chain
#uname -r
#ip addr show
22. Delete a rule from iptables
service ntpd restart
/etc/sysconfig/resolv.conf
#iptables -D INPUT -p tcp --dport 21 -j accpet
vsftpd
23. Where are HTML pages hosted?
IPtables input chain
ip masqu
/var/www/html/
#yum groupinstall "group name"
24. Search for command in the doc directory
# ls -l /usr/share/doc | grep httpd
#yum install [package name]
chkconfig vsftpd on
rpm -qp pkg.rpm
25. Determine which package provides SSH
yum provides "*/sbin/sshd"
#yum grouplist
# renice -10 proc-id
#iptables -I INPUT -p tcp --dport 21 -j Accept
26. Configuration file for system logs
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
system-config-firewall tui
/etc/sysconfig/resolv.conf
/etc/rsyslog.conf
27. Persist the web server on boot
#yum install [package name]
[repo identifier] name=[repo name] baseurl=[repo url] enabled = 1 gpgcheck = 1 (0 for local system) gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release -file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta
#rpm -ivh [package name]
chkconfig httpd on
28. Restart the ntpd service
updating the kernel
service ntpd restart
/etc/yum.repos.d/
#rpm -qac [package name]
29. Start vsftp service
/var/log/secure
vsftpd restart
MailTo=student@server6.example.com
service sshd restart
30. Configuration for VNC
logwatch
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/ssh/sshd_config
yum search firefox
31. See files installed with a package named vsftpd
rpm -ql vsftpd
#virsh destroy domain-id
rsync -a /home/test1.html root@server6.example.com:/var/pub
#uname -r
32. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
yum provides "*/sbin/sshd"
updating the kernel
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum groupinstall "group name"
33. Install a pkg.rpm locally
#rpm -qac [package name]
#yum groupremove "group name"
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rpm localinstall pkg.rpm --nogpgcheck
34. Install a package named firefox4
# vi /etc/inittab change - id:3:initdefault:
vncviewer -via student@server6 localhost:2
#rpm -qad [package name]
yum install firefox4
35. Kill a VM
/etc/ssh/sshd_config
#virsh destroy domain-id
/dev
# cat /var/log/messages | grep [Ff]ailed | less
36. An example of searching through system logs with interpretation.
cat >> some_file << _EOF
/var/lib/rpm
# cat /var/log/messages | grep [Ff]ailed | less
/etc/ssh/sshd_config
37. original DNS config file - still used
ip masqu
yum list
/etc/sysconfig/resolv.conf
vsftpd restart
38. Import a public key
#virsh list
rpm --import [public key location]
service ntpd restart
#iptables -F
39. Process packets coming into the system
2>&1
# vi /etc/inittab change - id:3:initdefault:
IPtables input chain
yum remove firefox4
40. Grep with ignoring case
logwatch
#virsh destroy domain-id
# grep -i
IPtables output chain
41. Search for a package with firefox in the description
vncpasswd
yum list
yum search firefox
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
42. fqdn
#virsh list
updating the kernel
Fully Qualified Domain Name
/etc/sysconfig/network
43. Register on the RHN
#yum
rhn_register
service ntpd restart
yum update
44. Remove a package with yum
#virsh destroy domain-id
IPtables forward chain
#yum remove [package name]
/var/www/html/
45. Create a symbolic link to /pub on the FTP and name it pub
*.debug /var/log/debug.log service rsyslog restart
ln -s /pub /var/www/html/pub
#rpm -qi [package name]
# yum
46. Start GUI for Firewall
yum provides
/var/log/cron
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/ssh/sshd_config
47. Shell config tool gropued like GUI firewall configurater.
# yum
system-config-firewall tui
#rpm -uvh [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
48. Install star
vsftpd restart
vncpasswd
# yum
# star -x -f=home.star
49. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
vsftpd restart
/etc/yum.repos.d
MailTo=student@server6.example.com
50. Get information about a package named firefox4
yum info firefox4
# ls -l /usr/share/doc | grep httpd
/var/log/maillog
#yum grouplist