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. Install star
#yum
service sshd restart
# yum
ntpdate -b instructor
2. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
# yum
#yum remove [package name]
#uname -r
3. Search for a package within all packages
#rpm -qa | grep [package name]
tar xvzf /tmp/etc.tar.gz /etc
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum info [package name]
4. Grep for lines that do not match (-v)
man search :/repository
rsync /home/test1.html root@server6.example.com:/var/pub
$ grep -v ^# /etc/nsswitch.conf
#yum groupremove "group name"
5. Disk Utility Command
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rpm -ql vsftpd
*.debug /var/log/debug.log service rsyslog restart
palimpsest
6. Program to analyze standard log files and send a summary email to root
#rpm -qac [package name]
logwatch
tar cxtv
/etc/hosts
7. Repo config file
man search :/repository
/etc/sysconfig/network
[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
/var/log/messages
8. List VMs
yum info firefox4
#virsh list
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# cat /var/log/messages | grep [Ff]ailed | less
9. Grep with ignoring case
man search :/repository
# vi /etc/inittab change - id:3:initdefault:
#yum grouplist
# grep -i
10. See files installed with a package named vsftpd
#yum groupinstall "group name"
# renice -10 proc-id
rpm -ql vsftpd
name-version-release.architecture.rpm
11. System config firewall
vsftpd
cp /home/test1.html /var/www/html/test1.html
GUI menu system/administratrion/firewall
system-config-firewall tui
12. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
$ tar czvf home.tar.gz /home
MailTo=student@server6.example.com
rhn_register
/usr/share/doc/initscripts-*/sysconfig.txt
13. See the configuration files installed with a package named httpd
rpm -qc httpd
/etc/hosts
cat >> some_file << _EOF
2>&1
14. Persist FTP on boot
rsync /home root@server6.example.com:/tmp
#yum groupremove "group name"
insert as opposed to append
chkconfig vsftpd on
15. Get information about a package named firefox4
#virsh list
#rpm -qac [package name]
yum info firefox4
yum provides
16. Start the GUI for date configuration
vncpasswd
/etc/yum.repos.d/
#iptables -L
system-config-date
17. GUI File Manager
vsftpd
# star -xattr -H=exustar -c -f=home.star /home/
ip masqu
nautilus
18. Delete a rule from iptables
/dev
#iptables -D INPUT -p tcp --dport 21 -j accpet
yum provides
IPtables input chain
19. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
# grep -i
insert as opposed to append
#yum info [package name]
#yum groupremove "group name"
20. Get a list of package groups from yum
tar fzj
#yum grouplist
updating the kernel
#rpm -qac [package name]
21. Disks available for partitions
#rpm -qa | grep [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
# grep -i
/dev
22. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
#yum
updating the kernel
/etc/sysconfig/vncservers rpm -ql tigervnc-server
insert as opposed to append
23. Authentication related messages log
/etc/yum.repos.d
rpm -q pkg.rpm --scripts
/var/log/secure
.spec
24. Start GUI for Firewall
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
[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
add/remove software GUI
25. handles dependencies while RPMs do not uses preconfigured repos
#yum
logwatch
chkconfig vsftpd on
/etc/sysconfig/vncservers rpm -ql tigervnc-server
26. Acting as a router with forwarding
/etc/yum.repos.d
ip masqu
$ tar czvf home.tar.gz /home
/var/log/maillog
27. Import a public key
rpm --import [public key location]
IPtables output chain
tar xvzf /tmp/etc.tar.gz /etc
insert as opposed to append
28. Install a package named firefox4
yum install firefox4
rpm localinstall pkg.rpm --nogpgcheck
IPtables output chain
chkconfig httpd on
29. Query configuration files with RPM
ln -s /pub /var/www/html/pub
/var/log/maillog
#rpm -qac [package name]
yum update
30. Restart vnc and persist on boot
service vncserver restart chkconfig vncserver on
logwatch
system-config-firewall tui
tar czvf /tmp/etc.tar.gz /etc
31. Stores filewall rules for the system.
/etc/sysconfig/iptables
$ tar czvf home.tar.gz /home
#iptables -D INPUT -p tcp --dport 21 -j accpet
vncpasswd
32. Adjust the persistent runlevel
yum search firefox
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# vi /etc/inittab change - id:3:initdefault:
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
33. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
vsftpd restart
rhn_register
man search :/repository
34. GUI install / uninstall with yum
add/remove software GUI
/etc/sysconfig/iptables
rsync -a /home/test1.html root@server6.example.com:/var/pub
/var/log/messages
35. Process packets being forwarded through the system
IPtables forward chain
ip masqu
logwatch
ntpdate -b instructor
36. File holding services - ports - protocols assoicated
yum update
/etc/services
ssh-keygen
#iptables -I INPUT -p tcp --dport 21 -j Accept
37. Restart ssh services
service sshd restart
# cat /var/log/messages | grep [Ff]ailed | less
yum provides
updating the kernel
38. List installed and available packages
yum list
rpm -q pkg.rpm --scripts
$ tar xzvf home.tar.gz /home
rsync -a /home/test1.html root@server6.example.com:/var/pub
39. Configuration for VNC
updating the kernel
ntpdate -b instructor
rpm -ql vsftpd
/etc/sysconfig/vncservers rpm -ql tigervnc-server
40. Generate SSH Keys
#uname -r
#iptables -I INPUT -p tcp --dport 21 -j Accept
# star -xattr -H=exustar -c -f=home.star /home/
ssh-keygen
41. Package file named pkg.rpm
cp /home/test1.html /var/www/html/test1.html
ip masqu
/etc/sysconfig/resolv.conf
rpm -qp pkg.rpm
42. fqdn
[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
# vi /etc/inittab change - id:3:initdefault:
# virsh create /etc/libvert/qemu/vm_file_name.xml
Fully Qualified Domain Name
43. Update a package
tar xvzf /tmp/etc.tar.gz /etc
# vi /etc/inittab change - id:3:initdefault:
yum provides
yum update
44. Set a VNC password
rpm --import [public key location]
#iptables -F
ln -s /pub /var/www/html/pub
vncpasswd
45. Configuration file for system logs
#rpm -qad [package name]
/etc/rsyslog.conf
rsync /home/test1.html root@server6.example.com:/var/pub
# virsh create /etc/libvert/qemu/vm_file_name.xml
46. Install the star compression tool create an archive with the star tool.
system-config-firewall tui
#iptables -L
# star -xattr -H=exustar -c -f=home.star /home/
nautilus
47. Documentation about sysconfig network scripts
/var/lib/rpm
# grep -i
tar cxtv
/usr/share/doc/initscripts-*/sysconfig.txt
48. List scripts that can be run after installation of pkg.rpm
system-config-firewall tui
#rpm -qa | grep [package name]
rpm -q pkg.rpm --scripts
#yum
49. List iptables
#rpm -qad [package name]
service sshd restart
ln -s /pub /var/www/html/pub
#iptables -L
50. Send all debug level messages to /var/log/debug.log
#rpm -qi [package name]
ip masqu
insert as opposed to append
*.debug /var/log/debug.log service rsyslog restart