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. FTP package used in RHEL 6
#iptables -L
yum remove firefox4
cat >> some_file << _EOF
vsftpd
2. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#yum groupinstall "group name"
vncpasswd
/usr/share/doc/initscripts-*/sysconfig.txt
#iptables -I INPUT -p tcp --dport 21 -j Accept
3. Backup a home directory on desktop6 to /tmp on server6
yum search firefox
/etc/ssh/sshd_config
rsync /home root@server6.example.com:/tmp
/var/log/messages
4. Register on the RHN
/var/log/cron
rsync /home/test1.html root@server6.example.com:/var/pub
rhn_register
#virsh list
5. Connect with VNC viewer securely
/etc/sysconfig/network
# renice -10 proc-id
vncviewer -via student@server6 localhost:2
Fully Qualified Domain Name
6. Install with RPM
#rpm -ivh [package name]
cat >> some_file << _EOF
2>&1
/dev
7. Remote file copy /home/test1.html to the /var/pub directory on server6
# renice -10 proc-id
/etc/yum.repos.d/
ip masqu
rsync /home/test1.html root@server6.example.com:/var/pub
8. Search for command in the doc directory
# ls -l /usr/share/doc | grep httpd
ip masqu
/var/log/maillog
/etc/sysconfig/vncservers rpm -ql tigervnc-server
9. Query information files with RPM
# ls -l /usr/share/doc | grep httpd
#rpm -qi [package name]
#virsh list
/etc/sysconfig/iptables
10. RPM package naming
vncviewer -via student@server6 localhost:2
IPtables forward chain
yum provides
name-version-release.architecture.rpm
11. Start a VM
#virsh list
rsync /home/test1.html root@server6.example.com:/var/pub
/var/www/html/
# virsh create /etc/libvert/qemu/vm_file_name.xml
12. Acting as a router with forwarding
MailTo=student@server6.example.com
ip masqu
# star -xattr -H=exustar -c -f=home.star /home/
#yum groupinstall "group name"
13. Grep with ignoring case
vsftpd
#iptables -L
# grep -i
.spec
14. Install a package group with yum
#yum groupinstall "group name"
updating the kernel
tar fzj
vncviewer -via student@server6 localhost:2
15. Primary configuration of ssh
rpm -ql vsftpd
chkconfig vsftpd on
/etc/ssh/sshd_config
ln -s /pub /var/www/html/pub
16. GUI install / uninstall with yum
/etc/yum.repos.d
MailTo=student@server6.example.com
add/remove software GUI
IPtables input chain
17. An example of searching through system logs with interpretation.
add/remove software GUI
$ tar czvf home.tar.gz /home
service sshd restart
# cat /var/log/messages | grep [Ff]ailed | less
18. Documentation about sysconfig network scripts
/usr/share/doc/initscripts-*/sysconfig.txt
MailTo=student@server6.example.com
tar cxtv
/etc/ssh/sshd_config
19. Extract a star compressed file
# star -x -f=home.star
yum provides
logwatch
rpm -ql vsftpd
20. fqdn
vsftpd
#yum groupinstall "group name"
Fully Qualified Domain Name
/etc/yum.repos.d/
21. Send all debug level messages to /var/log/debug.log
ip masqu
/etc/yum.repos.d/
#rpm -qa | grep [package name]
*.debug /var/log/debug.log service rsyslog restart
22. Copy a public ssh key to server6
add/remove software GUI
man search :/repository
ssh-copy-id root@server6.example.com
yum install tigervnc-server
23. Install star
#iptables -D INPUT -p tcp --dport 21 -j accpet
IPtables output chain
# yum
rsync /home root@server6.example.com:/tmp
24. Restart vnc and persist on boot
#rpm -qad [package name]
#yum groupremove "group name"
service vncserver restart chkconfig vncserver on
yum install tigervnc-server
25. Restart the ntpd service
#yum install [package name]
service ntpd restart
# grep -i
tar czvf /tmp/etc.tar.gz /etc
26. Restart ssh services
service sshd restart
chkconfig vsftpd on
rpm localinstall pkg.rpm --nogpgcheck
palimpsest
27. Edit files with cat until the _EOF is found
/etc/ssh/sshd_config
cat >> some_file << _EOF
ssh-copy-id root@server6.example.com
# yum
28. Flush the firewall of all rules
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/var/www/html/
#iptables -F
#iptables -I INPUT -p tcp --dport 21 -j Accept
29. Disk Utility Command
updating the kernel
palimpsest
rsync /home root@server6.example.com:/tmp
ip masqu
30. Process packets coming into the system
IPtables input chain
#rpm -qac [package name]
# star -xattr -H=exustar -c -f=home.star /home/
/etc/sysconfig/network
31. Stores IPtables rules (filter) chains - input forward output are persistant
$ grep -v ^# /etc/nsswitch.conf
/etc/sysconfig/iptables
/etc/sysconfig/network
MailTo=student@server6.example.com
32. Stores filewall rules for the system.
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/iptables
chkconfig vsftpd on
IPtables output chain
33. Set a VNC password
#virsh destroy domain-id
man search :/repository
vncpasswd
/etc/yum.repos.d/
34. Install a package with yum
#yum remove [package name]
updating the kernel
#yum install [package name]
insert as opposed to append
35. Repos for yum
/etc/yum.repos.d
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#rpm -qac [package name]
/var/log/messages
36. List iptables
/etc/ssh/sshd_config
cat >> some_file << _EOF
#iptables -L
logwatch
37. Generate SSH Keys
/var/log/secure
# grep -i
ssh-keygen
#yum groupinstall "group name"
38. All messages sent at info priority or higher
rsync /home root@server6.example.com:/tmp
/var/log/messages
vsftpd
rpm --import [public key location]
39. Local host file (contains hostname). Can contain local system DNS.
vncviewer -via student@server6 localhost:2
yum info firefox4
/etc/hosts
Fully Qualified Domain Name
40. Get information about a package named firefox4
yum info firefox4
#yum groupremove "group name"
/etc/yum.repos.d/
#iptables -F
41. Redirect errors to std out
# yum
2>&1
/etc/sysconfig/resolv.conf
yum info firefox4
42. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
rpm -q pkg.rpm --scripts
/etc/yum.repos.d
yum search firefox
insert as opposed to append
43. Start vsftp service
$ tar xzvf home.tar.gz /home
service sshd restart
vsftpd restart
$ grep -v ^# /etc/nsswitch.conf
44. Gets kernel version and release number
IPtables input chain
rsync /home root@server6.example.com:/tmp
#uname -r
tar fzj
45. tar options for file name - gzip - and bzip2
tar fzj
rpm localinstall pkg.rpm --nogpgcheck
rpm -q pkg.rpm --scripts
cp /home/test1.html /var/www/html/test1.html
46. original DNS config file - still used
system-config-firewall tui
cp /home/test1.html /var/www/html/test1.html
#yum
/etc/sysconfig/resolv.conf
47. handles dependencies while RPMs do not uses preconfigured repos
#rpm -qa | grep [package name]
/var/log/cron
/etc/services
#yum
48. Determine which package provides SSH
#iptables -F
yum provides "*/sbin/sshd"
yum install firefox4
updating the kernel
49. Use lftp to connect
rpm -q pkg.rpm --scripts
logwatch
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
tar czvf /tmp/etc.tar.gz /etc
50. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
chkconfig httpd on
#yum install [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
system-config-date