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. Extract a star compressed file
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
# star -x -f=home.star
/etc/sysconfig/resolv.conf
#iptables -D INPUT -p tcp --dport 21 -j accpet
2. Acting as a router with forwarding
ip masqu
system-config-firewall tui
/var/log/messages
#rpm -qad [package name]
3. Gets kernel version and release number
# renice -10 proc-id
#uname -r
add/remove software GUI
/var/log/secure
4. Create a symbolic link to /pub on the FTP and name it pub
ln -s /pub /var/www/html/pub
/etc/sysconfig/iptables
# star -x -f=home.star
vsftpd restart
5. Display packages that match the pathname
yum provides
rpm -qp pkg.rpm
/etc/sysconfig/network
#rpm -qi [package name]
6. Start GUI for Firewall
# cat /var/log/messages | grep [Ff]ailed | less
#yum remove [package name]
#yum info [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
7. FTP package used in RHEL 6
/etc/ssh/sshd_config
vsftpd
/etc/yum.repos.d/
nautilus
8. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
vncviewer -via student@server6 localhost:2
IPtables output chain
yum provides "*/sbin/sshd"
.spec
9. Backup a home directory on desktop6 to /tmp on server6
chkconfig vsftpd on
rsync /home root@server6.example.com:/tmp
rpm -q pkg.rpm --scripts
yum info firefox4
10. Create a gzip-compressed backup of /etc in /tmp
rpm -ql vsftpd
tar xvzf /tmp/etc.tar.gz /etc
service ntpd restart
tar czvf /tmp/etc.tar.gz /etc
11. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
/var/www/html/
$ tar xzvf home.tar.gz /home
/etc/rsyslog.conf
12. Set a VNC password
ssh-keygen
yum provides
IPtables output chain
vncpasswd
13. Install a package named firefox4
/etc/sysconfig/iptables
yum install firefox4
add/remove software GUI
tar xvzf /tmp/etc.tar.gz /etc
14. Kill a VM
/etc/services
#yum groupremove "group name"
#rpm -qac [package name]
#virsh destroy domain-id
15. See the configuration files installed with a package named httpd
rpm -qc httpd
nautilus
rhn_register
# renice -10 proc-id
16. Local host file (contains hostname). Can contain local system DNS.
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
nautilus
/etc/hosts
#iptables -L
17. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/dev
#rpm -uvh [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rpm -qc httpd
18. Authentication related messages log
/var/log/secure
/var/log/maillog
[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
/etc/sysconfig/vncservers rpm -ql tigervnc-server
19. Messages related to cron log
yum info firefox4
# cat /var/log/messages | grep [Ff]ailed | less
/var/log/cron
#rpm -qi [package name]
20. Determine which package provides SSH
service sshd restart
#yum groupremove "group name"
yum provides "*/sbin/sshd"
rpm --import [public key location]
21. Show IP address with the IP command
/dev
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#ip addr show
#virsh list
22. Install a package group with yum
yum update
#yum groupinstall "group name"
# grep -i
.spec
23. Documentation about sysconfig network scripts
vncpasswd
# virsh create /etc/libvert/qemu/vm_file_name.xml
/usr/share/doc/initscripts-*/sysconfig.txt
rsync -a /home/test1.html root@server6.example.com:/var/pub
24. Send all debug level messages to /var/log/debug.log
nautilus
*.debug /var/log/debug.log service rsyslog restart
/var/log/maillog
/usr/share/doc/initscripts-*/sysconfig.txt
25. Install the VNC server package
#virsh destroy domain-id
system-config-firewall tui
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
yum install tigervnc-server
26. Extract a gzipped tar ball in your home directory
/var/log/maillog
$ tar xzvf home.tar.gz /home
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
$ tar czvf home.tar.gz /home
27. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
#rpm -qi [package name]
#rpm -qac [package name]
# star -x -f=home.star
28. See files installed with a package named vsftpd
rpm -ql vsftpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
ssh-keygen
system-config-date
29. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
.spec
MailTo=student@server6.example.com
rsync /home root@server6.example.com:/tmp
IPtables input chain
30. Process packets being forwarded through the system
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
name-version-release.architecture.rpm
/var/log/messages
IPtables forward chain
31. Delete a rule from iptables
insert as opposed to append
logwatch
palimpsest
#iptables -D INPUT -p tcp --dport 21 -j accpet
32. Start vsftp service
MailTo=student@server6.example.com
rpm -qp pkg.rpm
chkconfig vsftpd on
vsftpd restart
33. Repo config file
[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
yum update
/var/www/html/
service vncserver restart chkconfig vncserver on
34. Restart vnc and persist on boot
/etc/ssh/sshd_config
rsync -a /home/test1.html root@server6.example.com:/var/pub
service vncserver restart chkconfig vncserver on
/dev
35. Update a package
chkconfig httpd on
man search :/repository
yum update
tar xvzf /tmp/etc.tar.gz /etc
36. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
rsync /home root@server6.example.com:/tmp
yum install tigervnc-server
insert as opposed to append
#rpm -ivh [package name]
37. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/sysconfig/network
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
ssh-copy-id root@server6.example.com
GUI menu system/administratrion/firewall
38. Grep with ignoring case
yum remove firefox4
#rpm -qad [package name]
# grep -i
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
39. Query information files with RPM
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -qi [package name]
/etc/sysconfig/iptables
GUI menu system/administratrion/firewall
40. Configuration for VNC
insert as opposed to append
#yum grouplist
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/sysconfig/vncservers rpm -ql tigervnc-server
41. Start a VM
/var/log/cron
#yum grouplist
#ip addr show
# virsh create /etc/libvert/qemu/vm_file_name.xml
42. Get more information on a package availale through yum
ssh-copy-id root@server6.example.com
man search :/repository
#yum info [package name]
IPtables forward chain
43. Program to analyze standard log files and send a summary email to root
logwatch
#rpm -qad [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
cp /home/test1.html /var/www/html/test1.html
44. Get a list of package groups from yum
cp /home/test1.html /var/www/html/test1.html
#yum install [package name]
#yum info [package name]
#yum grouplist
45. GUI File Manager
.spec
chkconfig httpd on
nautilus
#rpm -qi [package name]
46. Search for a package within all packages
#uname -r
#rpm -qa | grep [package name]
rsync /home root@server6.example.com:/tmp
cat >> some_file << _EOF
47. System config firewall
GUI menu system/administratrion/firewall
IPtables input chain
rsync /home/test1.html root@server6.example.com:/var/pub
MailTo=student@server6.example.com
48. GUI install / uninstall with yum
add/remove software GUI
tar fzj
tar xvzf /tmp/etc.tar.gz /etc
ip masqu
49. Remove a package with yum
$ tar czvf home.tar.gz /home
ntpdate -b instructor
#yum remove [package name]
cp /home/test1.html /var/www/html/test1.html
50. List installed and available packages
# virsh create /etc/libvert/qemu/vm_file_name.xml
yum list
#rpm -ivh [package name]
vncviewer -via student@server6 localhost:2