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. Generate SSH Keys
ip masqu
rpm -ql vsftpd
ssh-keygen
insert as opposed to append
2. tar options for file name - gzip - and bzip2
rsync -a /home/test1.html root@server6.example.com:/var/pub
cat >> some_file << _EOF
#rpm -qad [package name]
tar fzj
3. Query all documentation with RPM
#rpm -qad [package name]
rpm -qc httpd
MailTo=student@server6.example.com
IPtables input chain
4. List installed and available packages
# star -xattr -H=exustar -c -f=home.star /home/
rpm -qp pkg.rpm
yum list
name-version-release.architecture.rpm
5. Documentation about sysconfig network scripts
ln -s /pub /var/www/html/pub
#iptables -F
chkconfig vsftpd on
/usr/share/doc/initscripts-*/sysconfig.txt
6. Search for command in the doc directory
#yum
# ls -l /usr/share/doc | grep httpd
/etc/sysconfig/vncservers rpm -ql tigervnc-server
2>&1
7. GUI File Manager
#rpm -qac [package name]
nautilus
/etc/sysconfig/resolv.conf
vsftpd
8. Install a package named firefox4
nautilus
yum install firefox4
# grep -i
vncviewer -via student@server6 localhost:2
9. tar options for create - extract - test - and verbose
tar xvzf /tmp/etc.tar.gz /etc
service ntpd restart
system-config-date
tar cxtv
10. Process packets coming out of the system
IPtables output chain
/var/log/secure
rsync /home/test1.html root@server6.example.com:/var/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
11. Persist the web server on boot
/etc/sysconfig/network
#yum remove [package name]
chkconfig httpd on
/usr/share/doc/initscripts-*/sysconfig.txt
12. Install a package group with yum
#yum
service vncserver restart chkconfig vncserver on
#yum groupinstall "group name"
#iptables -L
13. Display packages that match the pathname
#rpm -qac [package name]
system-config-date
IPtables forward chain
yum provides
14. Disk Utility Command
# ls -l /usr/share/doc | grep httpd
service ntpd restart
$ tar xzvf home.tar.gz /home
palimpsest
15. Sync ntp time with the instructor
# star -xattr -H=exustar -c -f=home.star /home/
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# grep -i
ntpdate -b instructor
16. Set process priority with renice - -20 highest - 20 lowest - 0 is default
# renice -10 proc-id
*.debug /var/log/debug.log service rsyslog restart
yum list
/etc/sysconfig/resolv.conf
17. Start GUI for Firewall
ip masqu
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
vncviewer -via student@server6 localhost:2
yum provides
18. Redirect errors to std out
/etc/yum.repos.d/
/var/www/html/
2>&1
#rpm -qa | grep [package name]
19. Update a package
rpm -ql vsftpd
yum update
Fully Qualified Domain Name
*.debug /var/log/debug.log service rsyslog restart
20. fqdn
chkconfig vsftpd on
/etc/ssh/sshd_config
Fully Qualified Domain Name
/usr/share/doc/initscripts-*/sysconfig.txt
21. Authentication related messages log
#rpm -uvh [package name]
/var/log/secure
#yum grouplist
/var/log/messages
22. handles dependencies while RPMs do not uses preconfigured repos
yum update
/var/log/messages
#yum groupremove "group name"
#yum
23. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
service vncserver restart chkconfig vncserver on
rpm -qc httpd
#yum groupremove "group name"
24. Disks available for partitions
#yum install [package name]
#yum
/dev
/var/www/html/
25. Local host file (contains hostname). Can contain local system DNS.
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/etc/hosts
yum provides "*/sbin/sshd"
# cat /var/log/messages | grep [Ff]ailed | less
26. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
ssh-copy-id root@server6.example.com
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
cp /home/test1.html /var/www/html/test1.html
27. Install a pkg.rpm locally
rpm localinstall pkg.rpm --nogpgcheck
ntpdate -b instructor
# renice -10 proc-id
IPtables output chain
28. Grep for lines that do not match (-v)
system-config-date
$ grep -v ^# /etc/nsswitch.conf
/etc/sysconfig/network
ssh-keygen
29. Process packets coming into the system
IPtables input chain
system-config-date
/etc/yum.repos.d
GUI menu system/administratrion/firewall
30. Repos for yum
#rpm -qi [package name]
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/yum.repos.d
add/remove software GUI
31. Contains RPM database
/var/lib/rpm
rpm -ql vsftpd
# renice -10 proc-id
service ntpd restart
32. Remove a package named firefox4
ip masqu
IPtables forward chain
yum remove firefox4
logwatch
33. Extract a star compressed file
updating the kernel
rsync -a /home/test1.html root@server6.example.com:/var/pub
# star -x -f=home.star
yum install firefox4
34. All messages sent at info priority or higher
ln -s /pub /var/www/html/pub
/var/log/messages
# grep -i
GUI menu system/administratrion/firewall
35. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
yum update
vsftpd restart
#uname -r
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
36. Get a list of package groups from yum
/etc/services
#uname -r
#yum grouplist
ntpdate -b instructor
37. Extract /tmp/etc.tar.gz to /etc
palimpsest
updating the kernel
tar xvzf /tmp/etc.tar.gz /etc
# yum
38. Backup a home directory on desktop6 to /tmp on server6
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum remove [package name]
rsync /home root@server6.example.com:/tmp
39. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/iptables
rpm -qp pkg.rpm
service ntpd restart
40. Get information about a package named firefox4
yum info firefox4
service sshd restart
yum list
rhn_register
41. Searches for page within the #man yum
nautilus
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rpm localinstall pkg.rpm --nogpgcheck
man search :/repository
42. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
insert as opposed to append
# renice -10 proc-id
/etc/rsyslog.conf
MailTo=student@server6.example.com
43. 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
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/rsyslog.conf
updating the kernel
44. RPM package naming
service ntpd restart
name-version-release.architecture.rpm
#yum grouplist
/var/log/cron
45. FTP package used in RHEL 6
yum remove firefox4
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#uname -r
vsftpd
46. Remove a package with yum
#yum install [package name]
*.debug /var/log/debug.log service rsyslog restart
#rpm -qac [package name]
#yum remove [package name]
47. Query information files with RPM
system-config-firewall tui
ssh-copy-id root@server6.example.com
#rpm -qi [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
48. Remote file copy /home/test1.html to the /var/pub directory on server6
/usr/share/doc/initscripts-*/sysconfig.txt
rsync /home/test1.html root@server6.example.com:/var/pub
#rpm -uvh [package name]
/etc/sysconfig/iptables
49. Flush the firewall of all rules
rpm -q pkg.rpm --scripts
system-config-date
$ grep -v ^# /etc/nsswitch.conf
#iptables -F
50. Start vsftp service
#yum
service ntpd restart
vsftpd restart
IPtables output chain