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. Searches for page within the #man yum
add/remove software GUI
2>&1
man search :/repository
yum update
2. Repos for yum
nautilus
/var/www/html/
/etc/yum.repos.d
ntpdate -b instructor
3. Disks available for partitions
/var/log/cron
/dev
yum remove firefox4
insert as opposed to append
4. Install a package group with yum
#yum groupremove "group name"
IPtables input chain
#yum groupinstall "group name"
/dev
5. Grep for lines that do not match (-v)
$ grep -v ^# /etc/nsswitch.conf
#rpm -ivh [package name]
ip masqu
vncviewer -via student@server6 localhost:2
6. Install the VNC server package
# star -x -f=home.star
/var/www/html/
#yum groupremove "group name"
yum install tigervnc-server
7. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
vsftpd
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
IPtables forward chain
#iptables -D INPUT -p tcp --dport 21 -j accpet
8. Register on the RHN
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
rhn_register
#yum grouplist
MailTo=student@server6.example.com
9. tar options for file name - gzip - and bzip2
# cat /var/log/messages | grep [Ff]ailed | less
#virsh destroy domain-id
tar fzj
yum remove firefox4
10. Program to analyze standard log files and send a summary email to root
#yum groupinstall "group name"
logwatch
/dev
$ tar xzvf home.tar.gz /home
11. Shell config tool gropued like GUI firewall configurater.
/var/lib/rpm
system-config-firewall tui
rhn_register
yum info firefox4
12. Install a pkg.rpm locally
IPtables input chain
rpm localinstall pkg.rpm --nogpgcheck
/etc/sysconfig/network
rpm -ql vsftpd
13. Process packets being forwarded through the system
vsftpd restart
rpm -q pkg.rpm --scripts
rpm localinstall pkg.rpm --nogpgcheck
IPtables forward chain
14. Package file named pkg.rpm
#rpm -qac [package name]
rpm -qp pkg.rpm
#yum groupinstall "group name"
#yum grouplist
15. Redirect errors to std out
rpm localinstall pkg.rpm --nogpgcheck
service vncserver restart chkconfig vncserver on
2>&1
man search :/repository
16. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
MailTo=student@server6.example.com
# ls -l /usr/share/doc | grep httpd
#yum groupremove "group name"
17. Remote file copy /home/test1.html to the /var/pub directory on server6
nautilus
rsync /home/test1.html root@server6.example.com:/var/pub
#yum grouplist
name-version-release.architecture.rpm
18. Get a list of package groups from yum
MailTo=student@server6.example.com
ssh-keygen
/etc/sysconfig/resolv.conf
#yum grouplist
19. Where are HTML pages hosted?
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
IPtables output chain
/var/www/html/
/etc/sysconfig/iptables
20. List iptables
#iptables -L
/etc/yum.repos.d/
#yum
/dev
21. All messages sent at info priority or higher
/var/log/messages
yum install firefox4
#virsh list
#yum
22. Install with RPM
#rpm -ivh [package name]
/etc/rsyslog.conf
#yum remove [package name]
ip masqu
23. Messages related to cron log
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#virsh list
/var/log/cron
#rpm -qad [package name]
24. Determine which package provides SSH
rpm -q pkg.rpm --scripts
yum provides "*/sbin/sshd"
ssh-copy-id root@server6.example.com
$ tar czvf home.tar.gz /home
25. Start the GUI for date configuration
system-config-date
/etc/yum.repos.d
# star -xattr -H=exustar -c -f=home.star /home/
#ip addr show
26. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum provides "*/sbin/sshd"
#iptables -L
/var/log/secure
27. Show IP address with the IP command
rpm localinstall pkg.rpm --nogpgcheck
service ntpd restart
$ tar xzvf home.tar.gz /home
#ip addr show
28. Email related messages log
system-config-date
GUI menu system/administratrion/firewall
#rpm -qa | grep [package name]
/var/log/maillog
29. Rpm upgrade package u upgrade v verbose h hash
*.debug /var/log/debug.log service rsyslog restart
#iptables -D INPUT -p tcp --dport 21 -j accpet
chkconfig httpd on
#rpm -uvh [package name]
30. fqdn
Fully Qualified Domain Name
vsftpd restart
ip masqu
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
31. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
rpm -qp pkg.rpm
/var/log/secure
insert as opposed to append
IPtables input chain
32. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
updating the kernel
tar cxtv
vsftpd restart
tar xvzf /tmp/etc.tar.gz /etc
33. Contains RPM database
chkconfig httpd on
# yum
/var/lib/rpm
nautilus
34. Install star
# yum
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
rsync -a /home/test1.html root@server6.example.com:/var/pub
ntpdate -b instructor
35. Delete a rule from iptables
# renice -10 proc-id
rpm -ql vsftpd
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm --import [public key location]
36. Configuration file for system logs
/etc/rsyslog.conf
# grep -i
logwatch
.spec
37. Grep with ignoring case
# grep -i
#rpm -qad [package name]
yum provides "*/sbin/sshd"
system-config-date
38. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
#yum info [package name]
#rpm -qa | grep [package name]
MailTo=student@server6.example.com
/var/log/cron
39. Set a VNC password
[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
/var/log/secure
vsftpd
vncpasswd
40. See files installed with a package named vsftpd
/var/log/maillog
rpm -ql vsftpd
service vncserver restart chkconfig vncserver on
/etc/services
41. Display packages that match the pathname
IPtables output chain
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/ssh/sshd_config
yum provides
42. Start a VM
#iptables -D INPUT -p tcp --dport 21 -j accpet
# vi /etc/inittab change - id:3:initdefault:
# virsh create /etc/libvert/qemu/vm_file_name.xml
#rpm -uvh [package name]
43. Disk Utility Command
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/yum.repos.d
palimpsest
[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
44. Location of repo's
/etc/sysconfig/network
service sshd restart
/etc/yum.repos.d/
# renice -10 proc-id
45. List VMs
#virsh list
cp /home/test1.html /var/www/html/test1.html
/var/lib/rpm
tar fzj
46. Start GUI for Firewall
rpm --import [public key location]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# star -x -f=home.star
vsftpd restart
47. Primary configuration of ssh
ln -s /pub /var/www/html/pub
/etc/ssh/sshd_config
rsync /home root@server6.example.com:/tmp
#iptables -I INPUT -p tcp --dport 21 -j Accept
48. Send all debug level messages to /var/log/debug.log
ip masqu
*.debug /var/log/debug.log service rsyslog restart
chkconfig httpd on
tar czvf /tmp/etc.tar.gz /etc
49. Search for command in the doc directory
/var/log/secure
# ls -l /usr/share/doc | grep httpd
updating the kernel
yum remove firefox4
50. Kill a VM
tar cxtv
IPtables output chain
2>&1
#virsh destroy domain-id