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. Create a symbolic link to /pub on the FTP and name it pub
chkconfig vsftpd on
ln -s /pub /var/www/html/pub
Fully Qualified Domain Name
rsync /home/test1.html root@server6.example.com:/var/pub
2. Extract /tmp/etc.tar.gz to /etc
rpm -q pkg.rpm --scripts
tar xvzf /tmp/etc.tar.gz /etc
#yum info [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
3. Install a package group with yum
yum remove firefox4
rpm -qp pkg.rpm
#yum groupinstall "group name"
/etc/sysconfig/iptables
4. Install with RPM
#rpm -ivh [package name]
rpm -q pkg.rpm --scripts
yum provides
/etc/ssh/sshd_config
5. Install the star compression tool create an archive with the star tool.
rsync /home root@server6.example.com:/tmp
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# star -xattr -H=exustar -c -f=home.star /home/
rhn_register
6. Rpm upgrade package u upgrade v verbose h hash
/var/log/maillog
updating the kernel
# star -x -f=home.star
#rpm -uvh [package name]
7. Update a package
yum update
/etc/sysconfig/resolv.conf
#virsh list
rsync /home/test1.html root@server6.example.com:/var/pub
8. Copy a public ssh key to server6
rpm --import [public key location]
ssh-copy-id root@server6.example.com
man search :/repository
/etc/sysconfig/iptables
9. fqdn
#uname -r
/etc/rsyslog.conf
/var/www/html/
Fully Qualified Domain Name
10. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#ip addr show
yum provides "*/sbin/sshd"
.spec
11. Determine which package provides SSH
yum provides "*/sbin/sshd"
rpm -q pkg.rpm --scripts
IPtables forward chain
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
12. Persist the web server on boot
#iptables -D INPUT -p tcp --dport 21 -j accpet
chkconfig httpd on
vncviewer -via student@server6 localhost:2
yum search firefox
13. Start the GUI for date configuration
yum provides
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
system-config-date
14. Documentation about sysconfig network scripts
vsftpd
/var/lib/rpm
/etc/yum.repos.d/
/usr/share/doc/initscripts-*/sysconfig.txt
15. Uninstall a package group with yum
#yum groupremove "group name"
rpm -qc httpd
#rpm -qi [package name]
ntpdate -b instructor
16. Grep with ignoring case
# grep -i
rpm -q pkg.rpm --scripts
#yum grouplist
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
17. Sync ntp time with the instructor
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
.spec
ntpdate -b instructor
yum install tigervnc-server
18. Configuration file for system logs
/var/www/html/
/etc/rsyslog.conf
# grep -i
service vncserver restart chkconfig vncserver on
19. Grep for lines that do not match (-v)
/var/log/maillog
cat >> some_file << _EOF
$ grep -v ^# /etc/nsswitch.conf
rsync /home root@server6.example.com:/tmp
20. tar options for file name - gzip - and bzip2
/etc/sysconfig/iptables
tar fzj
# grep -i
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
21. Process packets being forwarded through the system
# star -xattr -H=exustar -c -f=home.star /home/
cp /home/test1.html /var/www/html/test1.html
IPtables forward chain
service ntpd restart
22. tar options for create - extract - test - and verbose
#rpm -qi [package name]
tar cxtv
/etc/yum.repos.d/
name-version-release.architecture.rpm
23. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
/etc/yum.repos.d
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# star -x -f=home.star
#yum grouplist
24. Get information about a package named firefox4
yum list
MailTo=student@server6.example.com
yum info firefox4
#rpm -uvh [package name]
25. Install the VNC server package
system-config-firewall tui
#yum remove [package name]
yum install tigervnc-server
/var/log/messages
26. Install a package named firefox4
system-config-firewall tui
rpm -q pkg.rpm --scripts
yum install firefox4
#yum groupinstall "group name"
27. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
yum provides
service ntpd restart
/etc/services
28. Restart ssh services
yum info firefox4
vncviewer -via student@server6 localhost:2
service sshd restart
/etc/yum.repos.d/
29. Kill a VM
tar cxtv
/usr/share/doc/initscripts-*/sysconfig.txt
#virsh destroy domain-id
/etc/rsyslog.conf
30. Create a gzip-compressed backup of /etc in /tmp
add/remove software GUI
tar cxtv
/var/log/secure
tar czvf /tmp/etc.tar.gz /etc
31. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
ssh-copy-id root@server6.example.com
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
vsftpd restart
#ip addr show
32. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/sysconfig/network
name-version-release.architecture.rpm
updating the kernel
MailTo=student@server6.example.com
33. Get a list of package groups from yum
#yum grouplist
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm --import [public key location]
/etc/yum.repos.d
34. Shell config tool gropued like GUI firewall configurater.
$ tar xzvf home.tar.gz /home
/var/log/cron
# virsh create /etc/libvert/qemu/vm_file_name.xml
system-config-firewall tui
35. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
# virsh create /etc/libvert/qemu/vm_file_name.xml
vsftpd restart
yum install firefox4
36. Generate SSH Keys
rpm -ql vsftpd
rpm -qc httpd
ssh-keygen
rpm -qp pkg.rpm
37. Use lftp to connect
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#ip addr show
IPtables input chain
/etc/rsyslog.conf
38. Contains RPM database
/var/lib/rpm
yum install firefox4
ssh-keygen
ip masqu
39. Program to analyze standard log files and send a summary email to root
#yum install [package name]
logwatch
rsync /home root@server6.example.com:/tmp
GUI menu system/administratrion/firewall
40. Set a VNC password
yum provides "*/sbin/sshd"
/var/log/messages
$ tar czvf home.tar.gz /home
vncpasswd
41. Install a package with yum
#rpm -qi [package name]
yum list
#rpm -uvh [package name]
#yum install [package name]
42. Persist FTP on boot
chkconfig vsftpd on
/etc/sysconfig/resolv.conf
vsftpd
rsync /home root@server6.example.com:/tmp
43. Connect with VNC viewer securely
ssh-keygen
/var/log/messages
vncviewer -via student@server6 localhost:2
yum info firefox4
44. Process packets coming out of the system
Fully Qualified Domain Name
chkconfig httpd on
vncviewer -via student@server6 localhost:2
IPtables output chain
45. Query information files with RPM
yum list
vncviewer -via student@server6 localhost:2
#rpm -qi [package name]
#rpm -qa | grep [package name]
46. Create a tar ball with gzip compression of the home dir
# virsh create /etc/libvert/qemu/vm_file_name.xml
$ tar czvf home.tar.gz /home
/usr/share/doc/initscripts-*/sysconfig.txt
yum remove firefox4
47. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
ssh-keygen
cat >> some_file << _EOF
/etc/yum.repos.d/
#iptables -I INPUT -p tcp --dport 21 -j Accept
48. Email related messages log
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/var/log/maillog
tar xvzf /tmp/etc.tar.gz /etc
/var/www/html/
49. Install star
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# yum
# cat /var/log/messages | grep [Ff]ailed | less
tar czvf /tmp/etc.tar.gz /etc
50. FTP package used in RHEL 6
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/etc/hosts
vsftpd
tar czvf /tmp/etc.tar.gz /etc