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. Program to analyze standard log files and send a summary email to root
# vi /etc/inittab change - id:3:initdefault:
vncpasswd
# yum
logwatch
2. List VMs
#virsh list
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
# yum
vncpasswd
3. Sync ntp time with the instructor
yum provides "*/sbin/sshd"
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ntpdate -b instructor
#rpm -ivh [package name]
4. Flush the firewall of all rules
GUI menu system/administratrion/firewall
#rpm -qac [package name]
/dev
#iptables -F
5. Persist FTP on boot
#rpm -qa | grep [package name]
chkconfig vsftpd on
yum remove firefox4
rpm -ql vsftpd
6. Generate SSH Keys
Fully Qualified Domain Name
# cat /var/log/messages | grep [Ff]ailed | less
ssh-keygen
cp /home/test1.html /var/www/html/test1.html
7. Create a tar ball with gzip compression of the home dir
/etc/rsyslog.conf
$ tar czvf home.tar.gz /home
#yum remove [package name]
yum provides "*/sbin/sshd"
8. An example of searching through system logs with interpretation.
#ip addr show
add/remove software GUI
/etc/ssh/sshd_config
# cat /var/log/messages | grep [Ff]ailed | less
9. Backup a home directory on desktop6 to /tmp on server6
system-config-firewall tui
rsync /home root@server6.example.com:/tmp
#uname -r
/dev
10. Kill a VM
#virsh destroy domain-id
ssh-copy-id root@server6.example.com
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum info [package name]
11. Create a gzip-compressed backup of /etc in /tmp
#virsh destroy domain-id
chkconfig vsftpd on
#yum grouplist
tar czvf /tmp/etc.tar.gz /etc
12. Get more information on a package availale through yum
#yum grouplist
rpm -qc httpd
#yum info [package name]
chkconfig vsftpd on
13. Redirect errors to std out
GUI menu system/administratrion/firewall
vncviewer -via student@server6 localhost:2
2>&1
/etc/rsyslog.conf
14. Send all debug level messages to /var/log/debug.log
ntpdate -b instructor
*.debug /var/log/debug.log service rsyslog restart
#yum
rpm -qp pkg.rpm
15. Use lftp to connect
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
.spec
tar czvf /tmp/etc.tar.gz /etc
#rpm -uvh [package name]
16. Show IP address with the IP command
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
chkconfig vsftpd on
#ip addr show
/var/log/secure
17. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
#virsh destroy domain-id
logwatch
$ tar xzvf home.tar.gz /home
rsync -a /home/test1.html root@server6.example.com:/var/pub
18. Stores IPtables rules (filter) chains - input forward output are persistant
/var/lib/rpm
/etc/sysconfig/iptables
#ip addr show
# star -xattr -H=exustar -c -f=home.star /home/
19. Where are HTML pages hosted?
/var/www/html/
/etc/hosts
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum grouplist
20. Install the star compression tool create an archive with the star tool.
yum info firefox4
# star -xattr -H=exustar -c -f=home.star /home/
#iptables -L
IPtables output chain
21. Grep with ignoring case
rpm localinstall pkg.rpm --nogpgcheck
vsftpd
# grep -i
cat >> some_file << _EOF
22. tar options for create - extract - test - and verbose
ssh-copy-id root@server6.example.com
.spec
tar cxtv
add/remove software GUI
23. Get information about a package named firefox4
yum info firefox4
rsync /home/test1.html root@server6.example.com:/var/pub
rpm -ql vsftpd
#yum info [package name]
24. Uninstall a package group with yum
rsync /home root@server6.example.com:/tmp
#yum groupremove "group name"
vncviewer -via student@server6 localhost:2
vsftpd restart
25. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
/var/log/secure
rsync -a /home/test1.html root@server6.example.com:/var/pub
*.debug /var/log/debug.log service rsyslog restart
26. Install a package group with yum
rsync -a /home/test1.html root@server6.example.com:/var/pub
#rpm -qi [package name]
#yum install [package name]
#yum groupinstall "group name"
27. Start a VM
tar fzj
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum install [package name]
rpm -ql vsftpd
28. Process packets coming out of the system
#uname -r
IPtables output chain
cp /home/test1.html /var/www/html/test1.html
/etc/yum.repos.d
29. Restart ssh services
yum install firefox4
service sshd restart
/etc/hosts
# renice -10 proc-id
30. fqdn
/etc/ssh/sshd_config
yum info firefox4
Fully Qualified Domain Name
add/remove software GUI
31. Set a VNC password
yum list
rsync /home/test1.html root@server6.example.com:/var/pub
vncpasswd
service ntpd restart
32. RPM package naming
#iptables -F
name-version-release.architecture.rpm
#rpm -qi [package name]
# ls -l /usr/share/doc | grep httpd
33. Remove a package with yum
#yum remove [package name]
vncviewer -via student@server6 localhost:2
yum install firefox4
# renice -10 proc-id
34. Contains RPM database
#virsh destroy domain-id
GUI menu system/administratrion/firewall
/var/lib/rpm
#yum groupinstall "group name"
35. Process packets being forwarded through the system
IPtables forward chain
rpm -qc httpd
yum provides "*/sbin/sshd"
$ tar xzvf home.tar.gz /home
36. See the configuration files installed with a package named httpd
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rpm -qc httpd
tar czvf /tmp/etc.tar.gz /etc
rsync /home/test1.html root@server6.example.com:/var/pub
37. Extract a gzipped tar ball in your home directory
add/remove software GUI
yum remove firefox4
ssh-copy-id root@server6.example.com
$ tar xzvf home.tar.gz /home
38. Install the VNC server package
service vncserver restart chkconfig vncserver on
yum install tigervnc-server
vsftpd
/var/lib/rpm
39. Grep for lines that do not match (-v)
#rpm -qi [package name]
#rpm -qac [package name]
$ grep -v ^# /etc/nsswitch.conf
#yum grouplist
40. List iptables
#iptables -L
/var/log/cron
tar fzj
ssh-copy-id root@server6.example.com
41. tar options for file name - gzip - and bzip2
tar fzj
#virsh list
/etc/sysconfig/network
man search :/repository
42. Local file copy of /home/test1.html to /var/www/html/test1.html
$ tar xzvf home.tar.gz /home
cp /home/test1.html /var/www/html/test1.html
/etc/yum.repos.d/
service vncserver restart chkconfig vncserver on
43. Primary configuration of ssh
#iptables -L
vsftpd
/etc/ssh/sshd_config
# vi /etc/inittab change - id:3:initdefault:
44. Get a list of package groups from yum
#yum grouplist
/etc/ssh/sshd_config
rsync -a /home/test1.html root@server6.example.com:/var/pub
vncviewer -via student@server6 localhost:2
45. Shell config tool gropued like GUI firewall configurater.
rpm -q pkg.rpm --scripts
#yum install [package name]
#rpm -ivh [package name]
system-config-firewall tui
46. Search for a package within all packages
IPtables forward chain
/var/www/html/
service vncserver restart chkconfig vncserver on
#rpm -qa | grep [package name]
47. Restart vnc and persist on boot
# renice -10 proc-id
service vncserver restart chkconfig vncserver on
IPtables output chain
#yum groupinstall "group name"
48. Start GUI for Firewall
yum update
# grep -i
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
GUI menu system/administratrion/firewall
49. Configuration file for system logs
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/rsyslog.conf
/etc/yum.repos.d/
#yum groupremove "group name"
50. Extract /tmp/etc.tar.gz to /etc
tar xvzf /tmp/etc.tar.gz /etc
/usr/share/doc/initscripts-*/sysconfig.txt
/dev
chkconfig httpd on