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. An example of searching through system logs with interpretation.
/etc/sysconfig/iptables
# renice -10 proc-id
# vi /etc/inittab change - id:3:initdefault:
# cat /var/log/messages | grep [Ff]ailed | less
2. Start vsftp service
vsftpd restart
#yum grouplist
GUI menu system/administratrion/firewall
nautilus
3. Update a package
# renice -10 proc-id
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
yum update
ln -s /pub /var/www/html/pub
4. Create a tar ball with gzip compression of the home dir
# yum
ssh-keygen
/var/log/maillog
$ tar czvf home.tar.gz /home
5. Connect with VNC viewer securely
vsftpd
vncviewer -via student@server6 localhost:2
/etc/sysconfig/iptables
$ grep -v ^# /etc/nsswitch.conf
6. Configuration file for system logs
rpm -q pkg.rpm --scripts
/etc/rsyslog.conf
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/network
7. Display packages that match the pathname
rhn_register
yum provides
#virsh destroy domain-id
yum update
8. Get more information on a package availale through yum
$ grep -v ^# /etc/nsswitch.conf
service vncserver restart chkconfig vncserver on
rsync /home/test1.html root@server6.example.com:/var/pub
#yum info [package name]
9. Acting as a router with forwarding
logwatch
ip masqu
cp /home/test1.html /var/www/html/test1.html
/etc/rsyslog.conf
10. Search for a package within all packages
#rpm -qa | grep [package name]
#rpm -qad [package name]
rpm --import [public key location]
yum provides "*/sbin/sshd"
11. Create a symbolic link to /pub on the FTP and name it pub
rsync -a /home/test1.html root@server6.example.com:/var/pub
/var/lib/rpm
rsync /home root@server6.example.com:/tmp
ln -s /pub /var/www/html/pub
12. Location of repo's
chkconfig vsftpd on
/etc/yum.repos.d/
service sshd restart
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
13. Program to analyze standard log files and send a summary email to root
$ grep -v ^# /etc/nsswitch.conf
#iptables -F
logwatch
# yum
14. Stores filewall rules for the system.
/etc/sysconfig/iptables
# star -xattr -H=exustar -c -f=home.star /home/
# vi /etc/inittab change - id:3:initdefault:
updating the kernel
15. Flush the firewall of all rules
ln -s /pub /var/www/html/pub
2>&1
#rpm -qi [package name]
#iptables -F
16. Grep with ignoring case
tar czvf /tmp/etc.tar.gz /etc
# grep -i
Fully Qualified Domain Name
yum provides
17. Restart vnc and persist on boot
rpm -q pkg.rpm --scripts
service vncserver restart chkconfig vncserver on
updating the kernel
#yum info [package name]
18. Disks available for partitions
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
yum search firefox
/dev
insert as opposed to append
19. Stores IPtables rules (filter) chains - input forward output are persistant
tar czvf /tmp/etc.tar.gz /etc
/etc/sysconfig/iptables
cp /home/test1.html /var/www/html/test1.html
/var/log/cron
20. Extract a star compressed file
# star -x -f=home.star
rpm -q pkg.rpm --scripts
#iptables -I INPUT -p tcp --dport 21 -j Accept
vncpasswd
21. See the configuration files installed with a package named httpd
yum provides
rsync -a /home/test1.html root@server6.example.com:/var/pub
rpm -qc httpd
ssh-keygen
22. Search for command in the doc directory
#virsh destroy domain-id
# ls -l /usr/share/doc | grep httpd
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#yum info [package name]
23. Query information files with RPM
insert as opposed to append
#rpm -qi [package name]
rpm -qc httpd
yum provides "*/sbin/sshd"
24. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
#iptables -I INPUT -p tcp --dport 21 -j Accept
tar fzj
insert as opposed to append
MailTo=student@server6.example.com
25. Repos for yum
IPtables input chain
/etc/sysconfig/iptables
yum provides "*/sbin/sshd"
/etc/yum.repos.d
26. Install a package with yum
#rpm -uvh [package name]
service sshd restart
#yum install [package name]
yum install firefox4
27. Persist the web server on boot
yum provides "*/sbin/sshd"
service vncserver restart chkconfig vncserver on
vsftpd
chkconfig httpd on
28. Persist FTP on boot
/var/lib/rpm
chkconfig vsftpd on
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
system-config-date
29. Kill a VM
name-version-release.architecture.rpm
#virsh destroy domain-id
ip masqu
rpm -ql vsftpd
30. Create a gzip-compressed backup of /etc in /tmp
nautilus
$ grep -v ^# /etc/nsswitch.conf
IPtables output chain
tar czvf /tmp/etc.tar.gz /etc
31. Redirect errors to std out
2>&1
/etc/ssh/sshd_config
rsync /home/test1.html root@server6.example.com:/var/pub
rpm localinstall pkg.rpm --nogpgcheck
32. Import a public key
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
tar czvf /tmp/etc.tar.gz /etc
Fully Qualified Domain Name
rpm --import [public key location]
33. Set a VNC password
rpm localinstall pkg.rpm --nogpgcheck
vncpasswd
/etc/ssh/sshd_config
ln -s /pub /var/www/html/pub
34. Remove a package named firefox4
IPtables output chain
updating the kernel
yum remove firefox4
vncviewer -via student@server6 localhost:2
35. Extract /tmp/etc.tar.gz to /etc
tar xvzf /tmp/etc.tar.gz /etc
name-version-release.architecture.rpm
nautilus
vncpasswd
36. List scripts that can be run after installation of pkg.rpm
[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 -q pkg.rpm --scripts
rpm localinstall pkg.rpm --nogpgcheck
yum search firefox
37. Authentication related messages log
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/var/log/secure
#rpm -qad [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
38. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
add/remove software GUI
rpm --import [public key location]
#rpm -qac [package name]
39. Start a VM
/var/log/cron
/dev
# virsh create /etc/libvert/qemu/vm_file_name.xml
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
40. Sync ntp time with the instructor
ntpdate -b instructor
rsync -a /home/test1.html root@server6.example.com:/var/pub
name-version-release.architecture.rpm
#virsh list
41. Primary configuration of ssh
/etc/ssh/sshd_config
Fully Qualified Domain Name
#rpm -qac [package name]
# grep -i
42. Local host file (contains hostname). Can contain local system DNS.
/etc/sysconfig/vncservers rpm -ql tigervnc-server
nautilus
/etc/hosts
#virsh list
43. Where are HTML pages hosted?
/var/www/html/
ln -s /pub /var/www/html/pub
yum provides
# star -x -f=home.star
44. All messages sent at info priority or higher
/var/log/messages
palimpsest
yum info firefox4
cat >> some_file << _EOF
45. RPM package naming
tar czvf /tmp/etc.tar.gz /etc
name-version-release.architecture.rpm
#virsh list
#yum groupinstall "group name"
46. Search for a package with firefox in the description
yum search firefox
# cat /var/log/messages | grep [Ff]ailed | less
#virsh list
add/remove software GUI
47. GUI install / uninstall with yum
rhn_register
#virsh destroy domain-id
add/remove software GUI
/var/log/secure
48. Gets kernel version and release number
palimpsest
#uname -r
#yum groupremove "group name"
tar cxtv
49. Process packets coming into the system
IPtables input chain
yum list
/var/lib/rpm
# grep -i
50. Query all documentation with RPM
tar czvf /tmp/etc.tar.gz /etc
#rpm -qad [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
insert as opposed to append