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. FTP package used in RHEL 6
#yum install [package name]
#rpm -ivh [package name]
vsftpd
/etc/ssh/sshd_config
2. Program to analyze standard log files and send a summary email to root
tar xvzf /tmp/etc.tar.gz /etc
logwatch
vncviewer -via student@server6 localhost:2
service sshd restart
3. Get a list of package groups from yum
chkconfig httpd on
#uname -r
tar cxtv
#yum grouplist
4. Kill a VM
add/remove software GUI
/etc/sysconfig/iptables
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#virsh destroy domain-id
5. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
# virsh create /etc/libvert/qemu/vm_file_name.xml
tar czvf /tmp/etc.tar.gz /etc
#rpm -qac [package name]
6. Determine which package provides SSH
/var/log/cron
rsync /home/test1.html root@server6.example.com:/var/pub
#rpm -qa | grep [package name]
yum provides "*/sbin/sshd"
7. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/usr/share/doc/initscripts-*/sysconfig.txt
insert as opposed to append
#rpm -uvh [package name]
8. Grep for lines that do not match (-v)
/etc/hosts
$ grep -v ^# /etc/nsswitch.conf
/usr/share/doc/initscripts-*/sysconfig.txt
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
9. An example of searching through system logs with interpretation.
rsync /home/test1.html root@server6.example.com:/var/pub
#yum grouplist
# yum
# cat /var/log/messages | grep [Ff]ailed | less
10. Extract /tmp/etc.tar.gz to /etc
logwatch
rpm localinstall pkg.rpm --nogpgcheck
tar xvzf /tmp/etc.tar.gz /etc
#yum remove [package name]
11. Search for a package with firefox in the description
rsync -a /home/test1.html root@server6.example.com:/var/pub
yum search firefox
# ls -l /usr/share/doc | grep httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
12. Repo config file
#yum groupremove "group name"
rpm -q pkg.rpm --scripts
man search :/repository
[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
13. Update a package
/var/log/cron
$ tar czvf home.tar.gz /home
yum update
/var/log/messages
14. Configuration for VNC
#virsh destroy domain-id
/etc/sysconfig/vncservers rpm -ql tigervnc-server
insert as opposed to append
rsync /home root@server6.example.com:/tmp
15. Restart ssh services
service sshd restart
tar czvf /tmp/etc.tar.gz /etc
/etc/sysconfig/resolv.conf
#virsh destroy domain-id
16. Generate SSH Keys
#rpm -ivh [package name]
ssh-keygen
yum update
# star -x -f=home.star
17. handles dependencies while RPMs do not uses preconfigured repos
tar cxtv
add/remove software GUI
/etc/yum.repos.d/
#yum
18. 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
#rpm -qi [package name]
/etc/sysconfig/resolv.conf
IPtables output chain
19. Searches for page within the #man yum
#rpm -qad [package name]
/var/log/maillog
man search :/repository
Fully Qualified Domain Name
20. Connect with VNC viewer securely
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
vncviewer -via student@server6 localhost:2
ssh-copy-id root@server6.example.com
# star -x -f=home.star
21. List installed and available packages
#yum groupremove "group name"
yum list
ntpdate -b instructor
vncpasswd
22. Restart the ntpd service
service ntpd restart
yum provides "*/sbin/sshd"
man search :/repository
ln -s /pub /var/www/html/pub
23. tar options for create - extract - test - and verbose
system-config-firewall tui
tar cxtv
rsync /home root@server6.example.com:/tmp
service ntpd restart
24. Rpm upgrade package u upgrade v verbose h hash
IPtables output chain
#rpm -uvh [package name]
vncpasswd
yum search firefox
25. Backup a home directory on desktop6 to /tmp on server6
insert as opposed to append
#yum install [package name]
palimpsest
rsync /home root@server6.example.com:/tmp
26. Local host file (contains hostname). Can contain local system DNS.
/etc/hosts
/var/log/secure
MailTo=student@server6.example.com
system-config-firewall tui
27. Start vsftp service
#rpm -qad [package name]
vsftpd restart
#iptables -L
IPtables output chain
28. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
tar czvf /tmp/etc.tar.gz /etc
/var/www/html/
/etc/hosts
29. Email related messages log
cat >> some_file << _EOF
/var/log/maillog
rpm --import [public key location]
/var/log/messages
30. Flush the firewall of all rules
#iptables -F
yum install firefox4
yum list
chkconfig vsftpd on
31. Create a gzip-compressed backup of /etc in /tmp
service sshd restart
# grep -i
tar czvf /tmp/etc.tar.gz /etc
#rpm -qa | grep [package name]
32. All messages sent at info priority or higher
#yum
service vncserver restart chkconfig vncserver on
/var/log/messages
tar cxtv
33. Create a tar ball with gzip compression of the home dir
/etc/services
rpm -qp pkg.rpm
service vncserver restart chkconfig vncserver on
$ tar czvf home.tar.gz /home
34. System config firewall
#virsh destroy domain-id
GUI menu system/administratrion/firewall
#iptables -F
yum provides
35. Extract a gzipped tar ball in your home directory
man search :/repository
yum list
$ tar xzvf home.tar.gz /home
tar xvzf /tmp/etc.tar.gz /etc
36. Process packets coming out of the system
.spec
# yum
man search :/repository
IPtables output chain
37. Persist FTP on boot
chkconfig vsftpd on
#ip addr show
vsftpd restart
#virsh list
38. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/sysconfig/iptables
MailTo=student@server6.example.com
yum install tigervnc-server
rsync /home root@server6.example.com:/tmp
39. Adjust the persistent runlevel
/etc/yum.repos.d
# vi /etc/inittab change - id:3:initdefault:
tar xvzf /tmp/etc.tar.gz /etc
vncpasswd
40. Gets kernel version and release number
#iptables -L
IPtables input chain
#uname -r
/etc/sysconfig/resolv.conf
41. Query configuration files with RPM
#virsh list
2>&1
ip masqu
#rpm -qac [package name]
42. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
#ip addr show
ssh-copy-id root@server6.example.com
/var/log/messages
43. fqdn
Fully Qualified Domain Name
cat >> some_file << _EOF
rpm --import [public key location]
system-config-firewall tui
44. Show IP address with the IP command
service sshd restart
#ip addr show
rpm -ql vsftpd
vncpasswd
45. Where are HTML pages hosted?
service ntpd restart
#yum info [package name]
/var/www/html/
chkconfig httpd on
46. Acting as a router with forwarding
vsftpd
yum provides
rpm -qp pkg.rpm
ip masqu
47. Disk Utility Command
$ tar xzvf home.tar.gz /home
palimpsest
#virsh list
updating the kernel
48. RPM package naming
name-version-release.architecture.rpm
#rpm -qad [package name]
yum search firefox
rsync /home root@server6.example.com:/tmp
49. Use lftp to connect
yum provides "*/sbin/sshd"
# star -xattr -H=exustar -c -f=home.star /home/
nautilus
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
50. Edit files with cat until the _EOF is found
IPtables forward chain
GUI menu system/administratrion/firewall
#rpm -uvh [package name]
cat >> some_file << _EOF