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. Persist the web server on boot
rsync /home/test1.html root@server6.example.com:/var/pub
$ tar xzvf home.tar.gz /home
chkconfig httpd on
#rpm -qac [package name]
2. handles dependencies while RPMs do not uses preconfigured repos
/etc/ssh/sshd_config
#yum
/var/log/cron
name-version-release.architecture.rpm
3. Copy a public ssh key to server6
tar czvf /tmp/etc.tar.gz /etc
.spec
# ls -l /usr/share/doc | grep httpd
ssh-copy-id root@server6.example.com
4. RPM package naming
IPtables forward chain
/etc/sysconfig/network
name-version-release.architecture.rpm
palimpsest
5. Persist FTP on boot
chkconfig vsftpd on
yum remove firefox4
rpm --import [public key location]
rsync /home root@server6.example.com:/tmp
6. fqdn
Fully Qualified Domain Name
logwatch
/etc/sysconfig/resolv.conf
$ tar czvf home.tar.gz /home
7. Process packets coming out of the system
# renice -10 proc-id
# grep -i
IPtables output chain
tar xvzf /tmp/etc.tar.gz /etc
8. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/var/lib/rpm
yum remove firefox4
$ grep -v ^# /etc/nsswitch.conf
9. Uninstall a package group with yum
ip masqu
# star -x -f=home.star
yum install firefox4
#yum groupremove "group name"
10. Start a VM
# virsh create /etc/libvert/qemu/vm_file_name.xml
system-config-date
#yum
#yum info [package name]
11. Grep for lines that do not match (-v)
/var/log/messages
/var/log/cron
#virsh destroy domain-id
$ grep -v ^# /etc/nsswitch.conf
12. Query information files with RPM
#rpm -qi [package name]
# cat /var/log/messages | grep [Ff]ailed | less
# renice -10 proc-id
/etc/services
13. Set a VNC password
# renice -10 proc-id
tar cxtv
/etc/sysconfig/vncservers rpm -ql tigervnc-server
vncpasswd
14. Stores filewall rules for the system.
#yum
/etc/services
#yum remove [package name]
/etc/sysconfig/iptables
15. Query configuration files with RPM
/etc/sysconfig/vncservers rpm -ql tigervnc-server
# ls -l /usr/share/doc | grep httpd
#rpm -qac [package name]
/etc/sysconfig/resolv.conf
16. Install a package named firefox4
#iptables -F
yum install firefox4
ln -s /pub /var/www/html/pub
yum provides
17. Register on the RHN
rhn_register
vncviewer -via student@server6 localhost:2
yum update
rpm -qp pkg.rpm
18. Create a gzip-compressed backup of /etc in /tmp
tar czvf /tmp/etc.tar.gz /etc
rpm -qp pkg.rpm
yum update
insert as opposed to append
19. Use lftp to connect
palimpsest
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
yum list
/var/lib/rpm
20. GUI install / uninstall with yum
chkconfig vsftpd on
add/remove software GUI
vncpasswd
GUI menu system/administratrion/firewall
21. Messages related to cron log
IPtables input chain
/var/log/cron
#rpm -ivh [package name]
rpm -ql vsftpd
22. Extract /tmp/etc.tar.gz to /etc
/etc/sysconfig/resolv.conf
/var/log/messages
/etc/sysconfig/network
tar xvzf /tmp/etc.tar.gz /etc
23. Restart ssh services
system-config-firewall tui
tar cxtv
service sshd restart
# cat /var/log/messages | grep [Ff]ailed | less
24. System config firewall
rsync /home/test1.html root@server6.example.com:/var/pub
# yum
yum install tigervnc-server
GUI menu system/administratrion/firewall
25. Repos for yum
yum install firefox4
#rpm -qa | grep [package name]
tar xvzf /tmp/etc.tar.gz /etc
/etc/yum.repos.d
26. Install star
# yum
IPtables forward chain
ln -s /pub /var/www/html/pub
/etc/sysconfig/network
27. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -qa | grep [package name]
/var/www/html/
name-version-release.architecture.rpm
28. Generate SSH Keys
ssh-keygen
#rpm -ivh [package name]
man search :/repository
vsftpd restart
29. An example of searching through system logs with interpretation.
service sshd restart
vsftpd
insert as opposed to append
# cat /var/log/messages | grep [Ff]ailed | less
30. Extract a star compressed file
rsync -a /home/test1.html root@server6.example.com:/var/pub
# yum
# star -x -f=home.star
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
31. Restart vnc and persist on boot
#uname -r
system-config-date
#yum install [package name]
service vncserver restart chkconfig vncserver on
32. Process packets being forwarded through the system
IPtables forward chain
#rpm -uvh [package name]
tar fzj
.spec
33. Delete a rule from iptables
yum info firefox4
#virsh destroy domain-id
#iptables -D INPUT -p tcp --dport 21 -j accpet
#yum info [package name]
34. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
/etc/hosts
/etc/sysconfig/network
system-config-firewall tui
insert as opposed to append
35. Configuration file for system logs
/etc/rsyslog.conf
#yum grouplist
vncpasswd
/var/log/messages
36. Searches for page within the #man yum
man search :/repository
Fully Qualified Domain Name
rpm --import [public key location]
/etc/yum.repos.d/
37. Display packages that match the pathname
yum list
#uname -r
IPtables output chain
yum provides
38. Redirect errors to std out
2>&1
vsftpd restart
#rpm -uvh [package name]
rpm -qc httpd
39. Rpm upgrade package u upgrade v verbose h hash
/var/lib/rpm
MailTo=student@server6.example.com
2>&1
#rpm -uvh [package name]
40. Disk Utility Command
MailTo=student@server6.example.com
palimpsest
# renice -10 proc-id
# grep -i
41. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
rpm -ql vsftpd
rhn_register
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
42. All messages sent at info priority or higher
yum info firefox4
# renice -10 proc-id
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/var/log/messages
43. Program to analyze standard log files and send a summary email to root
man search :/repository
#yum groupinstall "group 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
logwatch
44. Local file copy of /home/test1.html to /var/www/html/test1.html
chkconfig httpd on
insert as opposed to append
cp /home/test1.html /var/www/html/test1.html
nautilus
45. Flush the firewall of all rules
logwatch
/etc/sysconfig/iptables
# grep -i
#iptables -F
46. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
#rpm -qac [package name]
insert as opposed to append
yum info firefox4
47. Show IP address with the IP command
#ip addr show
yum install firefox4
ip masqu
yum list
48. Acting as a router with forwarding
/var/log/messages
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
ip masqu
49. Start vsftp service
vsftpd restart
#yum info [package name]
yum list
# renice -10 proc-id
50. Start the GUI for date configuration
cp /home/test1.html /var/www/html/test1.html
#rpm -uvh [package name]
system-config-date
insert as opposed to append