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. Update a package
IPtables output chain
yum update
/etc/sysconfig/iptables
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
2. handles dependencies while RPMs do not uses preconfigured repos
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#yum
/var/log/cron
2>&1
3. fqdn
2>&1
Fully Qualified Domain Name
system-config-date
[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
4. Email related messages log
GUI menu system/administratrion/firewall
/var/log/secure
/var/log/maillog
yum update
5. Show IP address with the IP command
/etc/hosts
#yum info [package name]
#ip addr show
#virsh destroy domain-id
6. Remove a package with yum
rsync /home/test1.html root@server6.example.com:/var/pub
#yum grouplist
#yum remove [package name]
#rpm -qi [package name]
7. Process packets coming out of the system
/etc/sysconfig/iptables
IPtables output chain
.spec
man search :/repository
8. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
logwatch
IPtables forward chain
/etc/sysconfig/iptables
9. Acting as a router with forwarding
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ip masqu
rpm --import [public key location]
#uname -r
10. List scripts that can be run after installation of pkg.rpm
rpm -q pkg.rpm --scripts
yum remove firefox4
service ntpd restart
#yum info [package name]
11. Query all documentation with RPM
ip masqu
vncpasswd
$ tar xzvf home.tar.gz /home
#rpm -qad [package name]
12. Uninstall a package group with yum
#rpm -ivh [package name]
IPtables forward chain
yum provides "*/sbin/sshd"
#yum groupremove "group name"
13. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
#rpm -qad [package name]
#rpm -qa | grep [package name]
palimpsest
14. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
Fully Qualified Domain Name
/etc/sysconfig/network
# star -x -f=home.star
ntpdate -b instructor
15. GUI install / uninstall with yum
#uname -r
add/remove software GUI
yum info firefox4
#rpm -qad [package name]
16. RPM package naming
yum install firefox4
tar czvf /tmp/etc.tar.gz /etc
yum list
name-version-release.architecture.rpm
17. Package file named pkg.rpm
rpm -ql vsftpd
rpm -qp pkg.rpm
/var/log/maillog
#yum groupremove "group name"
18. Install the star compression tool create an archive with the star tool.
ntpdate -b instructor
yum remove firefox4
ssh-keygen
# star -xattr -H=exustar -c -f=home.star /home/
19. Process packets coming into the system
/etc/services
IPtables input chain
#yum
IPtables forward chain
20. Install with RPM
#rpm -ivh [package name]
#rpm -qi [package name]
chkconfig vsftpd on
/var/lib/rpm
21. All messages sent at info priority or higher
/var/log/messages
yum update
/var/lib/rpm
/etc/hosts
22. Configuration file for system logs
yum update
/etc/rsyslog.conf
/var/log/maillog
2>&1
23. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/sysconfig/iptables
#iptables -L
/etc/sysconfig/vncservers rpm -ql tigervnc-server
yum search firefox
24. List VMs
#virsh list
insert as opposed to append
vsftpd
/usr/share/doc/initscripts-*/sysconfig.txt
25. Rpm upgrade package u upgrade v verbose h hash
system-config-date
service vncserver restart chkconfig vncserver on
#rpm -uvh [package name]
/var/www/html/
26. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
#virsh list
chkconfig vsftpd on
/var/log/cron
27. Remote file copy /home/test1.html to the /var/pub directory on server6
#yum groupremove "group name"
rsync /home/test1.html root@server6.example.com:/var/pub
add/remove software GUI
rhn_register
28. Install the VNC server package
yum install tigervnc-server
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
insert as opposed to append
vsftpd restart
29. Connect with VNC viewer securely
vncviewer -via student@server6 localhost:2
insert as opposed to append
#yum install [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
30. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
yum provides
#yum groupinstall "group name"
/etc/yum.repos.d/
31. Messages related to cron log
yum provides
IPtables input chain
.spec
/var/log/cron
32. Extract a gzipped tar ball in your home directory
tar fzj
yum list
$ tar xzvf home.tar.gz /home
ntpdate -b instructor
33. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
rsync -a /home/test1.html root@server6.example.com:/var/pub
#rpm -qi [package name]
IPtables output chain
#yum
34. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
cp /home/test1.html /var/www/html/test1.html
/var/log/secure
palimpsest
35. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
vncviewer -via student@server6 localhost:2
tar czvf /tmp/etc.tar.gz /etc
yum install tigervnc-server
updating the kernel
36. Disk Utility Command
ln -s /pub /var/www/html/pub
/usr/share/doc/initscripts-*/sysconfig.txt
palimpsest
ssh-keygen
37. Authentication related messages log
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum info [package name]
/var/log/secure
# vi /etc/inittab change - id:3:initdefault:
38. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
# vi /etc/inittab change - id:3:initdefault:
/var/log/maillog
/var/log/secure
39. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
insert as opposed to append
/etc/ssh/sshd_config
/etc/sysconfig/vncservers rpm -ql tigervnc-server
# renice -10 proc-id
40. List iptables
system-config-firewall tui
man search :/repository
#iptables -L
/dev
41. Process packets being forwarded through the system
MailTo=student@server6.example.com
ntpdate -b instructor
IPtables forward chain
cp /home/test1.html /var/www/html/test1.html
42. Set process priority with renice - -20 highest - 20 lowest - 0 is default
system-config-date
#iptables -I INPUT -p tcp --dport 21 -j Accept
/var/www/html/
# renice -10 proc-id
43. Install a package group with yum
yum remove firefox4
MailTo=student@server6.example.com
#yum groupinstall "group name"
rsync /home root@server6.example.com:/tmp
44. Search for a package within all packages
IPtables forward chain
MailTo=student@server6.example.com
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#rpm -qa | grep [package name]
45. Search for command in the doc directory
insert as opposed to append
# ls -l /usr/share/doc | grep httpd
IPtables input chain
ssh-copy-id root@server6.example.com
46. Get a list of package groups from yum
logwatch
yum remove firefox4
add/remove software GUI
#yum grouplist
47. Repo config file
#rpm -uvh [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
system-config-date
[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
48. List installed and available packages
logwatch
yum list
IPtables input chain
MailTo=student@server6.example.com
49. Display packages that match the pathname
yum provides
service sshd restart
yum info firefox4
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
50. Primary configuration of ssh
yum list
/etc/ssh/sshd_config
rhn_register
# virsh create /etc/libvert/qemu/vm_file_name.xml