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. Restart the ntpd service
#iptables -D INPUT -p tcp --dport 21 -j accpet
rsync /home root@server6.example.com:/tmp
service ntpd restart
tar fzj
2. Authentication related messages log
MailTo=student@server6.example.com
chkconfig vsftpd on
ln -s /pub /var/www/html/pub
/var/log/secure
3. List VMs
/var/log/secure
yum install tigervnc-server
# star -x -f=home.star
#virsh list
4. Restart vnc and persist on boot
/dev
service vncserver restart chkconfig vncserver on
#rpm -ivh [package name]
# yum
5. tar options for create - extract - test - and verbose
tar cxtv
# yum
$ tar czvf home.tar.gz /home
/etc/yum.repos.d
6. Import a public key
rpm --import [public key location]
man search :/repository
#iptables -I INPUT -p tcp --dport 21 -j Accept
updating the kernel
7. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
IPtables output chain
#rpm -qad [package name]
insert as opposed to append
rsync -a /home/test1.html root@server6.example.com:/var/pub
8. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
/etc/yum.repos.d
#yum install [package name]
*.debug /var/log/debug.log service rsyslog restart
9. Kill a VM
ln -s /pub /var/www/html/pub
yum install firefox4
.spec
#virsh destroy domain-id
10. Disk Utility Command
palimpsest
man search :/repository
updating the kernel
logwatch
11. See files installed with a package named vsftpd
ln -s /pub /var/www/html/pub
#yum install [package name]
rpm -ql vsftpd
#yum groupremove "group name"
12. File holding services - ports - protocols assoicated
service vncserver restart chkconfig vncserver on
$ tar czvf home.tar.gz /home
MailTo=student@server6.example.com
/etc/services
13. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
rpm localinstall pkg.rpm --nogpgcheck
/var/lib/rpm
chkconfig httpd on
14. Generate SSH Keys
ssh-keygen
/etc/yum.repos.d
# grep -i
vsftpd restart
15. Start vsftp service
vsftpd restart
/etc/sysconfig/network
# renice -10 proc-id
vncviewer -via student@server6 localhost:2
16. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
#virsh destroy domain-id
Fully Qualified Domain Name
#uname -r
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
17. Register on the RHN
tar czvf /tmp/etc.tar.gz /etc
/var/log/cron
# renice -10 proc-id
rhn_register
18. Process packets coming out of the system
IPtables output chain
*.debug /var/log/debug.log service rsyslog restart
#iptables -I INPUT -p tcp --dport 21 -j Accept
ip masqu
19. Install a package group with yum
rpm -qc httpd
#yum groupinstall "group name"
service sshd restart
yum info firefox4
20. Extract a star compressed file
system-config-firewall tui
# star -x -f=home.star
/var/log/cron
#iptables -D INPUT -p tcp --dport 21 -j accpet
21. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
# vi /etc/inittab change - id:3:initdefault:
/etc/sysconfig/network
/etc/rsyslog.conf
.spec
22. Adjust the persistent runlevel
#rpm -qac [package name]
ip masqu
# vi /etc/inittab change - id:3:initdefault:
/var/log/cron
23. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
yum provides "*/sbin/sshd"
MailTo=student@server6.example.com
tar fzj
24. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
vncviewer -via student@server6 localhost:2
updating the kernel
chkconfig httpd on
$ tar xzvf home.tar.gz /home
25. Set process priority with renice - -20 highest - 20 lowest - 0 is default
/var/log/messages
# renice -10 proc-id
2>&1
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
26. Set a VNC password
GUI menu system/administratrion/firewall
/etc/sysconfig/iptables
/etc/yum.repos.d
vncpasswd
27. handles dependencies while RPMs do not uses preconfigured repos
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar xvzf /tmp/etc.tar.gz /etc
yum list
#yum
28. Search for a package with firefox in the description
yum search firefox
system-config-firewall tui
# star -x -f=home.star
#yum install [package name]
29. Persist FTP on boot
chkconfig vsftpd on
palimpsest
/dev
cp /home/test1.html /var/www/html/test1.html
30. Messages related to cron log
/var/log/cron
yum list
#iptables -D INPUT -p tcp --dport 21 -j accpet
# yum
31. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
logwatch
rpm -qc httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
service vncserver restart chkconfig vncserver on
32. Install a package named firefox4
service sshd restart
yum install firefox4
yum install tigervnc-server
tar czvf /tmp/etc.tar.gz /etc
33. Get more information on a package availale through yum
#ip addr show
IPtables forward chain
chkconfig httpd on
#yum info [package name]
34. Grep with ignoring case
vncviewer -via student@server6 localhost:2
# grep -i
tar cxtv
$ tar czvf home.tar.gz /home
35. original DNS config file - still used
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ntpdate -b instructor
/dev
/etc/sysconfig/resolv.conf
36. RPM package naming
rpm --import [public key location]
name-version-release.architecture.rpm
/var/www/html/
#virsh destroy domain-id
37. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
#yum install [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/var/lib/rpm
38. Start GUI for Firewall
#rpm -qi [package name]
ip masqu
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/var/log/messages
39. List scripts that can be run after installation of pkg.rpm
rpm -q pkg.rpm --scripts
IPtables forward chain
#rpm -qac [package name]
#yum info [package name]
40. List iptables
vsftpd restart
#iptables -L
#ip addr show
$ tar xzvf home.tar.gz /home
41. Query configuration files with RPM
#iptables -D INPUT -p tcp --dport 21 -j accpet
#rpm -qac [package name]
*.debug /var/log/debug.log service rsyslog restart
# star -xattr -H=exustar -c -f=home.star /home/
42. Gets kernel version and release number
/etc/sysconfig/resolv.conf
rsync -a /home/test1.html root@server6.example.com:/var/pub
#uname -r
yum install firefox4
43. Program to analyze standard log files and send a summary email to root
# vi /etc/inittab change - id:3:initdefault:
/var/log/cron
IPtables input chain
logwatch
44. Where are HTML pages hosted?
/etc/sysconfig/resolv.conf
/var/www/html/
/dev
#yum remove [package name]
45. Search for a package within all packages
vsftpd
#rpm -qac [package name]
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -qa | grep [package name]
46. FTP package used in RHEL 6
/etc/sysconfig/iptables
/usr/share/doc/initscripts-*/sysconfig.txt
rpm -qp pkg.rpm
vsftpd
47. Query information files with RPM
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
man search :/repository
#yum remove [package name]
#rpm -qi [package name]
48. Location of repo's
/etc/yum.repos.d/
rsync -a /home/test1.html root@server6.example.com:/var/pub
chkconfig vsftpd on
IPtables input chain
49. Primary configuration of ssh
tar cxtv
vsftpd
/etc/ssh/sshd_config
/etc/yum.repos.d
50. Install with RPM
system-config-firewall tui
#rpm -ivh [package name]
$ tar xzvf home.tar.gz /home
#iptables -L