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. GUI File Manager
GUI menu system/administratrion/firewall
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
nautilus
yum info firefox4
2. An example of searching through system logs with interpretation.
rsync -a /home/test1.html root@server6.example.com:/var/pub
nautilus
/var/www/html/
# cat /var/log/messages | grep [Ff]ailed | less
3. Email related messages log
*.debug /var/log/debug.log service rsyslog restart
/var/log/maillog
/etc/sysconfig/iptables
IPtables input chain
4. Install the VNC server package
[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
rpm -q pkg.rpm --scripts
yum install tigervnc-server
yum list
5. Restart vnc and persist on boot
ntpdate -b instructor
service vncserver restart chkconfig vncserver on
service ntpd restart
cp /home/test1.html /var/www/html/test1.html
6. Contains RPM database
yum provides
vncviewer -via student@server6 localhost:2
/var/lib/rpm
2>&1
7. Display packages that match the pathname
yum provides
vncviewer -via student@server6 localhost:2
rpm -ql vsftpd
system-config-date
8. Repo config file
#yum install [package name]
#yum groupremove "group name"
#rpm -qad [package name]
[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
9. Show IP address with the IP command
# cat /var/log/messages | grep [Ff]ailed | less
#ip addr show
yum list
rsync /home root@server6.example.com:/tmp
10. Create a tar ball with gzip compression of the home dir
Fully Qualified Domain Name
# cat /var/log/messages | grep [Ff]ailed | less
rpm -qc httpd
$ tar czvf home.tar.gz /home
11. File holding services - ports - protocols assoicated
#yum
logwatch
/etc/services
rpm -ql vsftpd
12. Install a package group with yum
#yum groupinstall "group name"
#rpm -qa | grep [package name]
/var/log/maillog
/etc/sysconfig/vncservers rpm -ql tigervnc-server
13. Sync ntp time with the instructor
ntpdate -b instructor
#iptables -F
service sshd restart
# vi /etc/inittab change - id:3:initdefault:
14. Package file named pkg.rpm
chkconfig httpd on
vsftpd
rpm -qp pkg.rpm
*.debug /var/log/debug.log service rsyslog restart
15. Acting as a router with forwarding
#yum groupinstall "group name"
ip masqu
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/ssh/sshd_config
16. Messages related to cron log
/var/log/cron
#rpm -qi [package name]
2>&1
ssh-copy-id root@server6.example.com
17. Flush the firewall of all rules
vncpasswd
#rpm -uvh [package name]
#yum groupinstall "group name"
#iptables -F
18. Remove a package with yum
yum search firefox
/etc/sysconfig/resolv.conf
#yum remove [package name]
.spec
19. Start vsftp service
vsftpd restart
IPtables output chain
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# star -xattr -H=exustar -c -f=home.star /home/
20. Grep for lines that do not match (-v)
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
yum search firefox
$ grep -v ^# /etc/nsswitch.conf
*.debug /var/log/debug.log service rsyslog restart
21. See the configuration files installed with a package named httpd
*.debug /var/log/debug.log service rsyslog restart
rpm -qc httpd
man search :/repository
service vncserver restart chkconfig vncserver on
22. Program to analyze standard log files and send a summary email to root
#yum
vsftpd
ssh-copy-id root@server6.example.com
logwatch
23. fqdn
Fully Qualified Domain Name
.spec
$ tar xzvf home.tar.gz /home
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
24. handles dependencies while RPMs do not uses preconfigured repos
2>&1
#yum
#uname -r
yum remove firefox4
25. Search for a package within all packages
tar fzj
$ tar xzvf home.tar.gz /home
/etc/ssh/sshd_config
#rpm -qa | grep [package name]
26. List scripts that can be run after installation of pkg.rpm
updating the kernel
rpm -q pkg.rpm --scripts
# yum
#rpm -uvh [package name]
27. Use lftp to connect
#virsh list
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/var/log/cron
$ tar xzvf home.tar.gz /home
28. Process packets coming into the system
/usr/share/doc/initscripts-*/sysconfig.txt
IPtables input chain
*.debug /var/log/debug.log service rsyslog restart
yum update
29. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/sysconfig/network
yum remove firefox4
system-config-date
#rpm -qa | grep [package name]
30. GUI install / uninstall with yum
rsync /home/test1.html root@server6.example.com:/var/pub
palimpsest
add/remove software GUI
GUI menu system/administratrion/firewall
31. Grep with ignoring case
/etc/rsyslog.conf
# grep -i
#yum info [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
32. Start a VM
/etc/yum.repos.d/
/etc/services
/var/log/messages
# virsh create /etc/libvert/qemu/vm_file_name.xml
33. Connect with VNC viewer securely
# ls -l /usr/share/doc | grep httpd
vncviewer -via student@server6 localhost:2
$ tar czvf home.tar.gz /home
cat >> some_file << _EOF
34. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
/var/log/maillog
# renice -10 proc-id
IPtables input chain
35. Edit files with cat until the _EOF is found
#rpm -uvh [package name]
cat >> some_file << _EOF
yum install tigervnc-server
MailTo=student@server6.example.com
36. Backup a home directory on desktop6 to /tmp on server6
/etc/sysconfig/iptables
rsync /home root@server6.example.com:/tmp
2>&1
# vi /etc/inittab change - id:3:initdefault:
37. Local file copy of /home/test1.html to /var/www/html/test1.html
/etc/yum.repos.d
#iptables -D INPUT -p tcp --dport 21 -j accpet
# cat /var/log/messages | grep [Ff]ailed | less
cp /home/test1.html /var/www/html/test1.html
38. Query information files with RPM
#rpm -qi [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
IPtables forward chain
chkconfig httpd on
39. Persist FTP on boot
chkconfig vsftpd on
ln -s /pub /var/www/html/pub
chkconfig httpd on
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
40. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
yum update
insert as opposed to append
#rpm -uvh [package name]
/etc/yum.repos.d/
41. Send all debug level messages to /var/log/debug.log
*.debug /var/log/debug.log service rsyslog restart
tar xvzf /tmp/etc.tar.gz /etc
/var/www/html/
# star -xattr -H=exustar -c -f=home.star /home/
42. Set process priority with renice - -20 highest - 20 lowest - 0 is default
# vi /etc/inittab change - id:3:initdefault:
# renice -10 proc-id
#virsh list
# grep -i
43. Start GUI for Firewall
/etc/hosts
$ tar czvf home.tar.gz /home
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#yum info [package name]
44. Restart ssh services
service sshd restart
tar cxtv
# star -xattr -H=exustar -c -f=home.star /home/
yum remove firefox4
45. Get more information on a package availale through yum
#yum info [package name]
# cat /var/log/messages | grep [Ff]ailed | less
chkconfig httpd on
rpm -qp pkg.rpm
46. FTP package used in RHEL 6
rpm -qc httpd
vsftpd
.spec
#rpm -qi [package name]
47. RPM package naming
yum install tigervnc-server
name-version-release.architecture.rpm
#yum remove [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
48. Rpm upgrade package u upgrade v verbose h hash
#rpm -uvh [package name]
insert as opposed to append
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ssh-copy-id root@server6.example.com
49. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
service ntpd restart
chkconfig vsftpd on
$ tar xzvf home.tar.gz /home
50. tar options for file name - gzip - and bzip2
cp /home/test1.html /var/www/html/test1.html
tar fzj
chkconfig vsftpd on
updating the kernel