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. Install a pkg.rpm locally
logwatch
rpm localinstall pkg.rpm --nogpgcheck
rsync /home/test1.html root@server6.example.com:/var/pub
yum install firefox4
2. Program to analyze standard log files and send a summary email to root
yum info firefox4
#yum install [package name]
logwatch
insert as opposed to append
3. Redirect errors to std out
2>&1
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
*.debug /var/log/debug.log service rsyslog restart
yum search firefox
4. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
insert as opposed to append
chkconfig httpd on
#rpm -qac [package name]
/etc/sysconfig/network
5. Install star
#iptables -D INPUT -p tcp --dport 21 -j accpet
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/network
# yum
6. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
/var/log/messages
rsync -a /home/test1.html root@server6.example.com:/var/pub
cat >> some_file << _EOF
palimpsest
7. handles dependencies while RPMs do not uses preconfigured repos
#yum
cat >> some_file << _EOF
#rpm -qac [package name]
#yum groupinstall "group name"
8. Use lftp to connect
/etc/sysconfig/iptables
#uname -r
$ grep -v ^# /etc/nsswitch.conf
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
9. Disk Utility Command
cp /home/test1.html /var/www/html/test1.html
palimpsest
#yum groupremove "group name"
#yum groupinstall "group name"
10. Copy a public ssh key to server6
rpm -q pkg.rpm --scripts
#rpm -qa | grep [package name]
ssh-keygen
ssh-copy-id root@server6.example.com
11. All messages sent at info priority or higher
# star -xattr -H=exustar -c -f=home.star /home/
[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
/etc/rsyslog.conf
/var/log/messages
12. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
name-version-release.architecture.rpm
#rpm -qa | grep [package name]
tar fzj
MailTo=student@server6.example.com
13. Restart ssh services
#rpm -qac [package name]
service sshd restart
$ tar xzvf home.tar.gz /home
yum search firefox
14. Create a symbolic link to /pub on the FTP and name it pub
tar cxtv
ssh-keygen
ln -s /pub /var/www/html/pub
/etc/services
15. Repo config file
[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
/var/www/html/
#rpm -qa | grep [package name]
yum search firefox
16. List VMs
#virsh list
palimpsest
service ntpd restart
ln -s /pub /var/www/html/pub
17. Start vsftp service
#rpm -ivh [package name]
rhn_register
vsftpd restart
#yum
18. Install a package named firefox4
*.debug /var/log/debug.log service rsyslog restart
rsync /home/test1.html root@server6.example.com:/var/pub
yum install firefox4
#ip addr show
19. Persist the web server on boot
/etc/rsyslog.conf
#virsh list
chkconfig httpd on
tar xvzf /tmp/etc.tar.gz /etc
20. Update a package
/var/log/cron
/var/lib/rpm
yum remove firefox4
yum update
21. Start GUI for Firewall
vsftpd restart
#rpm -uvh [package name]
name-version-release.architecture.rpm
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
22. Set a VNC password
ln -s /pub /var/www/html/pub
vncpasswd
/dev
/etc/sysconfig/iptables
23. Register on the RHN
[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
system-config-firewall tui
rhn_register
/etc/ssh/sshd_config
24. Install with RPM
vncviewer -via student@server6 localhost:2
GUI menu system/administratrion/firewall
#rpm -ivh [package name]
*.debug /var/log/debug.log service rsyslog restart
25. Display packages that match the pathname
tar czvf /tmp/etc.tar.gz /etc
#yum remove [package name]
yum provides
/etc/sysconfig/iptables
26. Install a package group with yum
#yum groupinstall "group name"
/var/log/messages
rpm -ql vsftpd
#yum info [package name]
27. See the configuration files installed with a package named httpd
rpm -qc httpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
rhn_register
rpm -qp pkg.rpm
28. 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
ip masqu
#virsh destroy domain-id
29. Edit files with cat until the _EOF is found
/etc/hosts
$ tar xzvf home.tar.gz /home
cat >> some_file << _EOF
updating the kernel
30. Grep with ignoring case
# grep -i
nautilus
#yum remove [package name]
/var/log/messages
31. File holding services - ports - protocols assoicated
/etc/services
add/remove software GUI
rpm -qc httpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
32. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
/var/log/secure
/etc/yum.repos.d/
/etc/rsyslog.conf
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
33. Local file copy of /home/test1.html to /var/www/html/test1.html
/etc/sysconfig/iptables
cp /home/test1.html /var/www/html/test1.html
#rpm -qi [package name]
yum search firefox
34. Create a gzip-compressed backup of /etc in /tmp
#virsh destroy domain-id
yum search firefox
tar czvf /tmp/etc.tar.gz /etc
/var/lib/rpm
35. Stores IPtables rules (filter) chains - input forward output are persistant
vsftpd
vncpasswd
/etc/sysconfig/iptables
#ip addr show
36. Adjust the persistent runlevel
/etc/ssh/sshd_config
yum provides
palimpsest
# vi /etc/inittab change - id:3:initdefault:
37. Process packets coming into the system
IPtables input chain
yum remove firefox4
#iptables -D INPUT -p tcp --dport 21 -j accpet
system-config-firewall tui
38. System config firewall
# cat /var/log/messages | grep [Ff]ailed | less
yum update
/var/log/cron
GUI menu system/administratrion/firewall
39. Install the star compression tool create an archive with the star tool.
# star -x -f=home.star
yum update
/dev
# star -xattr -H=exustar -c -f=home.star /home/
40. Query all documentation with RPM
yum list
#rpm -qad [package name]
# grep -i
/etc/sysconfig/iptables
41. Local host file (contains hostname). Can contain local system DNS.
/etc/yum.repos.d
#yum groupinstall "group name"
/etc/services
/etc/hosts
42. Query configuration files with RPM
#rpm -qad [package name]
#rpm -qac [package name]
#yum remove [package name]
rhn_register
43. List iptables
#iptables -L
#yum install [package name]
$ tar xzvf home.tar.gz /home
# vi /etc/inittab change - id:3:initdefault:
44. Search for a package within all packages
rpm -q pkg.rpm --scripts
/etc/ssh/sshd_config
#rpm -qa | grep [package name]
$ tar czvf home.tar.gz /home
45. Send all debug level messages to /var/log/debug.log
tar xvzf /tmp/etc.tar.gz /etc
*.debug /var/log/debug.log service rsyslog restart
#rpm -ivh [package name]
chkconfig vsftpd on
46. tar options for create - extract - test - and verbose
#iptables -I INPUT -p tcp --dport 21 -j Accept
#virsh list
#iptables -D INPUT -p tcp --dport 21 -j accpet
tar cxtv
47. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
#rpm -qac [package name]
/etc/sysconfig/network
logwatch
# vi /etc/inittab change - id:3:initdefault:
48. Get a list of package groups from yum
yum provides
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum grouplist
service sshd restart
49. Determine which package provides SSH
#rpm -qad [package name]
/etc/sysconfig/iptables
service ntpd restart
yum provides "*/sbin/sshd"
50. Contains RPM database
/var/lib/rpm
rpm -ql vsftpd
service ntpd restart
$ tar xzvf home.tar.gz /home