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. Disk Utility Command
#yum
#iptables -F
palimpsest
yum install tigervnc-server
2. Configuration file for system logs
rpm localinstall pkg.rpm --nogpgcheck
# cat /var/log/messages | grep [Ff]ailed | less
ln -s /pub /var/www/html/pub
/etc/rsyslog.conf
3. Stores filewall rules for the system.
/etc/services
ntpdate -b instructor
/etc/sysconfig/iptables
yum info firefox4
4. Location of repo's
/etc/yum.repos.d/
/etc/sysconfig/resolv.conf
ln -s /pub /var/www/html/pub
#iptables -F
5. An example of searching through system logs with interpretation.
#iptables -F
# yum
# cat /var/log/messages | grep [Ff]ailed | less
rpm -q pkg.rpm --scripts
6. Determine which package provides SSH
yum provides
chkconfig vsftpd on
yum provides "*/sbin/sshd"
yum remove firefox4
7. Connect with VNC viewer securely
service vncserver restart chkconfig vncserver on
vncviewer -via student@server6 localhost:2
rpm -q pkg.rpm --scripts
*.debug /var/log/debug.log service rsyslog restart
8. See files installed with a package named vsftpd
GUI menu system/administratrion/firewall
rpm -ql vsftpd
/etc/yum.repos.d/
ntpdate -b instructor
9. Get more information on a package availale through yum
#yum info [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
palimpsest
yum provides "*/sbin/sshd"
10. Start vsftp service
cp /home/test1.html /var/www/html/test1.html
#rpm -qa | grep [package name]
vsftpd restart
rsync /home root@server6.example.com:/tmp
11. Package file named pkg.rpm
palimpsest
/var/log/cron
/etc/sysconfig/iptables
rpm -qp pkg.rpm
12. Import a public key
/var/www/html/
rpm --import [public key location]
ssh-copy-id root@server6.example.com
/var/log/maillog
13. Acting as a router with forwarding
yum list
ip masqu
man search :/repository
ln -s /pub /var/www/html/pub
14. Start GUI for Firewall
rpm localinstall pkg.rpm --nogpgcheck
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#yum info [package name]
system-config-firewall tui
15. Kill a VM
/etc/sysconfig/iptables
MailTo=student@server6.example.com
/etc/services
#virsh destroy domain-id
16. Restart the ntpd service
# ls -l /usr/share/doc | grep httpd
/etc/sysconfig/network
service ntpd restart
MailTo=student@server6.example.com
17. Search for command in the doc directory
/var/log/messages
# vi /etc/inittab change - id:3:initdefault:
# ls -l /usr/share/doc | grep httpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
18. Generate SSH Keys
MailTo=student@server6.example.com
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ssh-keygen
19. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
#yum
#yum groupinstall "group name"
service vncserver restart chkconfig vncserver on
20. Configuration for VNC
tar fzj
MailTo=student@server6.example.com
/etc/sysconfig/vncservers rpm -ql tigervnc-server
rpm -qp pkg.rpm
21. Install a package group with yum
#virsh destroy domain-id
yum install firefox4
#yum groupinstall "group name"
tar cxtv
22. Update a package
# star -x -f=home.star
yum update
#uname -r
$ tar czvf home.tar.gz /home
23. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
# star -xattr -H=exustar -c -f=home.star /home/
/dev
updating the kernel
tar xvzf /tmp/etc.tar.gz /etc
24. Query configuration files with RPM
#rpm -qac [package name]
/etc/yum.repos.d
#iptables -D INPUT -p tcp --dport 21 -j accpet
tar cxtv
25. GUI install / uninstall with yum
tar cxtv
add/remove software GUI
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum groupinstall "group name"
26. Show IP address with the IP command
#yum install [package name]
#ip addr show
#rpm -ivh [package name]
/var/www/html/
27. Copy a public ssh key to server6
/etc/yum.repos.d/
ssh-keygen
IPtables input chain
ssh-copy-id root@server6.example.com
28. See the configuration files installed with a package named httpd
rpm -qc httpd
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/sysconfig/iptables
GUI menu system/administratrion/firewall
29. Remove a package with yum
# star -x -f=home.star
/var/www/html/
# cat /var/log/messages | grep [Ff]ailed | less
#yum remove [package name]
30. Authentication related messages log
/var/log/secure
chkconfig httpd on
/etc/hosts
/var/log/maillog
31. Restart ssh services
service sshd restart
$ grep -v ^# /etc/nsswitch.conf
#yum install [package name]
yum provides
32. FTP package used in RHEL 6
vsftpd
/etc/sysconfig/resolv.conf
yum list
# star -xattr -H=exustar -c -f=home.star /home/
33. Process packets coming out of the system
# vi /etc/inittab change - id:3:initdefault:
IPtables output chain
# cat /var/log/messages | grep [Ff]ailed | less
yum provides "*/sbin/sshd"
34. Persist FTP on boot
tar fzj
chkconfig vsftpd on
#iptables -L
palimpsest
35. Display packages that match the pathname
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
IPtables input chain
rpm --import [public key location]
yum provides
36. Rpm upgrade package u upgrade v verbose h hash
#rpm -uvh [package name]
GUI menu system/administratrion/firewall
# yum
tar fzj
37. Use lftp to connect
#yum groupremove "group name"
GUI menu system/administratrion/firewall
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/var/lib/rpm
38. Where are HTML pages hosted?
/var/www/html/
#yum remove [package name]
/var/lib/rpm
/etc/sysconfig/network
39. List VMs
#yum info [package name]
name-version-release.architecture.rpm
/etc/ssh/sshd_config
#virsh list
40. Gets kernel version and release number
/var/log/messages
add/remove software GUI
#uname -r
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
41. List iptables
#iptables -L
#ip addr show
yum list
vsftpd restart
42. Process packets being forwarded through the system
vncpasswd
IPtables forward chain
#ip addr show
updating the kernel
43. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
#rpm -qad [package name]
chkconfig vsftpd on
MailTo=student@server6.example.com
/etc/services
44. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
/etc/services
/etc/rsyslog.conf
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
45. Extract a star compressed file
rpm -q pkg.rpm --scripts
*.debug /var/log/debug.log service rsyslog restart
/etc/sysconfig/iptables
# star -x -f=home.star
46. Create a symbolic link to /pub on the FTP and name it pub
#rpm -qad [package name]
logwatch
ln -s /pub /var/www/html/pub
rsync /home root@server6.example.com:/tmp
47. Grep for lines that do not match (-v)
$ grep -v ^# /etc/nsswitch.conf
.spec
/var/lib/rpm
rpm -qc httpd
48. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
IPtables input chain
yum remove firefox4
rpm -q pkg.rpm --scripts
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
49. fqdn
# ls -l /usr/share/doc | grep httpd
# grep -i
Fully Qualified Domain Name
nautilus
50. Repos for yum
#rpm -qad [package name]
.spec
#yum install [package name]
/etc/yum.repos.d