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. RPM package naming
/etc/sysconfig/iptables
name-version-release.architecture.rpm
rpm localinstall pkg.rpm --nogpgcheck
man search :/repository
2. See files installed with a package named vsftpd
ntpdate -b instructor
cp /home/test1.html /var/www/html/test1.html
ssh-copy-id root@server6.example.com
rpm -ql vsftpd
3. tar options for file name - gzip - and bzip2
# renice -10 proc-id
#rpm -ivh [package name]
tar fzj
rpm localinstall pkg.rpm --nogpgcheck
4. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
updating the kernel
service sshd restart
.spec
5. Create a symbolic link to /pub on the FTP and name it pub
/etc/yum.repos.d
/var/log/maillog
rpm localinstall pkg.rpm --nogpgcheck
ln -s /pub /var/www/html/pub
6. Set a VNC password
service vncserver restart chkconfig vncserver on
vncpasswd
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/etc/services
7. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
/var/lib/rpm
updating the kernel
/var/log/secure
#rpm -qi [package name]
8. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/sysconfig/iptables
/var/www/html/
/usr/share/doc/initscripts-*/sysconfig.txt
yum update
9. Generate SSH Keys
/usr/share/doc/initscripts-*/sysconfig.txt
ssh-keygen
#yum info [package name]
rpm -q pkg.rpm --scripts
10. Get a list of package groups from yum
#yum grouplist
rsync /home root@server6.example.com:/tmp
yum install tigervnc-server
# grep -i
11. Extract /tmp/etc.tar.gz to /etc
chkconfig httpd on
man search :/repository
tar xvzf /tmp/etc.tar.gz /etc
IPtables forward chain
12. Search for command in the doc directory
#iptables -I INPUT -p tcp --dport 21 -j Accept
cp /home/test1.html /var/www/html/test1.html
/etc/sysconfig/iptables
# ls -l /usr/share/doc | grep httpd
13. List installed and available packages
rhn_register
/etc/services
yum list
#rpm -qi [package name]
14. Process packets coming out of the system
/var/log/cron
ln -s /pub /var/www/html/pub
IPtables output chain
service ntpd restart
15. Process packets being forwarded through the system
#yum info [package name]
palimpsest
IPtables forward chain
#yum groupinstall "group name"
16. Shell config tool gropued like GUI firewall configurater.
rpm -qc httpd
#yum grouplist
system-config-firewall tui
rhn_register
17. Repos for yum
MailTo=student@server6.example.com
/etc/yum.repos.d
#virsh list
yum search firefox
18. Import a public key
palimpsest
rpm -qc httpd
#yum groupinstall "group name"
rpm --import [public key location]
19. See the configuration files installed with a package named httpd
rpm -qc httpd
#yum info [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/ssh/sshd_config
20. FTP package used in RHEL 6
#iptables -I INPUT -p tcp --dport 21 -j Accept
rpm --import [public key location]
# star -xattr -H=exustar -c -f=home.star /home/
vsftpd
21. Search for a package within all packages
Fully Qualified Domain Name
#rpm -qa | grep [package name]
system-config-date
#ip addr show
22. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
MailTo=student@server6.example.com
/etc/ssh/sshd_config
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
23. Uninstall a package group with yum
add/remove software GUI
# vi /etc/inittab change - id:3:initdefault:
#yum groupremove "group name"
vsftpd restart
24. Messages related to cron log
rhn_register
# ls -l /usr/share/doc | grep httpd
/var/log/cron
chkconfig vsftpd on
25. Get more information on a package availale through yum
cp /home/test1.html /var/www/html/test1.html
#yum info [package name]
rpm -qp pkg.rpm
/var/www/html/
26. GUI install / uninstall with yum
/var/log/maillog
IPtables output chain
chkconfig vsftpd on
add/remove software GUI
27. Copy a public ssh key to server6
/usr/share/doc/initscripts-*/sysconfig.txt
vsftpd
service vncserver restart chkconfig vncserver on
ssh-copy-id root@server6.example.com
28. Query information files with RPM
tar fzj
#rpm -qi [package name]
# vi /etc/inittab change - id:3:initdefault:
/etc/ssh/sshd_config
29. Grep with ignoring case
$ grep -v ^# /etc/nsswitch.conf
vncviewer -via student@server6 localhost:2
rsync /home/test1.html root@server6.example.com:/var/pub
# grep -i
30. handles dependencies while RPMs do not uses preconfigured repos
$ tar czvf home.tar.gz /home
#yum
/var/log/messages
#rpm -uvh [package name]
31. Local host file (contains hostname). Can contain local system DNS.
2>&1
/etc/hosts
#rpm -qi [package name]
rpm -qp pkg.rpm
32. Acting as a router with forwarding
#iptables -I INPUT -p tcp --dport 21 -j Accept
# virsh create /etc/libvert/qemu/vm_file_name.xml
ip masqu
/var/log/cron
33. List iptables
/var/www/html/
#iptables -L
/var/log/maillog
nautilus
34. Create a gzip-compressed backup of /etc in /tmp
#rpm -ivh [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
tar czvf /tmp/etc.tar.gz /etc
logwatch
35. Get information about a package named firefox4
# grep -i
# renice -10 proc-id
yum info firefox4
service sshd restart
36. Extract a star compressed file
# star -x -f=home.star
service sshd restart
yum list
service vncserver restart chkconfig vncserver on
37. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#uname -r
#ip addr show
#iptables -I INPUT -p tcp --dport 21 -j Accept
IPtables output chain
38. Delete a rule from iptables
tar xvzf /tmp/etc.tar.gz /etc
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -D INPUT -p tcp --dport 21 -j accpet
yum install tigervnc-server
39. Install a package with yum
yum list
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#yum install [package name]
nautilus
40. Searches for page within the #man yum
# cat /var/log/messages | grep [Ff]ailed | less
# yum
man search :/repository
chkconfig vsftpd on
41. Disks available for partitions
palimpsest
#yum remove [package name]
/etc/sysconfig/resolv.conf
/dev
42. Connect with VNC viewer securely
/etc/sysconfig/iptables
vncviewer -via student@server6 localhost:2
#rpm -qad [package name]
#uname -r
43. Configuration file for system logs
/etc/yum.repos.d
yum provides
.spec
/etc/rsyslog.conf
44. tar options for create - extract - test - and verbose
tar cxtv
/usr/share/doc/initscripts-*/sysconfig.txt
/dev
ln -s /pub /var/www/html/pub
45. Install star
rpm --import [public key location]
# yum
/var/log/cron
# virsh create /etc/libvert/qemu/vm_file_name.xml
46. Gets kernel version and release number
/etc/services
#uname -r
name-version-release.architecture.rpm
cat >> some_file << _EOF
47. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
#yum groupremove "group name"
insert as opposed to append
yum install tigervnc-server
logwatch
48. Create a tar ball with gzip compression of the home dir
/var/log/maillog
/etc/hosts
$ tar czvf home.tar.gz /home
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
49. Redirect errors to std out
2>&1
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
tar xvzf /tmp/etc.tar.gz /etc
rpm -qc httpd
50. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
rpm -ql vsftpd
MailTo=student@server6.example.com
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
yum update