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. Extract a gzipped tar ball in your home directory
/var/lib/rpm
$ tar xzvf home.tar.gz /home
ntpdate -b instructor
yum remove firefox4
2. GUI install / uninstall with yum
add/remove software GUI
/var/log/cron
vncpasswd
tar czvf /tmp/etc.tar.gz /etc
3. Kill a VM
IPtables input chain
#virsh destroy domain-id
ip masqu
/etc/sysconfig/resolv.conf
4. Contains RPM database
/var/lib/rpm
#yum groupremove "group name"
#iptables -L
rsync /home root@server6.example.com:/tmp
5. Configuration for VNC
$ tar xzvf home.tar.gz /home
/etc/sysconfig/vncservers rpm -ql tigervnc-server
logwatch
#yum grouplist
6. Copy a public ssh key to server6
tar cxtv
rhn_register
ssh-copy-id root@server6.example.com
ip masqu
7. Search for a package within all packages
#rpm -qa | grep [package name]
# star -xattr -H=exustar -c -f=home.star /home/
# yum
Fully Qualified Domain Name
8. Get a list of package groups from yum
chkconfig vsftpd on
#yum grouplist
yum update
*.debug /var/log/debug.log service rsyslog restart
9. Location of repo's
#rpm -qa | grep [package name]
/var/www/html/
/etc/yum.repos.d/
Fully Qualified Domain Name
10. Messages related to cron log
$ tar czvf home.tar.gz /home
/var/log/cron
ln -s /pub /var/www/html/pub
vsftpd
11. Uninstall a package group with yum
rhn_register
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum groupremove "group name"
ntpdate -b instructor
12. Persist the web server on boot
chkconfig httpd on
rhn_register
rpm localinstall pkg.rpm --nogpgcheck
#yum grouplist
13. Install a package named firefox4
yum provides "*/sbin/sshd"
yum install firefox4
add/remove software GUI
GUI menu system/administratrion/firewall
14. Program to analyze standard log files and send a summary email to root
#virsh destroy domain-id
logwatch
/dev
chkconfig httpd on
15. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
vncpasswd
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/sysconfig/iptables
16. See files installed with a package named vsftpd
tar fzj
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
nautilus
rpm -ql vsftpd
17. Determine which package provides SSH
#rpm -qi [package name]
yum install tigervnc-server
/dev
yum provides "*/sbin/sshd"
18. Process packets being forwarded through the system
IPtables forward chain
cat >> some_file << _EOF
service ntpd restart
tar czvf /tmp/etc.tar.gz /etc
19. Searches for page within the #man yum
#yum grouplist
man search :/repository
#ip addr show
/dev
20. Install star
/etc/yum.repos.d/
rpm localinstall pkg.rpm --nogpgcheck
#yum install [package name]
# yum
21. All messages sent at info priority or higher
yum provides
vsftpd
#iptables -L
/var/log/messages
22. Stores filewall rules for the system.
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
nautilus
/etc/rsyslog.conf
/etc/sysconfig/iptables
23. Start GUI for Firewall
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/sysconfig/resolv.conf
ln -s /pub /var/www/html/pub
tar cxtv
24. Adjust the persistent runlevel
rpm -q pkg.rpm --scripts
chkconfig vsftpd on
# vi /etc/inittab change - id:3:initdefault:
palimpsest
25. See the configuration files installed with a package named httpd
rpm -qc httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -qac [package name]
GUI menu system/administratrion/firewall
26. Query all documentation with RPM
/etc/sysconfig/iptables
#rpm -qad [package name]
#ip addr show
name-version-release.architecture.rpm
27. List scripts that can be run after installation of pkg.rpm
/usr/share/doc/initscripts-*/sysconfig.txt
rpm -q pkg.rpm --scripts
service ntpd restart
rpm -qc httpd
28. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
yum provides
vncviewer -via student@server6 localhost:2
#iptables -L
29. Disks available for partitions
/dev
yum provides "*/sbin/sshd"
man search :/repository
/var/log/cron
30. FTP package used in RHEL 6
# star -x -f=home.star
vsftpd
#yum grouplist
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
31. Restart the ntpd service
service ntpd restart
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
$ grep -v ^# /etc/nsswitch.conf
/usr/share/doc/initscripts-*/sysconfig.txt
32. Local file copy of /home/test1.html to /var/www/html/test1.html
chkconfig httpd on
yum provides "*/sbin/sshd"
cp /home/test1.html /var/www/html/test1.html
#ip addr show
33. tar options for file name - gzip - and bzip2
rpm -qc httpd
tar fzj
ssh-copy-id root@server6.example.com
#iptables -I INPUT -p tcp --dport 21 -j Accept
34. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/ssh/sshd_config
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
IPtables output chain
35. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/hosts
yum install firefox4
#virsh destroy domain-id
MailTo=student@server6.example.com
36. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
yum remove firefox4
updating the kernel
#ip addr show
#yum grouplist
37. Import a public key
yum install firefox4
#rpm -qi [package name]
rpm --import [public key location]
tar fzj
38. List installed and available packages
#virsh destroy domain-id
yum list
#yum groupinstall "group name"
man search :/repository
39. Repos for yum
/etc/yum.repos.d
yum provides
yum search firefox
# cat /var/log/messages | grep [Ff]ailed | less
40. tar options for create - extract - test - and verbose
/usr/share/doc/initscripts-*/sysconfig.txt
*.debug /var/log/debug.log service rsyslog restart
tar cxtv
updating the kernel
41. Email related messages log
yum update
tar fzj
/var/log/maillog
nautilus
42. original DNS config file - still used
/etc/sysconfig/resolv.conf
/etc/rsyslog.conf
#virsh destroy domain-id
rpm localinstall pkg.rpm --nogpgcheck
43. Stores IPtables rules (filter) chains - input forward output are persistant
system-config-date
/var/lib/rpm
rsync /home root@server6.example.com:/tmp
/etc/sysconfig/iptables
44. Primary configuration of ssh
/etc/ssh/sshd_config
IPtables output chain
rsync /home/test1.html root@server6.example.com:/var/pub
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
45. Send all debug level messages to /var/log/debug.log
cp /home/test1.html /var/www/html/test1.html
tar czvf /tmp/etc.tar.gz /etc
logwatch
*.debug /var/log/debug.log service rsyslog restart
46. Persist FTP on boot
[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
chkconfig vsftpd on
rhn_register
updating the kernel
47. Set a VNC password
vncpasswd
#uname -r
IPtables output chain
rpm --import [public key location]
48. List iptables
#iptables -L
MailTo=student@server6.example.com
palimpsest
#yum groupinstall "group name"
49. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
rsync -a /home/test1.html root@server6.example.com:/var/pub
# virsh create /etc/libvert/qemu/vm_file_name.xml
/var/log/messages
50. Acting as a router with forwarding
ip masqu
vsftpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum groupremove "group name"