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 with RPM
/usr/share/doc/initscripts-*/sysconfig.txt
#rpm -ivh [package name]
# star -xattr -H=exustar -c -f=home.star /home/
yum search firefox
2. Remove a package with yum
#yum remove [package name]
/etc/rsyslog.conf
#iptables -D INPUT -p tcp --dport 21 -j accpet
yum search firefox
3. Persist FTP on boot
chkconfig httpd on
ntpdate -b instructor
#yum groupinstall "group name"
chkconfig vsftpd on
4. Connect with VNC viewer securely
vncviewer -via student@server6 localhost:2
# virsh create /etc/libvert/qemu/vm_file_name.xml
tar fzj
#yum groupinstall "group name"
5. handles dependencies while RPMs do not uses preconfigured repos
#yum
vsftpd restart
man search :/repository
updating the kernel
6. Email related messages log
GUI menu system/administratrion/firewall
ssh-copy-id root@server6.example.com
/var/log/maillog
/etc/sysconfig/network
7. Restart vnc and persist on boot
[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
service vncserver restart chkconfig vncserver on
Fully Qualified Domain Name
#rpm -ivh [package name]
8. Redirect errors to std out
man search :/repository
/var/log/cron
2>&1
#iptables -D INPUT -p tcp --dport 21 -j accpet
9. GUI install / uninstall with yum
tar xvzf /tmp/etc.tar.gz /etc
add/remove software GUI
# cat /var/log/messages | grep [Ff]ailed | less
system-config-date
10. Query all documentation with RPM
#yum remove [package name]
#rpm -qad [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
yum list
11. Restart the ntpd service
rpm -qc httpd
yum list
ntpdate -b instructor
service ntpd restart
12. System config firewall
vncpasswd
GUI menu system/administratrion/firewall
#rpm -qac [package name]
tar czvf /tmp/etc.tar.gz /etc
13. Get information about a package named firefox4
rpm -ql vsftpd
tar cxtv
GUI menu system/administratrion/firewall
yum info firefox4
14. See the configuration files installed with a package named httpd
rpm -ql vsftpd
#uname -r
rpm -qc httpd
/etc/ssh/sshd_config
15. Create a symbolic link to /pub on the FTP and name it pub
ln -s /pub /var/www/html/pub
Fully Qualified Domain Name
/etc/sysconfig/iptables
#ip addr show
16. List VMs
#rpm -qac [package name]
#virsh list
/etc/sysconfig/iptables
/etc/yum.repos.d
17. Process packets coming into the system
yum search firefox
updating the kernel
IPtables input chain
[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
18. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
#yum grouplist
#uname -r
#yum groupinstall "group name"
19. FTP package used in RHEL 6
service sshd restart
GUI menu system/administratrion/firewall
vsftpd
Fully Qualified Domain Name
20. Grep with ignoring case
2>&1
# grep -i
service ntpd restart
# star -xattr -H=exustar -c -f=home.star /home/
21. fqdn
Fully Qualified Domain Name
system-config-firewall tui
vsftpd restart
2>&1
22. Start GUI for Firewall
# ls -l /usr/share/doc | grep httpd
rpm -q pkg.rpm --scripts
/var/log/secure
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
23. Determine which package provides SSH
#yum
yum provides "*/sbin/sshd"
yum info firefox4
# virsh create /etc/libvert/qemu/vm_file_name.xml
24. Extract a star compressed file
ntpdate -b instructor
[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
# star -x -f=home.star
25. Install the star compression tool create an archive with the star tool.
#rpm -qi [package name]
tar xvzf /tmp/etc.tar.gz /etc
# ls -l /usr/share/doc | grep httpd
# star -xattr -H=exustar -c -f=home.star /home/
26. Display packages that match the pathname
vncpasswd
# renice -10 proc-id
yum provides
#rpm -qad [package name]
27. Use lftp to connect
/usr/share/doc/initscripts-*/sysconfig.txt
tar xvzf /tmp/etc.tar.gz /etc
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
yum search firefox
28. Search for a package within all packages
yum update
#rpm -qa | grep [package name]
tar czvf /tmp/etc.tar.gz /etc
add/remove software GUI
29. Stores IPtables rules (filter) chains - input forward output are persistant
rpm localinstall pkg.rpm --nogpgcheck
/etc/sysconfig/iptables
2>&1
rpm -q pkg.rpm --scripts
30. Search for a package with firefox in the description
updating the kernel
ssh-keygen
yum search firefox
cp /home/test1.html /var/www/html/test1.html
31. Configuration file for system logs
yum install tigervnc-server
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/rsyslog.conf
rhn_register
32. All messages sent at info priority or higher
# vi /etc/inittab change - id:3:initdefault:
/var/log/messages
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/resolv.conf
33. Gets kernel version and release number
# virsh create /etc/libvert/qemu/vm_file_name.xml
#uname -r
/etc/sysconfig/vncservers rpm -ql tigervnc-server
add/remove software GUI
34. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
system-config-date
#rpm -qac [package name]
.spec
#rpm -ivh [package name]
35. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
add/remove software GUI
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
updating the kernel
palimpsest
36. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
[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 -qi [package name]
rsync -a /home/test1.html root@server6.example.com:/var/pub
GUI menu system/administratrion/firewall
37. Primary configuration of ssh
/etc/services
/etc/ssh/sshd_config
/var/log/secure
add/remove software GUI
38. Get more information on a package availale through yum
/etc/sysconfig/network
#yum info [package name]
/dev
vsftpd restart
39. Search for command in the doc directory
#iptables -F
name-version-release.architecture.rpm
# ls -l /usr/share/doc | grep httpd
/var/lib/rpm
40. Grep for lines that do not match (-v)
chkconfig vsftpd on
$ grep -v ^# /etc/nsswitch.conf
/var/www/html/
rpm -q pkg.rpm --scripts
41. Query information files with RPM
yum install firefox4
ln -s /pub /var/www/html/pub
#rpm -qi [package name]
/var/www/html/
42. Start the GUI for date configuration
# grep -i
system-config-date
/etc/services
# star -x -f=home.star
43. Sync ntp time with the instructor
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#rpm -qad [package name]
ntpdate -b instructor
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
44. Shell config tool gropued like GUI firewall configurater.
add/remove software GUI
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/var/www/html/
system-config-firewall tui
45. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/var/log/maillog
/etc/sysconfig/iptables
ssh-copy-id root@server6.example.com
46. Set a VNC password
name-version-release.architecture.rpm
tar fzj
ssh-copy-id root@server6.example.com
vncpasswd
47. Install a package with yum
ssh-keygen
tar cxtv
#yum install [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
48. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
#iptables -D INPUT -p tcp --dport 21 -j accpet
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/hosts
49. Persist the web server on boot
chkconfig httpd on
add/remove software GUI
$ tar czvf home.tar.gz /home
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
50. GUI File Manager
ip masqu
#uname -r
/etc/hosts
nautilus