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 gzip-compressed backup of /etc in /tmp
tar czvf /tmp/etc.tar.gz /etc
ntpdate -b instructor
Fully Qualified Domain Name
rpm -q pkg.rpm --scripts
2. Start GUI for Firewall
tar xvzf /tmp/etc.tar.gz /etc
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
yum remove firefox4
#rpm -ivh [package name]
3. Persist the web server on boot
rhn_register
chkconfig httpd on
insert as opposed to append
yum info firefox4
4. tar options for create - extract - test - and verbose
ssh-keygen
# star -x -f=home.star
tar cxtv
vsftpd restart
5. Start the GUI for date configuration
ssh-copy-id root@server6.example.com
vsftpd restart
/etc/yum.repos.d
system-config-date
6. Uninstall a package group with yum
yum info firefox4
#yum groupremove "group name"
$ tar czvf home.tar.gz /home
#iptables -F
7. Searches for page within the #man yum
updating the kernel
man search :/repository
tar fzj
/etc/ssh/sshd_config
8. Query all documentation with RPM
system-config-firewall tui
tar cxtv
#rpm -qad [package name]
MailTo=student@server6.example.com
9. Install the VNC server package
service vncserver restart chkconfig vncserver on
yum install tigervnc-server
*.debug /var/log/debug.log service rsyslog restart
ntpdate -b instructor
10. Configuration for VNC
/var/log/secure
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/dev
yum list
11. Repos for yum
palimpsest
# renice -10 proc-id
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/etc/yum.repos.d
12. GUI File Manager
vsftpd
MailTo=student@server6.example.com
#yum grouplist
nautilus
13. Install a package group with yum
palimpsest
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#yum groupinstall "group name"
# yum
14. Email related messages log
yum install firefox4
/var/log/maillog
system-config-firewall tui
#rpm -qad [package name]
15. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
IPtables forward chain
rsync /home/test1.html root@server6.example.com:/var/pub
updating the kernel
MailTo=student@server6.example.com
16. Determine which package provides SSH
yum provides "*/sbin/sshd"
yum update
#yum remove [package name]
system-config-firewall tui
17. Kill a VM
#yum remove [package name]
add/remove software GUI
#virsh destroy domain-id
/dev
18. See files installed with a package named vsftpd
#iptables -L
# yum
service sshd restart
rpm -ql vsftpd
19. Use lftp to connect
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ln -s /pub /var/www/html/pub
rsync /home/test1.html root@server6.example.com:/var/pub
IPtables output chain
20. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
system-config-firewall tui
yum search firefox
/var/log/maillog
21. Remove a package with yum
tar czvf /tmp/etc.tar.gz /etc
#yum remove [package name]
#iptables -F
rpm -qp pkg.rpm
22. Set a VNC password
tar fzj
vncpasswd
updating the kernel
ln -s /pub /var/www/html/pub
23. GUI install / uninstall with yum
add/remove software GUI
# star -x -f=home.star
/etc/services
# renice -10 proc-id
24. See the configuration files installed with a package named httpd
rpm -qc httpd
tar xvzf /tmp/etc.tar.gz /etc
tar czvf /tmp/etc.tar.gz /etc
tar fzj
25. Program to analyze standard log files and send a summary email to root
2>&1
/var/log/messages
logwatch
service vncserver restart chkconfig vncserver on
26. Remove a package named firefox4
# star -xattr -H=exustar -c -f=home.star /home/
Fully Qualified Domain Name
yum remove firefox4
/etc/yum.repos.d
27. Contains RPM database
/var/lib/rpm
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ip masqu
#iptables -D INPUT -p tcp --dport 21 -j accpet
28. Authentication related messages log
cat >> some_file << _EOF
#yum groupinstall "group name"
/var/log/secure
#iptables -F
29. Search for command in the doc directory
# ls -l /usr/share/doc | grep httpd
#virsh destroy domain-id
#yum info [package name]
[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
30. Restart ssh services
vsftpd restart
service sshd restart
yum info firefox4
/usr/share/doc/initscripts-*/sysconfig.txt
31. Install star
GUI menu system/administratrion/firewall
rsync /home root@server6.example.com:/tmp
#virsh list
# yum
32. System config firewall
#yum groupinstall "group name"
# renice -10 proc-id
GUI menu system/administratrion/firewall
vncviewer -via student@server6 localhost:2
33. Flush the firewall of all rules
/var/lib/rpm
#iptables -F
cp /home/test1.html /var/www/html/test1.html
/var/log/cron
34. List scripts that can be run after installation of pkg.rpm
MailTo=student@server6.example.com
#virsh list
rpm -q pkg.rpm --scripts
yum install firefox4
35. Gets kernel version and release number
/var/log/messages
ssh-keygen
yum install firefox4
#uname -r
36. Start vsftp service
yum update
system-config-firewall tui
vsftpd restart
add/remove software GUI
37. Rpm upgrade package u upgrade v verbose h hash
cat >> some_file << _EOF
/var/lib/rpm
/var/log/cron
#rpm -uvh [package name]
38. Install the star compression tool create an archive with the star tool.
Fully Qualified Domain Name
#rpm -qad [package name]
tar czvf /tmp/etc.tar.gz /etc
# star -xattr -H=exustar -c -f=home.star /home/
39. Show IP address with the IP command
vsftpd
#ip addr show
/etc/yum.repos.d/
/dev
40. Create a tar ball with gzip compression of the home dir
insert as opposed to append
$ tar czvf home.tar.gz /home
/etc/ssh/sshd_config
IPtables output chain
41. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum groupremove "group name"
#rpm -ivh [package name]
42. Stores IPtables rules (filter) chains - input forward output are persistant
# star -x -f=home.star
logwatch
/etc/services
/etc/sysconfig/iptables
43. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/yum.repos.d/
# virsh create /etc/libvert/qemu/vm_file_name.xml
44. Generate SSH Keys
# yum
ssh-keygen
yum provides "*/sbin/sshd"
#virsh destroy domain-id
45. Stores filewall rules for the system.
MailTo=student@server6.example.com
chkconfig vsftpd on
/etc/sysconfig/iptables
tar cxtv
46. handles dependencies while RPMs do not uses preconfigured repos
IPtables forward chain
# renice -10 proc-id
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum
47. fqdn
Fully Qualified Domain Name
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum grouplist
[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
48. Local host file (contains hostname). Can contain local system DNS.
/var/log/cron
#yum groupinstall "group name"
/etc/hosts
# vi /etc/inittab change - id:3:initdefault:
49. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
#rpm -qad [package name]
rpm -ql vsftpd
/var/lib/rpm
rsync -a /home/test1.html root@server6.example.com:/var/pub
50. RPM package naming
# renice -10 proc-id
name-version-release.architecture.rpm
insert as opposed to append
*.debug /var/log/debug.log service rsyslog restart