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. Restart vnc and persist on boot
yum update
#iptables -L
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
service vncserver restart chkconfig vncserver on
2. Remove a package with yum
rpm localinstall pkg.rpm --nogpgcheck
system-config-date
#rpm -uvh [package name]
#yum remove [package name]
3. Persist the web server on boot
yum info firefox4
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
chkconfig httpd on
yum list
4. Redirect errors to std out
/etc/ssh/sshd_config
logwatch
2>&1
#yum remove [package name]
5. Shell config tool gropued like GUI firewall configurater.
yum install tigervnc-server
ssh-keygen
# cat /var/log/messages | grep [Ff]ailed | less
system-config-firewall tui
6. Connect with VNC viewer securely
vncviewer -via student@server6 localhost:2
# renice -10 proc-id
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qac [package name]
7. All messages sent at info priority or higher
service sshd restart
/var/log/messages
2>&1
rpm -qp pkg.rpm
8. Install star
rsync /home root@server6.example.com:/tmp
# yum
rpm -qp pkg.rpm
/etc/ssh/sshd_config
9. Where are HTML pages hosted?
.spec
/var/www/html/
#yum
tar xvzf /tmp/etc.tar.gz /etc
10. Determine which package provides SSH
yum provides "*/sbin/sshd"
chkconfig httpd on
/etc/hosts
/etc/sysconfig/iptables
11. Kill a VM
ssh-keygen
yum list
#yum
#virsh destroy domain-id
12. Edit files with cat until the _EOF is found
.spec
# star -xattr -H=exustar -c -f=home.star /home/
$ grep -v ^# /etc/nsswitch.conf
cat >> some_file << _EOF
13. GUI File Manager
#uname -r
GUI menu system/administratrion/firewall
nautilus
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
14. Import a public key
vsftpd restart
rpm --import [public key location]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
IPtables forward chain
15. List iptables
vncviewer -via student@server6 localhost:2
cp /home/test1.html /var/www/html/test1.html
#iptables -L
$ tar czvf home.tar.gz /home
16. Extract /tmp/etc.tar.gz to /etc
#rpm -qad [package name]
#rpm -qi [package name]
tar xvzf /tmp/etc.tar.gz /etc
/etc/hosts
17. Program to analyze standard log files and send a summary email to root
rhn_register
ip masqu
logwatch
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
18. List installed and available packages
yum list
tar czvf /tmp/etc.tar.gz /etc
yum install tigervnc-server
/var/www/html/
19. Start vsftp service
vsftpd restart
tar cxtv
# vi /etc/inittab change - id:3:initdefault:
rsync -a /home/test1.html root@server6.example.com:/var/pub
20. Extract a star compressed file
# star -x -f=home.star
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -uvh [package name]
yum list
21. Remove a package named firefox4
#iptables -L
yum remove firefox4
/etc/sysconfig/iptables
rpm -qc httpd
22. Backup a home directory on desktop6 to /tmp on server6
yum install firefox4
yum list
rsync /home root@server6.example.com:/tmp
nautilus
23. Install with RPM
vsftpd restart
# yum
#rpm -ivh [package name]
# cat /var/log/messages | grep [Ff]ailed | less
24. Authentication related messages log
/var/log/maillog
IPtables forward chain
#rpm -qac [package name]
/var/log/secure
25. See the configuration files installed with a package named httpd
/etc/rsyslog.conf
rpm -qc httpd
#rpm -qad [package name]
yum remove firefox4
26. GUI install / uninstall with yum
IPtables forward chain
chkconfig vsftpd on
tar czvf /tmp/etc.tar.gz /etc
add/remove software GUI
27. Extract a gzipped tar ball in your home directory
#rpm -qac [package name]
rsync /home root@server6.example.com:/tmp
$ tar xzvf home.tar.gz /home
tar fzj
28. Display packages that match the pathname
yum install firefox4
#yum groupinstall "group name"
yum provides
IPtables input chain
29. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
cat >> some_file << _EOF
/usr/share/doc/initscripts-*/sysconfig.txt
ln -s /pub /var/www/html/pub
.spec
30. Remote file copy /home/test1.html to the /var/pub directory on server6
name-version-release.architecture.rpm
rsync /home/test1.html root@server6.example.com:/var/pub
IPtables output chain
ssh-copy-id root@server6.example.com
31. Get information about a package named firefox4
/dev
# vi /etc/inittab change - id:3:initdefault:
rpm localinstall pkg.rpm --nogpgcheck
yum info firefox4
32. Install a package with yum
IPtables forward chain
#yum install [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/sysconfig/vncservers rpm -ql tigervnc-server
33. Show IP address with the IP command
#ip addr show
# renice -10 proc-id
yum info firefox4
.spec
34. Stores filewall rules for the system.
/etc/sysconfig/iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# star -x -f=home.star
35. Uninstall a package group with yum
#rpm -qi [package name]
rpm -ql vsftpd
cat >> some_file << _EOF
#yum groupremove "group name"
36. RPM package naming
name-version-release.architecture.rpm
yum update
rsync /home/test1.html root@server6.example.com:/var/pub
rsync /home root@server6.example.com:/tmp
37. Start a VM
#yum grouplist
/etc/ssh/sshd_config
# virsh create /etc/libvert/qemu/vm_file_name.xml
#virsh destroy domain-id
38. Restart ssh services
service sshd restart
rhn_register
rsync /home root@server6.example.com:/tmp
nautilus
39. Create a tar ball with gzip compression of the home dir
/etc/rsyslog.conf
/etc/sysconfig/resolv.conf
$ tar czvf home.tar.gz /home
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
40. Configuration file for system logs
#rpm -uvh [package name]
system-config-date
vncviewer -via student@server6 localhost:2
/etc/rsyslog.conf
41. Persist FTP on boot
yum install tigervnc-server
#yum
yum provides
chkconfig vsftpd on
42. File holding services - ports - protocols assoicated
/etc/services
ln -s /pub /var/www/html/pub
/etc/sysconfig/network
#yum
43. Install the star compression tool create an archive with the star tool.
service sshd restart
#iptables -I INPUT -p tcp --dport 21 -j Accept
vncviewer -via student@server6 localhost:2
# star -xattr -H=exustar -c -f=home.star /home/
44. Use lftp to connect
cp /home/test1.html /var/www/html/test1.html
rsync /home/test1.html root@server6.example.com:/var/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
# star -x -f=home.star
45. Package file named pkg.rpm
rpm -qp pkg.rpm
/dev
# renice -10 proc-id
# vi /etc/inittab change - id:3:initdefault:
46. System config firewall
yum search firefox
2>&1
#ip addr show
GUI menu system/administratrion/firewall
47. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
vncviewer -via student@server6 localhost:2
/etc/yum.repos.d
MailTo=student@server6.example.com
ip masqu
48. Repos for yum
yum install tigervnc-server
/etc/yum.repos.d
# vi /etc/inittab change - id:3:initdefault:
add/remove software GUI
49. tar options for file name - gzip - and bzip2
service ntpd restart
tar fzj
nautilus
#rpm -qac [package name]
50. Email related messages log
/var/lib/rpm
logwatch
/var/log/maillog
rsync /home/test1.html root@server6.example.com:/var/pub