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. Disk Utility Command
palimpsest
/etc/hosts
rsync /home/test1.html root@server6.example.com:/var/pub
#ip addr show
2. Shell config tool gropued like GUI firewall configurater.
#rpm -qa | grep [package name]
system-config-firewall tui
yum info firefox4
$ tar czvf home.tar.gz /home
3. Authentication related messages log
IPtables input chain
/var/log/secure
#iptables -F
/var/log/cron
4. 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
#yum groupinstall "group name"
/etc/sysconfig/iptables
yum info firefox4
5. Delete a rule from iptables
rsync /home/test1.html root@server6.example.com:/var/pub
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
ssh-keygen
#iptables -D INPUT -p tcp --dport 21 -j accpet
6. List VMs
yum provides
chkconfig vsftpd on
#virsh list
rpm -ql vsftpd
7. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
#yum groupinstall "group name"
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
name-version-release.architecture.rpm
/usr/share/doc/initscripts-*/sysconfig.txt
8. Searches for page within the #man yum
man search :/repository
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum info [package name]
rpm -q pkg.rpm --scripts
9. tar options for file name - gzip - and bzip2
updating the kernel
system-config-firewall tui
#rpm -ivh [package name]
tar fzj
10. Install the VNC server package
[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
#rpm -qi [package name]
yum install tigervnc-server
.spec
11. File holding services - ports - protocols assoicated
service sshd restart
yum update
/etc/services
system-config-date
12. Generate SSH Keys
ssh-keygen
#virsh destroy domain-id
add/remove software GUI
/etc/yum.repos.d/
13. Restart the ntpd service
cat >> some_file << _EOF
ssh-keygen
yum install tigervnc-server
service ntpd restart
14. Program to analyze standard log files and send a summary email to root
ln -s /pub /var/www/html/pub
$ grep -v ^# /etc/nsswitch.conf
logwatch
#yum info [package name]
15. Stores filewall rules for the system.
/etc/rsyslog.conf
/etc/sysconfig/iptables
IPtables input chain
/dev
16. Extract a star compressed file
# star -x -f=home.star
/var/log/cron
#yum info [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
17. Extract a gzipped tar ball in your home directory
$ tar xzvf home.tar.gz /home
yum install tigervnc-server
#iptables -I INPUT -p tcp --dport 21 -j Accept
rpm --import [public key location]
18. See the configuration files installed with a package named httpd
yum provides "*/sbin/sshd"
ssh-copy-id root@server6.example.com
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
rpm -qc httpd
19. Adjust the persistent runlevel
# renice -10 proc-id
#ip addr show
# star -xattr -H=exustar -c -f=home.star /home/
# vi /etc/inittab change - id:3:initdefault:
20. Create a symbolic link to /pub on the FTP and name it pub
#yum remove [package name]
# yum
ln -s /pub /var/www/html/pub
rpm --import [public key location]
21. Query configuration files with RPM
#rpm -qac [package name]
/etc/hosts
# cat /var/log/messages | grep [Ff]ailed | less
tar czvf /tmp/etc.tar.gz /etc
22. GUI File Manager
nautilus
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
rpm -qc httpd
IPtables output chain
23. Kill a VM
#virsh destroy domain-id
#rpm -qi [package name]
# cat /var/log/messages | grep [Ff]ailed | less
#yum grouplist
24. Update a package
#iptables -D INPUT -p tcp --dport 21 -j accpet
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
service ntpd restart
yum update
25. Connect with VNC viewer securely
yum list
# virsh create /etc/libvert/qemu/vm_file_name.xml
man search :/repository
vncviewer -via student@server6 localhost:2
26. Uninstall a package group with yum
#iptables -L
#yum groupremove "group name"
service vncserver restart chkconfig vncserver on
man search :/repository
27. RPM package naming
vncviewer -via student@server6 localhost:2
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
name-version-release.architecture.rpm
service ntpd restart
28. Create a gzip-compressed backup of /etc in /tmp
# virsh create /etc/libvert/qemu/vm_file_name.xml
tar czvf /tmp/etc.tar.gz /etc
tar fzj
#rpm -qi [package name]
29. Gets kernel version and release number
$ tar czvf home.tar.gz /home
#uname -r
vncpasswd
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
30. Remove a package named firefox4
yum remove firefox4
cat >> some_file << _EOF
$ tar xzvf home.tar.gz /home
/var/www/html/
31. Search for a package within all packages
# cat /var/log/messages | grep [Ff]ailed | less
#rpm -qa | grep [package name]
/etc/yum.repos.d/
rsync /home root@server6.example.com:/tmp
32. Where are HTML pages hosted?
man search :/repository
ssh-keygen
#rpm -qac [package name]
/var/www/html/
33. Send all debug level messages to /var/log/debug.log
/var/log/messages
/var/log/maillog
/var/log/cron
*.debug /var/log/debug.log service rsyslog restart
34. Set process priority with renice - -20 highest - 20 lowest - 0 is default
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# renice -10 proc-id
/etc/yum.repos.d
Fully Qualified Domain Name
35. Show IP address with the IP command
# grep -i
chkconfig vsftpd on
tar fzj
#ip addr show
36. Display packages that match the pathname
yum provides
MailTo=student@server6.example.com
IPtables forward chain
chkconfig vsftpd on
37. Install with RPM
# renice -10 proc-id
#rpm -ivh [package name]
.spec
cat >> some_file << _EOF
38. fqdn
# star -xattr -H=exustar -c -f=home.star /home/
Fully Qualified Domain Name
name-version-release.architecture.rpm
rsync -a /home/test1.html root@server6.example.com:/var/pub
39. Start the GUI for date configuration
vncviewer -via student@server6 localhost:2
system-config-date
# grep -i
nautilus
40. Restart ssh services
yum info firefox4
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
vsftpd
service sshd restart
41. Rpm upgrade package u upgrade v verbose h hash
#yum groupinstall "group name"
man search :/repository
/etc/yum.repos.d/
#rpm -uvh [package name]
42. Get information about a package named firefox4
#yum groupinstall "group name"
2>&1
yum info firefox4
Fully Qualified Domain Name
43. Search for a package with firefox in the description
#yum info [package name]
vncviewer -via student@server6 localhost:2
#rpm -uvh [package name]
yum search firefox
44. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/var/log/maillog
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
MailTo=student@server6.example.com
ln -s /pub /var/www/html/pub
45. List scripts that can be run after installation of pkg.rpm
/var/log/messages
yum list
IPtables input chain
rpm -q pkg.rpm --scripts
46. Configuration for VNC
yum install firefox4
/etc/sysconfig/iptables
/etc/sysconfig/vncservers rpm -ql tigervnc-server
.spec
47. 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
system-config-firewall tui
#iptables -I INPUT -p tcp --dport 21 -j Accept
rpm -q pkg.rpm --scripts
48. Get a list of package groups from yum
#iptables -D INPUT -p tcp --dport 21 -j accpet
/var/log/secure
#yum grouplist
/etc/ssh/sshd_config
49. System config firewall
man search :/repository
GUI menu system/administratrion/firewall
.spec
vsftpd restart
50. Process packets coming into the system
#rpm -ivh [package name]
/var/log/messages
IPtables input chain
rpm -q pkg.rpm --scripts