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. Configuration file for system logs
#yum install [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/rsyslog.conf
2. Search for command in the doc directory
#rpm -qad [package name]
ssh-copy-id root@server6.example.com
rpm -qp pkg.rpm
# ls -l /usr/share/doc | grep httpd
3. Stores IPtables rules (filter) chains - input forward output are persistant
tar cxtv
/etc/sysconfig/iptables
*.debug /var/log/debug.log service rsyslog restart
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
4. Program to analyze standard log files and send a summary email to root
logwatch
tar fzj
#uname -r
chkconfig vsftpd on
5. List iptables
MailTo=student@server6.example.com
#uname -r
#iptables -L
tar cxtv
6. Update a package
yum update
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
yum provides "*/sbin/sshd"
tar cxtv
7. Set a VNC password
tar fzj
/var/lib/rpm
vncpasswd
#yum info [package name]
8. Disks available for partitions
rsync -a /home/test1.html root@server6.example.com:/var/pub
rpm -qp pkg.rpm
# yum
/dev
9. tar options for file name - gzip - and bzip2
tar fzj
add/remove software GUI
rsync /home/test1.html root@server6.example.com:/var/pub
2>&1
10. Install a package group with yum
#yum info [package name]
#yum groupinstall "group name"
/var/log/maillog
yum provides
11. Disk Utility Command
/var/log/messages
palimpsest
#ip addr show
/var/log/cron
12. Messages related to cron log
/var/log/secure
/var/log/cron
#yum groupinstall "group name"
/var/www/html/
13. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
logwatch
MailTo=student@server6.example.com
#rpm -qac [package name]
/etc/sysconfig/iptables
14. Remove a package named firefox4
/etc/sysconfig/iptables
#virsh destroy domain-id
# star -xattr -H=exustar -c -f=home.star /home/
yum remove firefox4
15. Get a list of package groups from yum
$ tar xzvf home.tar.gz /home
yum provides
#yum grouplist
rpm -qp pkg.rpm
16. original DNS config file - still used
IPtables output chain
/etc/sysconfig/resolv.conf
#yum grouplist
rpm -qp pkg.rpm
17. Location of repo's
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/yum.repos.d
/var/log/messages
/etc/yum.repos.d/
18. Edit files with cat until the _EOF is found
ssh-keygen
cat >> some_file << _EOF
yum info firefox4
logwatch
19. Package file named pkg.rpm
system-config-firewall tui
service ntpd restart
#yum remove [package name]
rpm -qp pkg.rpm
20. Backup a home directory on desktop6 to /tmp on server6
/var/www/html/
rsync /home root@server6.example.com:/tmp
#rpm -qac [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
21. Restart vnc and persist on boot
/etc/ssh/sshd_config
rpm -q pkg.rpm --scripts
service vncserver restart chkconfig vncserver on
#yum grouplist
22. See files installed with a package named vsftpd
service ntpd restart
/usr/share/doc/initscripts-*/sysconfig.txt
rpm -ql vsftpd
/var/log/maillog
23. Persist FTP on boot
ip masqu
#yum groupinstall "group name"
# renice -10 proc-id
chkconfig vsftpd on
24. Install a package named firefox4
$ grep -v ^# /etc/nsswitch.conf
yum install firefox4
rpm -ql vsftpd
#iptables -L
25. List VMs
#virsh list
yum provides "*/sbin/sshd"
rhn_register
rpm -qp pkg.rpm
26. Determine which package provides SSH
#uname -r
yum provides "*/sbin/sshd"
/etc/rsyslog.conf
$ tar xzvf home.tar.gz /home
27. Install star
/var/www/html/
palimpsest
# yum
yum list
28. Extract a gzipped tar ball in your home directory
$ tar xzvf home.tar.gz /home
*.debug /var/log/debug.log service rsyslog restart
MailTo=student@server6.example.com
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
29. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
/etc/sysconfig/vncservers rpm -ql tigervnc-server
.spec
IPtables output chain
30. Local host file (contains hostname). Can contain local system DNS.
ssh-copy-id root@server6.example.com
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/hosts
31. GUI install / uninstall with yum
add/remove software GUI
ln -s /pub /var/www/html/pub
# star -xattr -H=exustar -c -f=home.star /home/
/etc/sysconfig/resolv.conf
32. Show IP address with the IP command
tar fzj
vncviewer -via student@server6 localhost:2
#yum grouplist
#ip addr show
33. Contains RPM database
/var/lib/rpm
rpm localinstall pkg.rpm --nogpgcheck
$ tar czvf home.tar.gz /home
updating the kernel
34. Get information about a package named firefox4
/var/log/cron
/etc/yum.repos.d/
#yum groupinstall "group name"
yum info firefox4
35. Gets kernel version and release number
service sshd restart
/var/lib/rpm
#uname -r
MailTo=student@server6.example.com
36. Start a VM
nautilus
rpm -qp pkg.rpm
yum remove firefox4
# virsh create /etc/libvert/qemu/vm_file_name.xml
37. Start the GUI for date configuration
/etc/sysconfig/network
system-config-date
ip masqu
$ tar xzvf home.tar.gz /home
38. See the configuration files installed with a package named httpd
ln -s /pub /var/www/html/pub
$ tar xzvf home.tar.gz /home
rpm -qc httpd
#yum groupremove "group name"
39. Repo config file
[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
vsftpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
#iptables -I INPUT -p tcp --dport 21 -j Accept
40. Shell config tool gropued like GUI firewall configurater.
# virsh create /etc/libvert/qemu/vm_file_name.xml
Fully Qualified Domain Name
system-config-firewall tui
[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
41. Process packets coming out of the system
/var/www/html/
/etc/rsyslog.conf
tar xvzf /tmp/etc.tar.gz /etc
IPtables output chain
42. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#ip addr show
/var/log/secure
#iptables -I INPUT -p tcp --dport 21 -j Accept
/dev
43. Create a gzip-compressed backup of /etc in /tmp
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -qa | grep [package name]
tar czvf /tmp/etc.tar.gz /etc
GUI menu system/administratrion/firewall
44. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -qi [package name]
/etc/services
/etc/sysconfig/resolv.conf
45. Query configuration files with RPM
# virsh create /etc/libvert/qemu/vm_file_name.xml
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qac [package name]
logwatch
46. Kill a VM
/etc/yum.repos.d
tar czvf /tmp/etc.tar.gz /etc
# star -x -f=home.star
#virsh destroy domain-id
47. Delete a rule from iptables
rpm localinstall pkg.rpm --nogpgcheck
/var/log/messages
add/remove software GUI
#iptables -D INPUT -p tcp --dport 21 -j accpet
48. Extract a star compressed file
rpm -ql vsftpd
$ grep -v ^# /etc/nsswitch.conf
#rpm -uvh [package name]
# star -x -f=home.star
49. Documentation about sysconfig network scripts
/var/log/messages
# virsh create /etc/libvert/qemu/vm_file_name.xml
/usr/share/doc/initscripts-*/sysconfig.txt
/var/log/maillog
50. Query all documentation with RPM
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -L
#rpm -qac [package name]
#rpm -qad [package name]