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. Create a symbolic link to /pub on the FTP and name it pub
#rpm -uvh [package name]
#virsh destroy domain-id
ln -s /pub /var/www/html/pub
rhn_register
2. Local host file (contains hostname). Can contain local system DNS.
IPtables forward chain
/etc/hosts
GUI menu system/administratrion/firewall
rpm --import [public key location]
3. Start the GUI for date configuration
/etc/sysconfig/resolv.conf
#rpm -ivh [package name]
system-config-date
/etc/rsyslog.conf
4. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar czvf /tmp/etc.tar.gz /etc
tar fzj
tar cxtv
5. Repos for yum
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
cp /home/test1.html /var/www/html/test1.html
/etc/yum.repos.d
insert as opposed to append
6. Redirect errors to std out
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
2>&1
tar xvzf /tmp/etc.tar.gz /etc
#yum groupinstall "group name"
7. See files installed with a package named vsftpd
# ls -l /usr/share/doc | grep httpd
yum install firefox4
rpm -ql vsftpd
rpm --import [public key location]
8. Install the star compression tool create an archive with the star tool.
# grep -i
yum list
#iptables -L
# star -xattr -H=exustar -c -f=home.star /home/
9. GUI File Manager
#rpm -qad [package name]
#iptables -D INPUT -p tcp --dport 21 -j accpet
nautilus
IPtables forward chain
10. List iptables
ln -s /pub /var/www/html/pub
tar czvf /tmp/etc.tar.gz /etc
#iptables -L
yum install firefox4
11. Adjust the persistent runlevel
#yum grouplist
#virsh list
# vi /etc/inittab change - id:3:initdefault:
# renice -10 proc-id
12. Search for a package with firefox in the description
/var/lib/rpm
service sshd restart
/etc/rsyslog.conf
yum search firefox
13. Extract /tmp/etc.tar.gz to /etc
ip masqu
tar xvzf /tmp/etc.tar.gz /etc
/etc/yum.repos.d
# grep -i
14. Remove a package with yum
#yum remove [package name]
system-config-date
rpm -q pkg.rpm --scripts
/etc/sysconfig/network
15. Configuration for VNC
system-config-date
$ tar xzvf home.tar.gz /home
/etc/sysconfig/vncservers rpm -ql tigervnc-server
rsync /home/test1.html root@server6.example.com:/var/pub
16. Messages related to cron log
yum search firefox
/var/log/cron
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/sysconfig/network
17. An example of searching through system logs with interpretation.
# cat /var/log/messages | grep [Ff]ailed | less
cp /home/test1.html /var/www/html/test1.html
#rpm -qad [package name]
/etc/sysconfig/iptables
18. Import a public key
#rpm -ivh [package name]
/var/log/cron
/etc/yum.repos.d
rpm --import [public key location]
19. Create a gzip-compressed backup of /etc in /tmp
service ntpd restart
rpm -q pkg.rpm --scripts
# ls -l /usr/share/doc | grep httpd
tar czvf /tmp/etc.tar.gz /etc
20. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/var/log/maillog
MailTo=student@server6.example.com
yum provides "*/sbin/sshd"
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
21. Generate SSH Keys
rpm -qc httpd
ssh-keygen
IPtables output chain
/usr/share/doc/initscripts-*/sysconfig.txt
22. Disk Utility Command
yum info firefox4
palimpsest
name-version-release.architecture.rpm
[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
23. Kill a VM
#virsh destroy domain-id
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
$ tar xzvf home.tar.gz /home
/etc/yum.repos.d/
24. Delete a rule from iptables
rpm -qp pkg.rpm
#iptables -D INPUT -p tcp --dport 21 -j accpet
rhn_register
#yum grouplist
25. Uninstall a package group with yum
/etc/hosts
#yum groupremove "group name"
yum search firefox
rpm -q pkg.rpm --scripts
26. Configuration file for system logs
/etc/sysconfig/resolv.conf
/etc/rsyslog.conf
#iptables -F
#rpm -uvh [package name]
27. Use lftp to connect
/etc/services
rsync -a /home/test1.html root@server6.example.com:/var/pub
$ tar czvf home.tar.gz /home
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
28. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
rsync /home root@server6.example.com:/tmp
man search :/repository
.spec
# star -xattr -H=exustar -c -f=home.star /home/
29. Rpm upgrade package u upgrade v verbose h hash
# virsh create /etc/libvert/qemu/vm_file_name.xml
#virsh destroy domain-id
#rpm -uvh [package name]
tar xvzf /tmp/etc.tar.gz /etc
30. Restart ssh services
#yum groupremove "group name"
yum install tigervnc-server
# star -x -f=home.star
service sshd restart
31. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
tar xvzf /tmp/etc.tar.gz /etc
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum
#ip addr show
32. Stores filewall rules for the system.
/etc/sysconfig/iptables
palimpsest
add/remove software GUI
/etc/sysconfig/network
33. Where are HTML pages hosted?
cp /home/test1.html /var/www/html/test1.html
/var/www/html/
vsftpd restart
*.debug /var/log/debug.log service rsyslog restart
34. Authentication related messages log
# renice -10 proc-id
#yum info [package name]
/var/log/secure
vncpasswd
35. Sync ntp time with the instructor
IPtables output chain
ntpdate -b instructor
$ grep -v ^# /etc/nsswitch.conf
#rpm -qa | grep [package name]
36. Install star
/etc/rsyslog.conf
/etc/sysconfig/resolv.conf
rpm -qc httpd
# yum
37. Stores IPtables rules (filter) chains - input forward output are persistant
rpm -qp pkg.rpm
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/sysconfig/iptables
yum provides "*/sbin/sshd"
38. Remove a package named firefox4
logwatch
rpm -q pkg.rpm --scripts
yum remove firefox4
#yum groupinstall "group name"
39. Grep with ignoring case
# grep -i
GUI menu system/administratrion/firewall
/var/www/html/
#virsh list
40. Get a list of package groups from yum
#rpm -ivh [package name]
#yum grouplist
$ grep -v ^# /etc/nsswitch.conf
yum install firefox4
41. Install a package group with yum
rsync -a /home/test1.html root@server6.example.com:/var/pub
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum groupinstall "group name"
palimpsest
42. Edit files with cat until the _EOF is found
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#rpm -uvh [package name]
rpm --import [public key location]
cat >> some_file << _EOF
43. Get more information on a package availale through yum
/etc/sysconfig/network
yum search firefox
#yum info [package name]
# grep -i
44. Acting as a router with forwarding
ip masqu
#virsh list
tar cxtv
#rpm -qac [package name]
45. All messages sent at info priority or higher
*.debug /var/log/debug.log service rsyslog restart
# cat /var/log/messages | grep [Ff]ailed | less
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/var/log/messages
46. Search for command in the doc directory
#rpm -uvh [package name]
# renice -10 proc-id
# ls -l /usr/share/doc | grep httpd
yum provides "*/sbin/sshd"
47. FTP package used in RHEL 6
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#yum
vsftpd
tar xvzf /tmp/etc.tar.gz /etc
48. Process packets coming into the system
yum provides "*/sbin/sshd"
IPtables input chain
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
rpm -ql vsftpd
49. Documentation about sysconfig network scripts
/dev
Fully Qualified Domain Name
/etc/sysconfig/iptables
/usr/share/doc/initscripts-*/sysconfig.txt
50. RPM package naming
name-version-release.architecture.rpm
system-config-date
#rpm -uvh [package name]
#iptables -F