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. Remote file copy /home/test1.html to the /var/pub directory on server6
#rpm -qac [package name]
/var/www/html/
2>&1
rsync /home/test1.html root@server6.example.com:/var/pub
2. Extract /tmp/etc.tar.gz to /etc
rpm -qp pkg.rpm
vncviewer -via student@server6 localhost:2
tar xvzf /tmp/etc.tar.gz /etc
#rpm -qa | grep [package name]
3. Install with RPM
#rpm -ivh [package name]
insert as opposed to append
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
vncpasswd
4. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
rpm -qp pkg.rpm
Fully Qualified Domain Name
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
service ntpd restart
5. Use lftp to connect
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
/var/log/maillog
rpm localinstall pkg.rpm --nogpgcheck
6. Query information files with RPM
#rpm -qi [package name]
.spec
$ tar xzvf home.tar.gz /home
# vi /etc/inittab change - id:3:initdefault:
7. FTP package used in RHEL 6
vsftpd
system-config-date
rpm --import [public key location]
# renice -10 proc-id
8. Start GUI for Firewall
rhn_register
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
$ tar czvf home.tar.gz /home
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
9. Install a pkg.rpm locally
/etc/sysconfig/resolv.conf
rpm localinstall pkg.rpm --nogpgcheck
updating the kernel
yum provides "*/sbin/sshd"
10. Rpm upgrade package u upgrade v verbose h hash
#rpm -uvh [package name]
yum install firefox4
yum list
rpm -ql vsftpd
11. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
Fully Qualified Domain Name
#yum info [package name]
rpm -qc httpd
12. Install the star compression tool create an archive with the star tool.
tar xvzf /tmp/etc.tar.gz /etc
#yum groupinstall "group name"
yum remove firefox4
# star -xattr -H=exustar -c -f=home.star /home/
13. System config firewall
GUI menu system/administratrion/firewall
/etc/ssh/sshd_config
#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
14. Disks available for partitions
service vncserver restart chkconfig vncserver on
#yum install [package name]
/dev
IPtables output chain
15. Sync ntp time with the instructor
ntpdate -b instructor
yum update
cp /home/test1.html /var/www/html/test1.html
updating the kernel
16. Process packets being forwarded through the system
IPtables forward chain
yum remove firefox4
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#uname -r
17. List installed and available packages
yum list
/var/log/cron
# grep -i
yum search firefox
18. Repo config file
service ntpd restart
cp /home/test1.html /var/www/html/test1.html
[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
#virsh list
19. Remove a package named firefox4
yum remove firefox4
[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
yum search firefox
man search :/repository
20. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
chkconfig httpd on
updating the kernel
# renice -10 proc-id
.spec
21. Search for a package with firefox in the description
Fully Qualified Domain Name
yum search firefox
/etc/yum.repos.d/
#yum groupinstall "group name"
22. Redirect errors to std out
#rpm -uvh [package name]
2>&1
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
system-config-date
23. GUI File Manager
yum install firefox4
yum info firefox4
yum search firefox
nautilus
24. List scripts that can be run after installation of pkg.rpm
rpm -q pkg.rpm --scripts
/etc/sysconfig/vncservers rpm -ql tigervnc-server
IPtables input chain
/var/www/html/
25. Stores IPtables rules (filter) chains - input forward output are persistant
rhn_register
system-config-firewall tui
system-config-date
/etc/sysconfig/iptables
26. See files installed with a package named vsftpd
vncpasswd
rpm -ql vsftpd
/etc/services
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
27. Where are HTML pages hosted?
/var/www/html/
#yum grouplist
Fully Qualified Domain Name
*.debug /var/log/debug.log service rsyslog restart
28. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
name-version-release.architecture.rpm
#iptables -F
rpm localinstall pkg.rpm --nogpgcheck
29. Kill a VM
#virsh destroy domain-id
system-config-date
#ip addr show
/var/log/secure
30. Email related messages log
/var/log/maillog
#rpm -ivh [package name]
/etc/sysconfig/vncservers rpm -ql tigervnc-server
chkconfig vsftpd on
31. Search for a package within all packages
/var/log/messages
#rpm -qa | grep [package name]
#iptables -D INPUT -p tcp --dport 21 -j accpet
# cat /var/log/messages | grep [Ff]ailed | less
32. handles dependencies while RPMs do not uses preconfigured repos
#yum grouplist
# star -xattr -H=exustar -c -f=home.star /home/
#yum
/var/log/cron
33. Remove a package with yum
#rpm -ivh [package name]
#yum remove [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
insert as opposed to append
34. Configuration file for system logs
/var/lib/rpm
#yum remove [package name]
#yum
/etc/rsyslog.conf
35. Start a VM
rsync /home root@server6.example.com:/tmp
#iptables -D INPUT -p tcp --dport 21 -j accpet
insert as opposed to append
# virsh create /etc/libvert/qemu/vm_file_name.xml
36. Program to analyze standard log files and send a summary email to root
# star -xattr -H=exustar -c -f=home.star /home/
#iptables -D INPUT -p tcp --dport 21 -j accpet
logwatch
/var/www/html/
37. An example of searching through system logs with interpretation.
vsftpd
$ tar xzvf home.tar.gz /home
# cat /var/log/messages | grep [Ff]ailed | less
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
38. Searches for page within the #man yum
man search :/repository
tar xvzf /tmp/etc.tar.gz /etc
yum provides
/var/log/secure
39. Disk Utility Command
chkconfig httpd on
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
palimpsest
40. Get a list of package groups from yum
# star -x -f=home.star
rpm -qc httpd
#rpm -qac [package name]
#yum grouplist
41. Restart the ntpd service
/etc/sysconfig/iptables
yum provides "*/sbin/sshd"
nautilus
service ntpd restart
42. Package file named pkg.rpm
/dev
rpm -qp pkg.rpm
/var/lib/rpm
/etc/yum.repos.d/
43. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
/usr/share/doc/initscripts-*/sysconfig.txt
updating the kernel
rsync /home/test1.html root@server6.example.com:/var/pub
44. Grep for lines that do not match (-v)
$ grep -v ^# /etc/nsswitch.conf
#yum groupremove "group name"
IPtables forward chain
cat >> some_file << _EOF
45. Persist FTP on boot
chkconfig vsftpd on
#uname -r
ntpdate -b instructor
# ls -l /usr/share/doc | grep httpd
46. Create a tar ball with gzip compression of the home dir
cp /home/test1.html /var/www/html/test1.html
/etc/services
$ tar czvf home.tar.gz /home
ntpdate -b instructor
47. Determine which package provides SSH
#rpm -qa | grep [package name]
tar xvzf /tmp/etc.tar.gz /etc
#rpm -ivh [package name]
yum provides "*/sbin/sshd"
48. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
/var/log/messages
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar xvzf /tmp/etc.tar.gz /etc
/etc/rsyslog.conf
49. Set process priority with renice - -20 highest - 20 lowest - 0 is default
IPtables output chain
/etc/hosts
rhn_register
# renice -10 proc-id
50. Show IP address with the IP command
#ip addr show
/etc/yum.repos.d/
# star -xattr -H=exustar -c -f=home.star /home/
yum provides