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. List installed and available packages
system-config-firewall tui
# vi /etc/inittab change - id:3:initdefault:
yum update
yum list
2. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#rpm -uvh [package name]
MailTo=student@server6.example.com
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#iptables -I INPUT -p tcp --dport 21 -j Accept
3. Persist FTP on boot
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
GUI menu system/administratrion/firewall
#rpm -qad [package name]
chkconfig vsftpd on
4. List VMs
#virsh list
ssh-copy-id root@server6.example.com
name-version-release.architecture.rpm
# cat /var/log/messages | grep [Ff]ailed | less
5. Install the star compression tool create an archive with the star tool.
updating the kernel
# star -xattr -H=exustar -c -f=home.star /home/
#virsh destroy domain-id
chkconfig httpd on
6. Local file copy of /home/test1.html to /var/www/html/test1.html
.spec
/etc/hosts
MailTo=student@server6.example.com
cp /home/test1.html /var/www/html/test1.html
7. Documentation about sysconfig network scripts
rpm -ql vsftpd
#rpm -qad [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
/dev
8. Redirect errors to std out
ln -s /pub /var/www/html/pub
#iptables -I INPUT -p tcp --dport 21 -j Accept
ip masqu
2>&1
9. Repos for yum
/etc/yum.repos.d
add/remove software GUI
rsync /home root@server6.example.com:/tmp
ip masqu
10. Email related messages log
tar czvf /tmp/etc.tar.gz /etc
/var/log/maillog
add/remove software GUI
# star -x -f=home.star
11. All messages sent at info priority or higher
rsync /home/test1.html root@server6.example.com:/var/pub
/var/log/messages
updating the kernel
#yum grouplist
12. tar options for create - extract - test - and verbose
/var/www/html/
#ip addr show
tar cxtv
#virsh destroy domain-id
13. Display packages that match the pathname
yum provides
rpm --import [public key location]
/var/lib/rpm
$ tar czvf home.tar.gz /home
14. Repo config file
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#yum remove [package name]
[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
system-config-firewall tui
15. Install a pkg.rpm locally
IPtables output chain
rpm localinstall pkg.rpm --nogpgcheck
*.debug /var/log/debug.log service rsyslog restart
add/remove software GUI
16. See files installed with a package named vsftpd
ln -s /pub /var/www/html/pub
#virsh destroy domain-id
rpm -ql vsftpd
#iptables -L
17. Create a tar ball with gzip compression of the home dir
IPtables output chain
$ tar czvf home.tar.gz /home
chkconfig vsftpd on
updating the kernel
18. Update a package
yum update
yum install firefox4
yum provides
updating the kernel
19. Program to analyze standard log files and send a summary email to root
rsync /home/test1.html root@server6.example.com:/var/pub
logwatch
MailTo=student@server6.example.com
#yum groupremove "group name"
20. Create a symbolic link to /pub on the FTP and name it pub
# ls -l /usr/share/doc | grep httpd
man search :/repository
ln -s /pub /var/www/html/pub
#iptables -I INPUT -p tcp --dport 21 -j Accept
21. List scripts that can be run after installation of pkg.rpm
rpm -q pkg.rpm --scripts
#uname -r
vncpasswd
ip masqu
22. Get more information on a package availale through yum
/etc/hosts
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum info [package name]
*.debug /var/log/debug.log service rsyslog restart
23. Location of repo's
/var/log/cron
/etc/yum.repos.d/
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
nautilus
24. Query information files with RPM
#rpm -qi [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
vsftpd
rpm -ql vsftpd
25. Extract a star compressed file
$ grep -v ^# /etc/nsswitch.conf
yum update
# star -x -f=home.star
vsftpd
26. Kill a VM
#virsh destroy domain-id
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
vncpasswd
27. Package file named pkg.rpm
*.debug /var/log/debug.log service rsyslog restart
rpm -qp pkg.rpm
/usr/share/doc/initscripts-*/sysconfig.txt
service ntpd restart
28. Set a VNC password
vncpasswd
vsftpd restart
.spec
/etc/ssh/sshd_config
29. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
service vncserver restart chkconfig vncserver on
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
GUI menu system/administratrion/firewall
30. Get information about a package named firefox4
yum info firefox4
rsync -a /home/test1.html root@server6.example.com:/var/pub
man search :/repository
ln -s /pub /var/www/html/pub
31. FTP package used in RHEL 6
#yum info [package name]
# yum
add/remove software GUI
vsftpd
32. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
cp /home/test1.html /var/www/html/test1.html
ln -s /pub /var/www/html/pub
#ip addr show
MailTo=student@server6.example.com
33. Delete a rule from iptables
.spec
insert as opposed to append
#iptables -D INPUT -p tcp --dport 21 -j accpet
service ntpd restart
34. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
nautilus
/etc/hosts
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
.spec
35. Create a gzip-compressed backup of /etc in /tmp
tar czvf /tmp/etc.tar.gz /etc
# star -xattr -H=exustar -c -f=home.star /home/
rpm localinstall pkg.rpm --nogpgcheck
insert as opposed to append
36. original DNS config file - still used
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
tar xvzf /tmp/etc.tar.gz /etc
/etc/sysconfig/resolv.conf
#rpm -qac [package name]
37. Extract /tmp/etc.tar.gz to /etc
# ls -l /usr/share/doc | grep httpd
tar xvzf /tmp/etc.tar.gz /etc
yum install firefox4
# yum
38. System config firewall
GUI menu system/administratrion/firewall
chkconfig vsftpd on
yum update
/etc/ssh/sshd_config
39. See the configuration files installed with a package named httpd
rpm -qc httpd
/etc/sysconfig/network
#virsh list
#rpm -uvh [package name]
40. Process packets being forwarded through the system
GUI menu system/administratrion/firewall
IPtables forward chain
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum groupremove "group name"
41. Query all documentation with RPM
# grep -i
2>&1
#rpm -qad [package name]
ssh-copy-id root@server6.example.com
42. Edit files with cat until the _EOF is found
# star -x -f=home.star
cat >> some_file << _EOF
palimpsest
/etc/sysconfig/iptables
43. Where are HTML pages hosted?
Fully Qualified Domain Name
/etc/sysconfig/iptables
system-config-firewall tui
/var/www/html/
44. Gets kernel version and release number
#uname -r
yum provides "*/sbin/sshd"
ln -s /pub /var/www/html/pub
#virsh destroy domain-id
45. Acting as a router with forwarding
IPtables input chain
ip masqu
# grep -i
service vncserver restart chkconfig vncserver on
46. Use lftp to connect
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum grouplist
ip masqu
#virsh destroy domain-id
47. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/sysconfig/network
rsync -a /home/test1.html root@server6.example.com:/var/pub
yum install firefox4
/etc/sysconfig/resolv.conf
48. Show IP address with the IP command
#iptables -L
# star -xattr -H=exustar -c -f=home.star /home/
service ntpd restart
#ip addr show
49. Install a package group with yum
#rpm -qi [package name]
rsync /home/test1.html root@server6.example.com:/var/pub
#yum groupinstall "group name"
vncpasswd
50. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
/etc/sysconfig/iptables
# vi /etc/inittab change - id:3:initdefault:
IPtables forward chain