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. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
yum list
.spec
name-version-release.architecture.rpm
MailTo=student@server6.example.com
2. Send all debug level messages to /var/log/debug.log
#iptables -L
*.debug /var/log/debug.log service rsyslog restart
palimpsest
tar czvf /tmp/etc.tar.gz /etc
3. Show IP address with the IP command
# virsh create /etc/libvert/qemu/vm_file_name.xml
/usr/share/doc/initscripts-*/sysconfig.txt
#ip addr show
yum update
4. List installed and available packages
rpm -qp pkg.rpm
yum list
#yum grouplist
/var/lib/rpm
5. original DNS config file - still used
/var/log/secure
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/sysconfig/resolv.conf
#iptables -D INPUT -p tcp --dport 21 -j accpet
6. See files installed with a package named vsftpd
rpm -ql vsftpd
#rpm -qi [package name]
#uname -r
/var/lib/rpm
7. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
logwatch
/etc/sysconfig/network
$ tar xzvf home.tar.gz /home
/etc/services
8. Documentation about sysconfig network scripts
#rpm -qa | grep [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/sysconfig/iptables
#rpm -qac [package name]
9. Create a symbolic link to /pub on the FTP and name it pub
ln -s /pub /var/www/html/pub
/var/log/maillog
# ls -l /usr/share/doc | grep httpd
IPtables output chain
10. Generate SSH Keys
# renice -10 proc-id
yum install firefox4
ssh-keygen
#yum remove [package name]
11. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
/etc/services
#iptables -F
[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
12. Install a package named firefox4
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qad [package name]
yum install firefox4
tar xvzf /tmp/etc.tar.gz /etc
13. Disks available for partitions
/var/log/secure
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
$ tar xzvf home.tar.gz /home
/dev
14. List VMs
#virsh list
rpm --import [public key location]
# vi /etc/inittab change - id:3:initdefault:
service ntpd restart
15. All messages sent at info priority or higher
yum provides
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/var/log/secure
/var/log/messages
16. Remove a package with yum
#yum groupremove "group name"
#yum remove [package name]
tar czvf /tmp/etc.tar.gz /etc
logwatch
17. List iptables
rpm -qp pkg.rpm
#iptables -L
tar fzj
vncpasswd
18. Flush the firewall of all rules
#virsh destroy domain-id
#iptables -F
GUI menu system/administratrion/firewall
#iptables -D INPUT -p tcp --dport 21 -j accpet
19. Process packets coming into the system
IPtables input chain
Fully Qualified Domain Name
vsftpd
[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
20. System config firewall
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
GUI menu system/administratrion/firewall
vsftpd
man search :/repository
21. Local host file (contains hostname). Can contain local system DNS.
#iptables -F
# grep -i
/etc/hosts
/etc/services
22. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
vncpasswd
#iptables -L
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/etc/yum.repos.d/
23. 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
/etc/sysconfig/resolv.conf
vncviewer -via student@server6 localhost:2
*.debug /var/log/debug.log service rsyslog restart
24. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
rsync /home/test1.html root@server6.example.com:/var/pub
updating the kernel
palimpsest
name-version-release.architecture.rpm
25. Grep with ignoring case
/etc/sysconfig/iptables
yum install firefox4
# grep -i
$ grep -v ^# /etc/nsswitch.conf
26. GUI install / uninstall with yum
#yum grouplist
add/remove software GUI
yum provides
$ grep -v ^# /etc/nsswitch.conf
27. Extract /tmp/etc.tar.gz to /etc
# yum
tar xvzf /tmp/etc.tar.gz /etc
/etc/rsyslog.conf
#uname -r
28. Get more information on a package availale through yum
/etc/yum.repos.d
/var/www/html/
# ls -l /usr/share/doc | grep httpd
#yum info [package name]
29. Query configuration files with RPM
#rpm -qac [package name]
tar czvf /tmp/etc.tar.gz /etc
ip masqu
cat >> some_file << _EOF
30. tar options for create - extract - test - and verbose
nautilus
#iptables -D INPUT -p tcp --dport 21 -j accpet
tar cxtv
tar czvf /tmp/etc.tar.gz /etc
31. Searches for page within the #man yum
rsync -a /home/test1.html root@server6.example.com:/var/pub
#rpm -qad [package name]
/var/log/maillog
man search :/repository
32. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
$ grep -v ^# /etc/nsswitch.conf
#iptables -L
#uname -r
33. RPM package naming
/etc/rsyslog.conf
system-config-firewall tui
name-version-release.architecture.rpm
ssh-keygen
34. Search for command in the doc directory
# ls -l /usr/share/doc | grep httpd
yum update
logwatch
#iptables -L
35. Backup a home directory on desktop6 to /tmp on server6
cat >> some_file << _EOF
rsync /home root@server6.example.com:/tmp
#rpm -qac [package name]
yum info firefox4
36. Package file named pkg.rpm
yum search firefox
ip masqu
rpm -qp pkg.rpm
/var/www/html/
37. Query all documentation with RPM
#rpm -qa | grep [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#uname -r
#rpm -qad [package name]
38. Copy a public ssh key to server6
cp /home/test1.html /var/www/html/test1.html
#iptables -I INPUT -p tcp --dport 21 -j Accept
updating the kernel
ssh-copy-id root@server6.example.com
39. Install star
#rpm -qa | grep [package name]
insert as opposed to append
/etc/yum.repos.d
# yum
40. Install a package group with yum
#yum groupinstall "group name"
/var/www/html/
# star -xattr -H=exustar -c -f=home.star /home/
#yum groupremove "group name"
41. Persist FTP on boot
vsftpd restart
chkconfig vsftpd on
#yum install [package name]
tar fzj
42. Install the VNC server package
# star -xattr -H=exustar -c -f=home.star /home/
/etc/hosts
2>&1
yum install tigervnc-server
43. Configuration for VNC
/etc/sysconfig/vncservers rpm -ql tigervnc-server
yum list
$ tar czvf home.tar.gz /home
$ tar xzvf home.tar.gz /home
44. Install a package with yum
#yum install [package name]
# yum
/var/log/messages
vncpasswd
45. Remote file copy /home/test1.html to the /var/pub directory on server6
yum remove firefox4
rsync /home/test1.html root@server6.example.com:/var/pub
# star -xattr -H=exustar -c -f=home.star /home/
#yum install [package name]
46. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
Fully Qualified Domain Name
insert as opposed to append
chkconfig httpd on
#yum
47. Restart vnc and persist on boot
# grep -i
tar fzj
IPtables output chain
service vncserver restart chkconfig vncserver on
48. GUI File Manager
nautilus
#yum info [package name]
#iptables -F
/etc/sysconfig/network
49. Query information files with RPM
name-version-release.architecture.rpm
#rpm -uvh [package name]
yum info firefox4
#rpm -qi [package name]
50. Uninstall a package group with yum
#yum groupremove "group name"
yum install tigervnc-server
#yum remove [package name]
rhn_register