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. Rpm upgrade package u upgrade v verbose h hash
# yum
$ tar czvf home.tar.gz /home
Fully Qualified Domain Name
#rpm -uvh [package name]
2. Extract /tmp/etc.tar.gz to /etc
tar xvzf /tmp/etc.tar.gz /etc
add/remove software GUI
#uname -r
cp /home/test1.html /var/www/html/test1.html
3. Copy a public ssh key to server6
#yum remove [package name]
#ip addr show
/var/log/secure
ssh-copy-id root@server6.example.com
4. Import a public key
MailTo=student@server6.example.com
# star -xattr -H=exustar -c -f=home.star /home/
rpm --import [public key location]
rpm localinstall pkg.rpm --nogpgcheck
5. Where are HTML pages hosted?
/var/www/html/
tar cxtv
ln -s /pub /var/www/html/pub
/var/lib/rpm
6. Send all debug level messages to /var/log/debug.log
/var/log/secure
IPtables input chain
yum remove firefox4
*.debug /var/log/debug.log service rsyslog restart
7. An example of searching through system logs with interpretation.
/dev
vsftpd restart
# cat /var/log/messages | grep [Ff]ailed | less
.spec
8. GUI File Manager
IPtables output chain
rpm localinstall pkg.rpm --nogpgcheck
/usr/share/doc/initscripts-*/sysconfig.txt
nautilus
9. Grep for lines that do not match (-v)
$ grep -v ^# /etc/nsswitch.conf
#iptables -D INPUT -p tcp --dport 21 -j accpet
palimpsest
Fully Qualified Domain Name
10. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
/var/log/cron
tar xvzf /tmp/etc.tar.gz /etc
cp /home/test1.html /var/www/html/test1.html
11. Install a package group with yum
/var/www/html/
#yum groupinstall "group name"
name-version-release.architecture.rpm
#iptables -D INPUT -p tcp --dport 21 -j accpet
12. Backup a home directory on desktop6 to /tmp on server6
#virsh list
ssh-copy-id root@server6.example.com
rsync /home root@server6.example.com:/tmp
/etc/sysconfig/network
13. See files installed with a package named vsftpd
ntpdate -b instructor
/etc/sysconfig/network
$ tar xzvf home.tar.gz /home
rpm -ql vsftpd
14. Repos for yum
IPtables output chain
tar czvf /tmp/etc.tar.gz /etc
/etc/yum.repos.d
/etc/sysconfig/vncservers rpm -ql tigervnc-server
15. Start GUI for Firewall
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# renice -10 proc-id
system-config-firewall tui
IPtables output chain
16. handles dependencies while RPMs do not uses preconfigured repos
#rpm -ivh [package name]
/etc/sysconfig/iptables
/etc/yum.repos.d/
#yum
17. Persist FTP on boot
#rpm -qad [package name]
chkconfig vsftpd on
system-config-firewall tui
nautilus
18. Create a symbolic link to /pub on the FTP and name it pub
rpm localinstall pkg.rpm --nogpgcheck
yum provides "*/sbin/sshd"
ln -s /pub /var/www/html/pub
service sshd restart
19. Start a VM
#iptables -F
ntpdate -b instructor
#rpm -qac [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
20. Searches for page within the #man yum
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
man search :/repository
yum provides
# star -xattr -H=exustar -c -f=home.star /home/
21. Create a gzip-compressed backup of /etc in /tmp
tar czvf /tmp/etc.tar.gz /etc
yum install tigervnc-server
rpm -qp pkg.rpm
rsync /home root@server6.example.com:/tmp
22. All messages sent at info priority or higher
#rpm -uvh [package name]
add/remove software GUI
/etc/sysconfig/network
/var/log/messages
23. original DNS config file - still used
/etc/sysconfig/resolv.conf
#iptables -F
.spec
rhn_register
24. Location of repo's
/etc/yum.repos.d/
tar fzj
vsftpd restart
logwatch
25. Search for a package with firefox in the description
vsftpd restart
yum search firefox
/var/lib/rpm
/etc/services
26. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
#rpm -uvh [package name]
rpm localinstall pkg.rpm --nogpgcheck
service sshd restart
27. Connect with VNC viewer securely
tar xvzf /tmp/etc.tar.gz /etc
#yum info [package name]
vncviewer -via student@server6 localhost:2
yum info firefox4
28. Create a tar ball with gzip compression of the home dir
#iptables -L
GUI menu system/administratrion/firewall
/etc/yum.repos.d/
$ tar czvf home.tar.gz /home
29. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
vncviewer -via student@server6 localhost:2
/etc/sysconfig/network
#virsh list
rpm -qp pkg.rpm
30. Start vsftp service
logwatch
#rpm -qi [package name]
rpm -ql vsftpd
vsftpd restart
31. Persist the web server on boot
add/remove software GUI
#yum groupremove "group name"
chkconfig httpd on
service sshd restart
32. File holding services - ports - protocols assoicated
/etc/services
/etc/ssh/sshd_config
#ip addr show
# cat /var/log/messages | grep [Ff]ailed | less
33. System config firewall
rpm -qc httpd
chkconfig httpd on
GUI menu system/administratrion/firewall
/etc/hosts
34. Configuration for VNC
updating the kernel
service sshd restart
/etc/sysconfig/vncservers rpm -ql tigervnc-server
vncviewer -via student@server6 localhost:2
35. Disk Utility Command
/var/lib/rpm
#virsh list
ssh-copy-id root@server6.example.com
palimpsest
36. FTP package used in RHEL 6
chkconfig vsftpd on
#iptables -L
vsftpd
tar fzj
37. Extract a star compressed file
/var/log/maillog
tar xvzf /tmp/etc.tar.gz /etc
tar cxtv
# star -x -f=home.star
38. Local file copy of /home/test1.html to /var/www/html/test1.html
service sshd restart
#rpm -ivh [package name]
/etc/sysconfig/network
cp /home/test1.html /var/www/html/test1.html
39. List VMs
#virsh list
rpm -qc httpd
IPtables input chain
vncpasswd
40. Determine which package provides SSH
name-version-release.architecture.rpm
service vncserver restart chkconfig vncserver on
IPtables forward chain
yum provides "*/sbin/sshd"
41. Uninstall a package group with yum
# star -xattr -H=exustar -c -f=home.star /home/
rpm -q pkg.rpm --scripts
ssh-keygen
#yum groupremove "group name"
42. Sync ntp time with the instructor
IPtables output chain
#yum remove [package name]
ntpdate -b instructor
vncpasswd
43. Install a package with yum
#yum install [package name]
$ grep -v ^# /etc/nsswitch.conf
#rpm -qa | grep [package name]
#yum remove [package name]
44. List scripts that can be run after installation of pkg.rpm
MailTo=student@server6.example.com
rpm -q pkg.rpm --scripts
vsftpd restart
ip masqu
45. Restart the ntpd service
# yum
system-config-firewall tui
service ntpd restart
tar xvzf /tmp/etc.tar.gz /etc
46. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
*.debug /var/log/debug.log service rsyslog restart
# star -x -f=home.star
insert as opposed to append
rpm -qc httpd
47. Adjust the persistent runlevel
*.debug /var/log/debug.log service rsyslog restart
#virsh list
# vi /etc/inittab change - id:3:initdefault:
.spec
48. Documentation about sysconfig network scripts
yum provides "*/sbin/sshd"
nautilus
#rpm -qa | grep [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
49. Register on the RHN
rhn_register
yum install tigervnc-server
cat >> some_file << _EOF
*.debug /var/log/debug.log service rsyslog restart
50. Primary configuration of ssh
ntpdate -b instructor
rsync -a /home/test1.html root@server6.example.com:/var/pub
#virsh list
/etc/ssh/sshd_config