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 upgrade package u upgrade v verbose h hash
#yum groupinstall "group name"
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#rpm -uvh [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
2. Determine which package provides SSH
/etc/services
add/remove software GUI
yum provides "*/sbin/sshd"
chkconfig vsftpd on
3. Program to analyze standard log files and send a summary email to root
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
logwatch
ln -s /pub /var/www/html/pub
# yum
4. File holding services - ports - protocols assoicated
ssh-copy-id root@server6.example.com
yum provides
/etc/ssh/sshd_config
/etc/services
5. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
updating the kernel
rhn_register
yum install firefox4
#yum grouplist
6. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
# cat /var/log/messages | grep [Ff]ailed | less
logwatch
.spec
7. Start the GUI for date configuration
#yum install [package name]
yum install firefox4
# star -x -f=home.star
system-config-date
8. Stores filewall rules for the system.
/etc/sysconfig/iptables
ssh-copy-id root@server6.example.com
#iptables -D INPUT -p tcp --dport 21 -j accpet
palimpsest
9. Copy a public ssh key to server6
service sshd restart
2>&1
#yum groupinstall "group name"
ssh-copy-id root@server6.example.com
10. Extract a star compressed file
/etc/hosts
# star -x -f=home.star
yum remove firefox4
# star -xattr -H=exustar -c -f=home.star /home/
11. Searches for page within the #man yum
#yum
yum update
man search :/repository
#iptables -F
12. Restart vnc and persist on boot
MailTo=student@server6.example.com
service vncserver restart chkconfig vncserver on
# star -x -f=home.star
# cat /var/log/messages | grep [Ff]ailed | less
13. Query configuration files with RPM
# grep -i
#rpm -qac [package name]
#rpm -ivh [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
14. All messages sent at info priority or higher
2>&1
/var/log/messages
service sshd restart
GUI menu system/administratrion/firewall
15. Local file copy of /home/test1.html to /var/www/html/test1.html
/etc/sysconfig/iptables
#virsh list
ssh-keygen
cp /home/test1.html /var/www/html/test1.html
16. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
Fully Qualified Domain Name
#rpm -qi [package name]
rhn_register
/etc/sysconfig/network
17. An example of searching through system logs with interpretation.
updating the kernel
# cat /var/log/messages | grep [Ff]ailed | less
chkconfig vsftpd on
/etc/sysconfig/network
18. Use lftp to connect
#yum install [package name]
yum list
#iptables -L
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
19. Extract a gzipped tar ball in your home directory
#ip addr show
$ tar xzvf home.tar.gz /home
rpm -q pkg.rpm --scripts
#yum info [package name]
20. GUI File Manager
nautilus
#uname -r
# virsh create /etc/libvert/qemu/vm_file_name.xml
#iptables -L
21. Messages related to cron log
# yum
/var/log/cron
#yum groupinstall "group name"
insert as opposed to append
22. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
/etc/ssh/sshd_config
#ip addr show
yum list
23. Query information files with RPM
$ tar czvf home.tar.gz /home
#yum remove [package name]
#rpm -qi [package name]
#ip addr show
24. Configuration for VNC
/usr/share/doc/initscripts-*/sysconfig.txt
#iptables -L
/etc/sysconfig/vncservers rpm -ql tigervnc-server
ip masqu
25. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
# cat /var/log/messages | grep [Ff]ailed | less
MailTo=student@server6.example.com
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/hosts
26. Remove a package named firefox4
service ntpd restart
yum remove firefox4
# virsh create /etc/libvert/qemu/vm_file_name.xml
yum info firefox4
27. Search for command in the doc directory
yum install tigervnc-server
yum list
# ls -l /usr/share/doc | grep httpd
logwatch
28. Gets kernel version and release number
yum install tigervnc-server
#uname -r
/etc/services
chkconfig vsftpd on
29. tar options for create - extract - test - and verbose
ssh-copy-id root@server6.example.com
# yum
tar cxtv
system-config-firewall tui
30. Connect with VNC viewer securely
#virsh list
yum install tigervnc-server
rpm -qc httpd
vncviewer -via student@server6 localhost:2
31. tar options for file name - gzip - and bzip2
tar fzj
cp /home/test1.html /var/www/html/test1.html
#yum install [package name]
#yum
32. Disks available for partitions
Fully Qualified Domain Name
/dev
ssh-keygen
#yum grouplist
33. Persist the web server on boot
logwatch
cp /home/test1.html /var/www/html/test1.html
rhn_register
chkconfig httpd on
34. Persist FTP on boot
#ip addr show
service vncserver restart chkconfig vncserver on
chkconfig vsftpd on
/usr/share/doc/initscripts-*/sysconfig.txt
35. Restart the ntpd service
rhn_register
/dev
*.debug /var/log/debug.log service rsyslog restart
service ntpd restart
36. Get information about a package named firefox4
/etc/sysconfig/resolv.conf
#rpm -qac [package name]
yum info firefox4
vsftpd restart
37. Install the star compression tool create an archive with the star tool.
rsync /home root@server6.example.com:/tmp
# star -xattr -H=exustar -c -f=home.star /home/
yum info firefox4
#rpm -uvh [package name]
38. Where are HTML pages hosted?
/var/log/messages
/dev
/var/www/html/
cp /home/test1.html /var/www/html/test1.html
39. List VMs
#virsh list
rsync -a /home/test1.html root@server6.example.com:/var/pub
tar czvf /tmp/etc.tar.gz /etc
yum search firefox
40. Contains RPM database
# ls -l /usr/share/doc | grep httpd
insert as opposed to append
/etc/services
/var/lib/rpm
41. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
# ls -l /usr/share/doc | grep httpd
yum provides
man search :/repository
rsync -a /home/test1.html root@server6.example.com:/var/pub
42. Query all documentation with RPM
#rpm -qad [package name]
system-config-firewall tui
#iptables -I INPUT -p tcp --dport 21 -j Accept
tar czvf /tmp/etc.tar.gz /etc
43. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
#yum info [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
nautilus
44. Kill a VM
#virsh destroy domain-id
vsftpd restart
#yum groupinstall "group name"
rpm -qp pkg.rpm
45. Set process priority with renice - -20 highest - 20 lowest - 0 is default
# renice -10 proc-id
rpm -qp pkg.rpm
# cat /var/log/messages | grep [Ff]ailed | less
chkconfig vsftpd on
46. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
#rpm -qi [package name]
.spec
ip masqu
system-config-firewall tui
47. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
# grep -i
$ tar xzvf home.tar.gz /home
insert as opposed to append
yum install tigervnc-server
48. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
# vi /etc/inittab change - id:3:initdefault:
#iptables -I INPUT -p tcp --dport 21 -j Accept
rhn_register
$ grep -v ^# /etc/nsswitch.conf
49. Send all debug level messages to /var/log/debug.log
yum info firefox4
#yum
updating the kernel
*.debug /var/log/debug.log service rsyslog restart
50. Stores IPtables rules (filter) chains - input forward output are persistant
system-config-date
rpm localinstall pkg.rpm --nogpgcheck
/etc/sysconfig/iptables
vncviewer -via student@server6 localhost:2