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. Send all debug level messages to /var/log/debug.log
#yum info [package name]
*.debug /var/log/debug.log service rsyslog restart
yum info firefox4
rsync -a /home/test1.html root@server6.example.com:/var/pub
2. Contains RPM database
#yum groupremove "group name"
2>&1
rpm --import [public key location]
/var/lib/rpm
3. fqdn
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#ip addr show
yum provides "*/sbin/sshd"
Fully Qualified Domain Name
4. Repos for yum
/etc/yum.repos.d
/etc/sysconfig/resolv.conf
#rpm -uvh [package name]
*.debug /var/log/debug.log service rsyslog restart
5. Grep with ignoring case
# grep -i
GUI menu system/administratrion/firewall
ssh-copy-id root@server6.example.com
tar cxtv
6. Email related messages log
/var/log/maillog
yum provides "*/sbin/sshd"
service ntpd restart
logwatch
7. Create a tar ball with gzip compression of the home dir
#yum install [package name]
cp /home/test1.html /var/www/html/test1.html
$ tar xzvf home.tar.gz /home
$ tar czvf home.tar.gz /home
8. Create a symbolic link to /pub on the FTP and name it pub
ln -s /pub /var/www/html/pub
updating the kernel
2>&1
/etc/sysconfig/iptables
9. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
tar cxtv
/etc/services
#virsh destroy domain-id
10. Get a list of package groups from yum
#yum grouplist
/var/log/cron
/etc/services
/var/lib/rpm
11. Location of repo's
rpm -ql vsftpd
/etc/yum.repos.d/
updating the kernel
cat >> some_file << _EOF
12. System config firewall
vsftpd restart
tar xvzf /tmp/etc.tar.gz /etc
GUI menu system/administratrion/firewall
/var/log/messages
13. Restart the ntpd service
# renice -10 proc-id
#iptables -F
service ntpd restart
/etc/yum.repos.d/
14. Restart ssh services
Fully Qualified Domain Name
service sshd restart
/etc/yum.repos.d/
rpm -q pkg.rpm --scripts
15. Remove a package with yum
#yum remove [package name]
# cat /var/log/messages | grep [Ff]ailed | less
#virsh list
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
16. Install a package named firefox4
vncpasswd
#rpm -qac [package name]
yum install firefox4
ln -s /pub /var/www/html/pub
17. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
#yum grouplist
rpm -ql vsftpd
palimpsest
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
18. List iptables
2>&1
yum update
/etc/yum.repos.d/
#iptables -L
19. Extract /tmp/etc.tar.gz to /etc
yum provides "*/sbin/sshd"
/etc/rsyslog.conf
#rpm -qad [package name]
tar xvzf /tmp/etc.tar.gz /etc
20. Set a VNC password
vncpasswd
#rpm -uvh [package name]
IPtables forward chain
#virsh destroy domain-id
21. Process packets coming into the system
name-version-release.architecture.rpm
#iptables -F
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
IPtables input chain
22. Install the VNC server package
/etc/services
#rpm -qi [package name]
yum install tigervnc-server
/etc/sysconfig/resolv.conf
23. tar options for file name - gzip - and bzip2
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/services
tar fzj
*.debug /var/log/debug.log service rsyslog restart
24. Persist the web server on boot
cp /home/test1.html /var/www/html/test1.html
#yum remove [package name]
chkconfig httpd on
/etc/sysconfig/iptables
25. Restart vnc and persist on boot
#rpm -ivh [package name]
service vncserver restart chkconfig vncserver on
Fully Qualified Domain Name
tar cxtv
26. FTP package used in RHEL 6
# star -xattr -H=exustar -c -f=home.star /home/
/etc/sysconfig/network
/etc/sysconfig/iptables
vsftpd
27. Grep for lines that do not match (-v)
$ tar czvf home.tar.gz /home
$ grep -v ^# /etc/nsswitch.conf
#iptables -L
/var/www/html/
28. Set process priority with renice - -20 highest - 20 lowest - 0 is default
yum info firefox4
#yum remove [package name]
name-version-release.architecture.rpm
# renice -10 proc-id
29. See the configuration files installed with a package named httpd
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum groupremove "group name"
rpm localinstall pkg.rpm --nogpgcheck
rpm -qc httpd
30. Kill a VM
$ grep -v ^# /etc/nsswitch.conf
rpm -qc httpd
#virsh destroy domain-id
# ls -l /usr/share/doc | grep httpd
31. Program to analyze standard log files and send a summary email to root
rhn_register
ln -s /pub /var/www/html/pub
cp /home/test1.html /var/www/html/test1.html
logwatch
32. Disks available for partitions
/dev
yum install tigervnc-server
#iptables -I INPUT -p tcp --dport 21 -j Accept
rhn_register
33. Sync ntp time with the instructor
rsync /home root@server6.example.com:/tmp
#iptables -L
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
ntpdate -b instructor
34. Use lftp to connect
service ntpd restart
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#iptables -L
[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
35. Install the star compression tool create an archive with the star tool.
yum install firefox4
system-config-firewall tui
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -uvh [package name]
36. Configuration file for system logs
vsftpd
/etc/rsyslog.conf
#iptables -L
tar xvzf /tmp/etc.tar.gz /etc
37. Uninstall a package group with yum
service vncserver restart chkconfig vncserver on
insert as opposed to append
#yum groupremove "group name"
#yum install [package name]
38. Rpm upgrade package u upgrade v verbose h hash
/var/log/messages
#rpm -uvh [package name]
yum update
yum info firefox4
39. Create a gzip-compressed backup of /etc in /tmp
#iptables -L
/etc/sysconfig/resolv.conf
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
tar czvf /tmp/etc.tar.gz /etc
40. Primary configuration of ssh
rpm --import [public key location]
/etc/ssh/sshd_config
tar cxtv
# renice -10 proc-id
41. Search for a package with firefox in the description
ssh-copy-id root@server6.example.com
chkconfig vsftpd on
yum install tigervnc-server
yum search firefox
42. Query all documentation with RPM
rsync /home/test1.html root@server6.example.com:/var/pub
/etc/ssh/sshd_config
#rpm -qad [package name]
/etc/sysconfig/network
43. Register on the RHN
tar xvzf /tmp/etc.tar.gz /etc
updating the kernel
rhn_register
#rpm -ivh [package name]
44. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
#yum remove [package name]
service ntpd restart
MailTo=student@server6.example.com
tar cxtv
45. Generate SSH Keys
/var/log/secure
ssh-keygen
$ grep -v ^# /etc/nsswitch.conf
rsync -a /home/test1.html root@server6.example.com:/var/pub
46. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
system-config-firewall tui
#rpm -ivh [package name]
/var/www/html/
rsync -a /home/test1.html root@server6.example.com:/var/pub
47. List VMs
add/remove software GUI
#virsh list
chkconfig vsftpd on
updating the kernel
48. Backup a home directory on desktop6 to /tmp on server6
chkconfig vsftpd on
tar cxtv
rsync /home root@server6.example.com:/tmp
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
49. Local host file (contains hostname). Can contain local system DNS.
ntpdate -b instructor
# virsh create /etc/libvert/qemu/vm_file_name.xml
insert as opposed to append
/etc/hosts
50. All messages sent at info priority or higher
#rpm -qa | grep [package name]
/etc/sysconfig/resolv.conf
/var/log/messages
rsync -PHR /home/test1.html root@server6.example.com:/var/pub