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
rhn_register
#rpm -uvh [package name]
#iptables -L
#iptables -F
2. Persist FTP on boot
chkconfig vsftpd on
#iptables -F
rhn_register
/etc/sysconfig/vncservers rpm -ql tigervnc-server
3. Location of repo's
# cat /var/log/messages | grep [Ff]ailed | less
/etc/yum.repos.d/
insert as opposed to append
#yum info [package name]
4. Restart the ntpd service
service ntpd restart
# grep -i
/etc/sysconfig/resolv.conf
yum list
5. Persist the web server on boot
chkconfig httpd on
yum install firefox4
#rpm -ivh [package name]
/etc/services
6. Get information about a package named firefox4
.spec
*.debug /var/log/debug.log service rsyslog restart
# virsh create /etc/libvert/qemu/vm_file_name.xml
yum info firefox4
7. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
#virsh list
vncpasswd
rpm -q pkg.rpm --scripts
insert as opposed to append
8. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/sysconfig/network
# renice -10 proc-id
/etc/sysconfig/iptables
# star -x -f=home.star
9. Display packages that match the pathname
/etc/services
yum provides
chkconfig httpd on
# grep -i
10. Restart ssh services
service sshd restart
/etc/ssh/sshd_config
#yum
#rpm -qi [package name]
11. List iptables
ssh-keygen
#iptables -L
# vi /etc/inittab change - id:3:initdefault:
palimpsest
12. Register on the RHN
rhn_register
/etc/ssh/sshd_config
$ tar xzvf home.tar.gz /home
#rpm -uvh [package name]
13. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
#yum remove [package name]
rsync /home root@server6.example.com:/tmp
/etc/sysconfig/vncservers rpm -ql tigervnc-server
14. Remove a package named firefox4
yum remove firefox4
rsync /home root@server6.example.com:/tmp
/etc/yum.repos.d/
yum info firefox4
15. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
#rpm -qi [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
system-config-firewall tui
16. Import a public key
#yum groupinstall "group name"
#uname -r
rpm --import [public key location]
vsftpd
17. All messages sent at info priority or higher
rpm --import [public key location]
rpm -q pkg.rpm --scripts
insert as opposed to append
/var/log/messages
18. 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
# virsh create /etc/libvert/qemu/vm_file_name.xml
/var/log/maillog
IPtables input chain
19. Query information files with RPM
IPtables output chain
yum remove firefox4
chkconfig httpd on
#rpm -qi [package name]
20. Email related messages log
cat >> some_file << _EOF
/var/log/maillog
vncviewer -via student@server6 localhost:2
ssh-keygen
21. Search for a package with firefox in the description
#yum grouplist
yum search firefox
# renice -10 proc-id
$ tar xzvf home.tar.gz /home
22. List scripts that can be run after installation of pkg.rpm
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm -q pkg.rpm --scripts
MailTo=student@server6.example.com
service vncserver restart chkconfig vncserver on
23. Contains RPM database
rsync /home/test1.html root@server6.example.com:/var/pub
/var/lib/rpm
ssh-keygen
tar czvf /tmp/etc.tar.gz /etc
24. Package file named pkg.rpm
ssh-copy-id root@server6.example.com
rpm -qp pkg.rpm
MailTo=student@server6.example.com
name-version-release.architecture.rpm
25. See files installed with a package named vsftpd
vsftpd restart
updating the kernel
rpm -ql vsftpd
#rpm -uvh [package name]
26. Redirect errors to std out
# renice -10 proc-id
2>&1
$ tar czvf home.tar.gz /home
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
27. Determine which package provides SSH
/etc/hosts
yum install firefox4
$ grep -v ^# /etc/nsswitch.conf
yum provides "*/sbin/sshd"
28. Program to analyze standard log files and send a summary email to root
2>&1
#rpm -uvh [package name]
Fully Qualified Domain Name
logwatch
29. Install star
$ tar czvf home.tar.gz /home
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
# yum
tar czvf /tmp/etc.tar.gz /etc
30. Send all debug level messages to /var/log/debug.log
*.debug /var/log/debug.log service rsyslog restart
/etc/sysconfig/network
yum install tigervnc-server
insert as opposed to append
31. Local host file (contains hostname). Can contain local system DNS.
[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/log/messages
/etc/hosts
ln -s /pub /var/www/html/pub
32. List installed and available packages
rpm --import [public key location]
yum list
/etc/sysconfig/iptables
yum info firefox4
33. Install a pkg.rpm locally
rpm -qp pkg.rpm
Fully Qualified Domain Name
vsftpd
rpm localinstall pkg.rpm --nogpgcheck
34. Extract a star compressed file
IPtables output chain
# star -x -f=home.star
$ grep -v ^# /etc/nsswitch.conf
rpm -qc httpd
35. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
/var/www/html/
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rpm -qc httpd
updating the kernel
36. Shell config tool gropued like GUI firewall configurater.
chkconfig httpd on
ssh-keygen
system-config-firewall tui
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
37. 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
vncpasswd
#virsh destroy domain-id
$ tar czvf home.tar.gz /home
38. Copy a public ssh key to server6
rsync /home/test1.html root@server6.example.com:/var/pub
ssh-copy-id root@server6.example.com
palimpsest
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
39. Stores filewall rules for the system.
# grep -i
chkconfig vsftpd on
/etc/sysconfig/resolv.conf
/etc/sysconfig/iptables
40. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
MailTo=student@server6.example.com
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
chkconfig vsftpd on
#rpm -uvh [package name]
41. tar options for create - extract - test - and verbose
insert as opposed to append
#yum info [package name]
tar cxtv
rsync /home/test1.html root@server6.example.com:/var/pub
42. Repos for yum
#yum grouplist
#yum install [package name]
/etc/yum.repos.d
# grep -i
43. Get a list of package groups from yum
#yum grouplist
/var/log/messages
IPtables input chain
[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
44. Set process priority with renice - -20 highest - 20 lowest - 0 is default
tar cxtv
#virsh destroy domain-id
#yum groupinstall "group name"
# renice -10 proc-id
45. Authentication related messages log
vncpasswd
name-version-release.architecture.rpm
/var/log/secure
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
46. Install a package with yum
#rpm -qi [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#yum install [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
47. Sync ntp time with the instructor
#iptables -L
#iptables -D INPUT -p tcp --dport 21 -j accpet
ntpdate -b instructor
#yum groupremove "group name"
48. Set a VNC password
service vncserver restart chkconfig vncserver on
vncpasswd
yum list
#rpm -ivh [package name]
49. Create a gzip-compressed backup of /etc in /tmp
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
system-config-firewall tui
*.debug /var/log/debug.log service rsyslog restart
tar czvf /tmp/etc.tar.gz /etc
50. Gets kernel version and release number
#uname -r
[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
#iptables -I INPUT -p tcp --dport 21 -j Accept
#virsh destroy domain-id