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. Sync ntp time with the instructor
ntpdate -b instructor
rsync /home root@server6.example.com:/tmp
yum install tigervnc-server
/var/lib/rpm
2. Install a package group with yum
#rpm -qi [package name]
#rpm -qa | grep [package name]
#virsh destroy domain-id
#yum groupinstall "group name"
3. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/services
#iptables -F
/etc/sysconfig/network
rpm -qp pkg.rpm
4. GUI File Manager
nautilus
#virsh destroy domain-id
/etc/sysconfig/iptables
yum list
5. Grep for lines that do not match (-v)
#yum
$ grep -v ^# /etc/nsswitch.conf
updating the kernel
yum provides "*/sbin/sshd"
6. List installed and available packages
rhn_register
system-config-firewall tui
yum list
chkconfig httpd on
7. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
palimpsest
/var/log/cron
rpm -qc httpd
8. Disks available for partitions
/etc/sysconfig/iptables
IPtables forward chain
rpm localinstall pkg.rpm --nogpgcheck
/dev
9. Connect with VNC viewer securely
$ tar czvf home.tar.gz /home
/var/lib/rpm
insert as opposed to append
vncviewer -via student@server6 localhost:2
10. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
#yum
#yum groupinstall "group name"
yum info firefox4
11. Install star
ntpdate -b instructor
#yum
#virsh list
# yum
12. An example of searching through system logs with interpretation.
# cat /var/log/messages | grep [Ff]ailed | less
# virsh create /etc/libvert/qemu/vm_file_name.xml
2>&1
# ls -l /usr/share/doc | grep httpd
13. Extract a star compressed file
yum remove firefox4
# star -x -f=home.star
#rpm -uvh [package name]
#ip addr show
14. Searches for page within the #man yum
# grep -i
man search :/repository
MailTo=student@server6.example.com
/var/log/messages
15. Query information files with RPM
#rpm -qi [package name]
#iptables -L
vsftpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
16. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
/usr/share/doc/initscripts-*/sysconfig.txt
# vi /etc/inittab change - id:3:initdefault:
yum provides
rsync -a /home/test1.html root@server6.example.com:/var/pub
17. Repos for yum
/etc/yum.repos.d
nautilus
IPtables input chain
.spec
18. Create a gzip-compressed backup of /etc in /tmp
# ls -l /usr/share/doc | grep httpd
*.debug /var/log/debug.log service rsyslog restart
cp /home/test1.html /var/www/html/test1.html
tar czvf /tmp/etc.tar.gz /etc
19. Kill a VM
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#virsh destroy domain-id
IPtables output chain
add/remove software GUI
20. Grep with ignoring case
#rpm -qi [package name]
# star -x -f=home.star
yum list
# grep -i
21. Determine which package provides SSH
2>&1
MailTo=student@server6.example.com
yum provides "*/sbin/sshd"
Fully Qualified Domain Name
22. Persist FTP on boot
/etc/ssh/sshd_config
MailTo=student@server6.example.com
IPtables output chain
chkconfig vsftpd on
23. Location of repo's
#yum groupinstall "group name"
#virsh list
#yum groupremove "group name"
/etc/yum.repos.d/
24. original DNS config file - still used
rhn_register
yum search firefox
/etc/sysconfig/resolv.conf
yum list
25. Show IP address with the IP command
#ip addr show
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/var/www/html/
# cat /var/log/messages | grep [Ff]ailed | less
26. Search for command in the doc directory
#iptables -D INPUT -p tcp --dport 21 -j accpet
# ls -l /usr/share/doc | grep httpd
add/remove software GUI
# yum
27. RPM package naming
name-version-release.architecture.rpm
#iptables -F
vncpasswd
# grep -i
28. Package file named pkg.rpm
/var/log/messages
tar xvzf /tmp/etc.tar.gz /etc
rpm -qp pkg.rpm
#yum
29. FTP package used in RHEL 6
vsftpd
Fully Qualified Domain Name
rpm localinstall pkg.rpm --nogpgcheck
# virsh create /etc/libvert/qemu/vm_file_name.xml
30. Persist the web server on boot
chkconfig httpd on
rhn_register
tar xvzf /tmp/etc.tar.gz /etc
rpm -qp pkg.rpm
31. See the configuration files installed with a package named httpd
IPtables input chain
ln -s /pub /var/www/html/pub
/dev
rpm -qc httpd
32. Remove a package named firefox4
yum remove firefox4
/var/lib/rpm
$ tar czvf home.tar.gz /home
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
33. Program to analyze standard log files and send a summary email to root
updating the kernel
/etc/sysconfig/resolv.conf
logwatch
yum search firefox
34. Start the GUI for date configuration
system-config-date
cat >> some_file << _EOF
$ tar xzvf home.tar.gz /home
IPtables forward chain
35. Restart ssh services
service sshd restart
tar czvf /tmp/etc.tar.gz /etc
/etc/yum.repos.d/
$ tar czvf home.tar.gz /home
36. Restart vnc and persist on boot
/etc/rsyslog.conf
service vncserver restart chkconfig vncserver on
#yum
# virsh create /etc/libvert/qemu/vm_file_name.xml
37. Install a package named firefox4
rpm -q pkg.rpm --scripts
yum install firefox4
/etc/services
/var/log/maillog
38. Generate SSH Keys
rpm -qp pkg.rpm
#yum grouplist
# ls -l /usr/share/doc | grep httpd
ssh-keygen
39. All messages sent at info priority or higher
tar cxtv
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum provides
/var/log/messages
40. Send all debug level messages to /var/log/debug.log
*.debug /var/log/debug.log service rsyslog restart
/etc/sysconfig/network
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
service vncserver restart chkconfig vncserver on
41. Shell config tool gropued like GUI firewall configurater.
yum install firefox4
#rpm -qad [package name]
system-config-firewall tui
rpm -qc httpd
42. Authentication related messages log
/etc/rsyslog.conf
/var/log/secure
#rpm -qi [package name]
/etc/yum.repos.d/
43. Install with RPM
rhn_register
/usr/share/doc/initscripts-*/sysconfig.txt
/var/log/maillog
#rpm -ivh [package name]
44. Start vsftp service
vsftpd restart
yum remove firefox4
IPtables forward chain
#yum install [package name]
45. Display packages that match the pathname
#virsh destroy domain-id
rpm -q pkg.rpm --scripts
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
yum provides
46. Get information about a package named firefox4
# grep -i
# cat /var/log/messages | grep [Ff]ailed | less
#yum remove [package name]
yum info firefox4
47. Remove a package with yum
#rpm -qac [package name]
rsync /home/test1.html root@server6.example.com:/var/pub
.spec
#yum remove [package name]
48. Update a package
# cat /var/log/messages | grep [Ff]ailed | less
yum update
#iptables -L
/var/lib/rpm
49. Extract a gzipped tar ball in your home directory
rpm -q pkg.rpm --scripts
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
$ tar xzvf home.tar.gz /home
ip masqu
50. List scripts that can be run after installation of pkg.rpm
IPtables input chain
system-config-date
.spec
rpm -q pkg.rpm --scripts