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. Authentication related messages log
/var/log/secure
vsftpd restart
rsync /home root@server6.example.com:/tmp
$ tar xzvf home.tar.gz /home
2. Remove a package named firefox4
/etc/sysconfig/network
rpm localinstall pkg.rpm --nogpgcheck
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
yum remove firefox4
3. Restart ssh services
#rpm -uvh [package name]
ip masqu
service sshd restart
#yum grouplist
4. Search for command in the doc directory
updating the kernel
# ls -l /usr/share/doc | grep httpd
/etc/sysconfig/network
/var/log/messages
5. Local file copy of /home/test1.html to /var/www/html/test1.html
yum install tigervnc-server
cp /home/test1.html /var/www/html/test1.html
#iptables -L
ssh-copy-id root@server6.example.com
6. Edit files with cat until the _EOF is found
/etc/hosts
cat >> some_file << _EOF
/var/log/messages
#iptables -D INPUT -p tcp --dport 21 -j accpet
7. Gets kernel version and release number
/etc/sysconfig/iptables
#uname -r
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
2>&1
8. Primary configuration of ssh
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/ssh/sshd_config
/var/log/secure
#yum grouplist
9. Package file named pkg.rpm
tar xvzf /tmp/etc.tar.gz /etc
Fully Qualified Domain Name
tar czvf /tmp/etc.tar.gz /etc
rpm -qp pkg.rpm
10. Install a package with yum
rpm -q pkg.rpm --scripts
#iptables -L
/var/log/secure
#yum install [package name]
11. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#rpm -qi [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
12. Uninstall a package group with yum
#yum groupremove "group name"
man search :/repository
ssh-copy-id root@server6.example.com
#rpm -qi [package name]
13. Query information files with RPM
#rpm -qi [package name]
/etc/rsyslog.conf
rpm -qc httpd
vncpasswd
14. All messages sent at info priority or higher
/var/log/messages
/var/log/cron
ntpdate -b instructor
tar cxtv
15. Grep for lines that do not match (-v)
# yum
$ grep -v ^# /etc/nsswitch.conf
/etc/sysconfig/iptables
# cat /var/log/messages | grep [Ff]ailed | less
16. Extract /tmp/etc.tar.gz to /etc
#iptables -F
tar xvzf /tmp/etc.tar.gz /etc
tar czvf /tmp/etc.tar.gz /etc
#yum install [package name]
17. Sync ntp time with the instructor
#yum groupremove "group name"
/var/log/messages
# virsh create /etc/libvert/qemu/vm_file_name.xml
ntpdate -b instructor
18. Update a package
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#iptables -L
yum update
yum info firefox4
19. List VMs
system-config-firewall tui
#virsh list
/etc/sysconfig/resolv.conf
vncviewer -via student@server6 localhost:2
20. Stores IPtables rules (filter) chains - input forward output are persistant
# renice -10 proc-id
*.debug /var/log/debug.log service rsyslog restart
#iptables -L
/etc/sysconfig/iptables
21. Get information about a package named firefox4
yum info firefox4
#iptables -L
add/remove software GUI
*.debug /var/log/debug.log service rsyslog restart
22. fqdn
insert as opposed to append
Fully Qualified Domain Name
tar fzj
yum update
23. Kill a VM
#virsh destroy domain-id
rpm -qp pkg.rpm
/dev
vsftpd
24. Search for a package with firefox in the description
/var/log/secure
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/dev
yum search firefox
25. Extract a star compressed file
#yum groupremove "group name"
# star -x -f=home.star
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/yum.repos.d/
26. Where are HTML pages hosted?
/var/www/html/
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/usr/share/doc/initscripts-*/sysconfig.txt
# vi /etc/inittab change - id:3:initdefault:
27. Grep with ignoring case
# grep -i
service vncserver restart chkconfig vncserver on
vsftpd restart
/var/log/secure
28. Install a pkg.rpm locally
MailTo=student@server6.example.com
yum install tigervnc-server
rpm localinstall pkg.rpm --nogpgcheck
/etc/sysconfig/network
29. original DNS config file - still used
GUI menu system/administratrion/firewall
*.debug /var/log/debug.log service rsyslog restart
rpm -qp pkg.rpm
/etc/sysconfig/resolv.conf
30. Configuration for VNC
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/services
name-version-release.architecture.rpm
GUI menu system/administratrion/firewall
31. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
yum install firefox4
#rpm -qi [package name]
tar czvf /tmp/etc.tar.gz /etc
32. Install a package named firefox4
tar czvf /tmp/etc.tar.gz /etc
yum install firefox4
/etc/services
rsync /home root@server6.example.com:/tmp
33. An example of searching through system logs with interpretation.
/var/log/secure
IPtables output chain
/etc/ssh/sshd_config
# cat /var/log/messages | grep [Ff]ailed | less
34. Show IP address with the IP command
2>&1
#ip addr show
#virsh destroy domain-id
/etc/ssh/sshd_config
35. Import a public key
/var/log/secure
rpm --import [public key location]
rpm -qp pkg.rpm
yum update
36. Get a list of package groups from yum
#yum grouplist
rsync /home/test1.html root@server6.example.com:/var/pub
IPtables output chain
cat >> some_file << _EOF
37. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
vsftpd restart
tar xvzf /tmp/etc.tar.gz /etc
#yum remove [package name]
38. Searches for page within the #man yum
#iptables -L
man search :/repository
yum install firefox4
/etc/sysconfig/network
39. Stores filewall rules for the system.
tar cxtv
$ tar xzvf home.tar.gz /home
/etc/hosts
/etc/sysconfig/iptables
40. Start the GUI for date configuration
service vncserver restart chkconfig vncserver on
vsftpd restart
system-config-date
service sshd restart
41. Acting as a router with forwarding
# yum
yum install tigervnc-server
ip masqu
/etc/sysconfig/iptables
42. Start vsftp service
#yum install [package name]
vsftpd restart
#virsh list
rpm --import [public key location]
43. tar options for file name - gzip - and bzip2
service vncserver restart chkconfig vncserver on
tar fzj
/etc/rsyslog.conf
/var/log/secure
44. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
/dev
add/remove software GUI
/etc/yum.repos.d
45. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
insert as opposed to append
#rpm -ivh [package name]
# vi /etc/inittab change - id:3:initdefault:
yum provides
46. List scripts that can be run after installation of pkg.rpm
yum update
#virsh destroy domain-id
/etc/sysconfig/iptables
rpm -q pkg.rpm --scripts
47. Persist the web server on boot
.spec
name-version-release.architecture.rpm
rpm --import [public key location]
chkconfig httpd on
48. Use lftp to connect
tar czvf /tmp/etc.tar.gz /etc
/etc/services
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#iptables -F
49. Query all documentation with RPM
rpm localinstall pkg.rpm --nogpgcheck
/usr/share/doc/initscripts-*/sysconfig.txt
#rpm -qad [package name]
ln -s /pub /var/www/html/pub
50. Query configuration files with RPM
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ssh-copy-id root@server6.example.com
yum provides
#rpm -qac [package name]