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. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/yum.repos.d
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -F
#yum groupremove "group name"
2. Persist FTP on boot
ssh-keygen
#rpm -uvh [package name]
#rpm -qi [package name]
chkconfig vsftpd on
3. Use lftp to connect
#rpm -ivh [package name]
ln -s /pub /var/www/html/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/usr/share/doc/initscripts-*/sysconfig.txt
4. Start vsftp service
/var/www/html/
/var/lib/rpm
/etc/sysconfig/resolv.conf
vsftpd restart
5. fqdn
#yum
ntpdate -b instructor
# renice -10 proc-id
Fully Qualified Domain Name
6. GUI File Manager
/dev
2>&1
nautilus
yum list
7. Kill a VM
service ntpd restart
#virsh destroy domain-id
ssh-keygen
yum update
8. See the configuration files installed with a package named httpd
/var/log/messages
rpm -qc httpd
tar czvf /tmp/etc.tar.gz /etc
tar fzj
9. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
#rpm -ivh [package name]
service sshd restart
rsync -a /home/test1.html root@server6.example.com:/var/pub
10. Where are HTML pages hosted?
/etc/sysconfig/iptables
/var/www/html/
system-config-date
/etc/ssh/sshd_config
11. Search for a package with firefox in the description
updating the kernel
rpm localinstall pkg.rpm --nogpgcheck
yum search firefox
vncpasswd
12. File holding services - ports - protocols assoicated
yum remove firefox4
yum list
/etc/services
# vi /etc/inittab change - id:3:initdefault:
13. Delete a rule from iptables
yum provides
#rpm -qa | grep [package name]
yum search firefox
#iptables -D INPUT -p tcp --dport 21 -j accpet
14. Process packets coming into the system
rsync /home root@server6.example.com:/tmp
IPtables input chain
tar xvzf /tmp/etc.tar.gz /etc
#rpm -qac [package name]
15. Persist the web server on boot
yum update
#iptables -D INPUT -p tcp --dport 21 -j accpet
#iptables -F
chkconfig httpd on
16. List scripts that can be run after installation of pkg.rpm
/etc/rsyslog.conf
cat >> some_file << _EOF
rpm -q pkg.rpm --scripts
GUI menu system/administratrion/firewall
17. Get information about a package named firefox4
#virsh destroy domain-id
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/rsyslog.conf
yum info firefox4
18. Stores filewall rules for the system.
# ls -l /usr/share/doc | grep httpd
vsftpd
/var/log/maillog
/etc/sysconfig/iptables
19. RPM package naming
2>&1
/dev
add/remove software GUI
name-version-release.architecture.rpm
20. Extract /tmp/etc.tar.gz to /etc
#iptables -L
tar xvzf /tmp/etc.tar.gz /etc
cat >> some_file << _EOF
yum info firefox4
21. Search for command in the doc directory
vncpasswd
# yum
# renice -10 proc-id
# ls -l /usr/share/doc | grep httpd
22. GUI install / uninstall with yum
updating the kernel
#uname -r
add/remove software GUI
rhn_register
23. Disk Utility Command
#ip addr show
palimpsest
/etc/sysconfig/vncservers rpm -ql tigervnc-server
tar xvzf /tmp/etc.tar.gz /etc
24. See files installed with a package named vsftpd
/dev
chkconfig vsftpd on
system-config-firewall tui
rpm -ql vsftpd
25. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
yum install firefox4
name-version-release.architecture.rpm
Fully Qualified Domain Name
26. 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
service sshd restart
rpm localinstall pkg.rpm --nogpgcheck
/var/log/maillog
27. Determine which package provides SSH
vncviewer -via student@server6 localhost:2
/etc/sysconfig/network
yum provides "*/sbin/sshd"
insert as opposed to append
28. Grep for lines that do not match (-v)
updating the kernel
/etc/services
$ grep -v ^# /etc/nsswitch.conf
ntpdate -b instructor
29. Disks available for partitions
/var/log/maillog
$ tar xzvf home.tar.gz /home
/dev
logwatch
30. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
#rpm -uvh [package name]
yum provides "*/sbin/sshd"
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
rpm -qc httpd
31. Get a list of package groups from yum
rsync /home/test1.html root@server6.example.com:/var/pub
/dev
#yum remove [package name]
#yum grouplist
32. An example of searching through system logs with interpretation.
add/remove software GUI
#yum info [package name]
# cat /var/log/messages | grep [Ff]ailed | less
service sshd restart
33. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
# star -xattr -H=exustar -c -f=home.star /home/
[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
2>&1
34. Register on the RHN
yum list
rhn_register
/etc/sysconfig/network
system-config-date
35. Import a public key
rpm -q pkg.rpm --scripts
rpm --import [public key location]
yum install firefox4
*.debug /var/log/debug.log service rsyslog restart
36. Query all documentation with RPM
add/remove software GUI
#rpm -qad [package name]
#rpm -qac [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
37. Start a VM
yum list
rpm -qc httpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum groupremove "group name"
38. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
#virsh list
yum remove firefox4
vncviewer -via student@server6 localhost:2
39. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
ntpdate -b instructor
yum update
yum install tigervnc-server
/etc/sysconfig/network
40. FTP package used in RHEL 6
rpm -ql vsftpd
vsftpd
#yum remove [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
41. Documentation about sysconfig network scripts
#iptables -I INPUT -p tcp --dport 21 -j Accept
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/services
logwatch
42. Process packets being forwarded through the system
insert as opposed to append
/etc/sysconfig/vncservers rpm -ql tigervnc-server
IPtables forward chain
/var/www/html/
43. Set a VNC password
#yum install [package name]
vncpasswd
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
add/remove software GUI
44. original DNS config file - still used
tar czvf /tmp/etc.tar.gz /etc
/etc/sysconfig/resolv.conf
#iptables -I INPUT -p tcp --dport 21 -j Accept
rhn_register
45. Install a pkg.rpm locally
yum remove firefox4
rpm localinstall pkg.rpm --nogpgcheck
chkconfig vsftpd on
# grep -i
46. List installed and available packages
# star -xattr -H=exustar -c -f=home.star /home/
yum list
yum search firefox
tar xvzf /tmp/etc.tar.gz /etc
47. Connect with VNC viewer securely
service vncserver restart chkconfig vncserver on
#rpm -ivh [package name]
system-config-firewall tui
vncviewer -via student@server6 localhost:2
48. Process packets coming out of the system
IPtables output chain
rpm localinstall pkg.rpm --nogpgcheck
nautilus
ssh-keygen
49. handles dependencies while RPMs do not uses preconfigured repos
/var/lib/rpm
#yum
MailTo=student@server6.example.com
yum provides "*/sbin/sshd"
50. Install a package with yum
logwatch
yum install tigervnc-server
/etc/yum.repos.d/
#yum install [package name]