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 package group with yum
yum install tigervnc-server
#virsh destroy domain-id
ssh-copy-id root@server6.example.com
#yum groupinstall "group name"
2. Extract /tmp/etc.tar.gz to /etc
tar xvzf /tmp/etc.tar.gz /etc
tar cxtv
#rpm -qa | grep [package name]
vsftpd
3. See files installed with a package named vsftpd
rpm -ql vsftpd
rsync /home/test1.html root@server6.example.com:/var/pub
ssh-keygen
logwatch
4. Remote file copy /home/test1.html to the /var/pub directory on server6
/var/log/cron
# star -xattr -H=exustar -c -f=home.star /home/
#rpm -qi [package name]
rsync /home/test1.html root@server6.example.com:/var/pub
5. Messages related to cron log
# star -xattr -H=exustar -c -f=home.star /home/
add/remove software GUI
/var/log/cron
IPtables input chain
6. Configuration for VNC
rhn_register
#iptables -I INPUT -p tcp --dport 21 -j Accept
/var/log/secure
/etc/sysconfig/vncservers rpm -ql tigervnc-server
7. Location of repo's
vncviewer -via student@server6 localhost:2
/etc/yum.repos.d/
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
cat >> some_file << _EOF
8. Start the GUI for date configuration
GUI menu system/administratrion/firewall
rpm -qc httpd
system-config-date
# renice -10 proc-id
9. Start GUI for Firewall
add/remove software GUI
vsftpd
/etc/hosts
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
10. Repo config file
yum list
tar cxtv
[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
yum install tigervnc-server
11. 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
yum info firefox4
#yum groupinstall "group name"
/usr/share/doc/initscripts-*/sysconfig.txt
12. Query all documentation with RPM
# virsh create /etc/libvert/qemu/vm_file_name.xml
#rpm -qad [package name]
2>&1
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
13. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/etc/sysconfig/iptables
/var/www/html/
$ tar czvf home.tar.gz /home
14. Search for a package with firefox in the description
yum search firefox
cat >> some_file << _EOF
vncpasswd
yum install tigervnc-server
15. Grep for lines that do not match (-v)
#yum install [package name]
$ tar xzvf home.tar.gz /home
$ grep -v ^# /etc/nsswitch.conf
tar xvzf /tmp/etc.tar.gz /etc
16. Program to analyze standard log files and send a summary email to root
# ls -l /usr/share/doc | grep httpd
#iptables -I INPUT -p tcp --dport 21 -j Accept
$ tar xzvf home.tar.gz /home
logwatch
17. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
updating the kernel
# virsh create /etc/libvert/qemu/vm_file_name.xml
rpm localinstall pkg.rpm --nogpgcheck
# star -x -f=home.star
18. Set a VNC password
logwatch
#rpm -qa | grep [package name]
#yum groupinstall "group name"
vncpasswd
19. Restart the ntpd service
chkconfig httpd on
/etc/ssh/sshd_config
[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
service ntpd restart
20. handles dependencies while RPMs do not uses preconfigured repos
2>&1
# ls -l /usr/share/doc | grep httpd
#yum
#iptables -D INPUT -p tcp --dport 21 -j accpet
21. List iptables
system-config-date
#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
2>&1
22. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
yum install firefox4
#rpm -qi [package name]
#iptables -D INPUT -p tcp --dport 21 -j accpet
23. Email related messages log
/var/log/maillog
IPtables input chain
/etc/yum.repos.d
#rpm -uvh [package name]
24. Remove a package with yum
/var/www/html/
#yum remove [package name]
#rpm -qa | grep [package name]
/etc/yum.repos.d/
25. Stores filewall rules for the system.
#ip addr show
service vncserver restart chkconfig vncserver on
/etc/sysconfig/iptables
tar cxtv
26. Backup a home directory on desktop6 to /tmp on server6
ssh-keygen
rsync /home root@server6.example.com:/tmp
#virsh destroy domain-id
# vi /etc/inittab change - id:3:initdefault:
27. Shell config tool gropued like GUI firewall configurater.
#rpm -qi [package name]
palimpsest
system-config-date
system-config-firewall tui
28. Extract a star compressed file
# grep -i
ln -s /pub /var/www/html/pub
# star -x -f=home.star
IPtables input chain
29. Start a VM
#virsh destroy domain-id
# virsh create /etc/libvert/qemu/vm_file_name.xml
#ip addr show
#rpm -qad [package name]
30. Repos for yum
/etc/yum.repos.d
vsftpd restart
name-version-release.architecture.rpm
#rpm -uvh [package name]
31. 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
ln -s /pub /var/www/html/pub
/usr/share/doc/initscripts-*/sysconfig.txt
32. Register on the RHN
rhn_register
#yum grouplist
rpm --import [public key location]
ip masqu
33. Start vsftp service
$ grep -v ^# /etc/nsswitch.conf
insert as opposed to append
# virsh create /etc/libvert/qemu/vm_file_name.xml
vsftpd restart
34. Authentication related messages log
rpm --import [public key location]
/var/log/secure
#iptables -F
rpm -q pkg.rpm --scripts
35. Remove a package named firefox4
yum remove firefox4
#yum
rsync /home/test1.html root@server6.example.com:/var/pub
yum info firefox4
36. Restart ssh services
service sshd restart
/etc/sysconfig/network
#iptables -D INPUT -p tcp --dport 21 -j accpet
palimpsest
37. Edit files with cat until the _EOF is found
/dev
ssh-copy-id root@server6.example.com
cat >> some_file << _EOF
#rpm -qa | grep [package name]
38. Disk Utility Command
palimpsest
# ls -l /usr/share/doc | grep httpd
/dev
tar czvf /tmp/etc.tar.gz /etc
39. FTP package used in RHEL 6
tar czvf /tmp/etc.tar.gz /etc
vsftpd
# star -x -f=home.star
cp /home/test1.html /var/www/html/test1.html
40. List scripts that can be run after installation of pkg.rpm
# star -x -f=home.star
rpm -q pkg.rpm --scripts
$ tar xzvf home.tar.gz /home
GUI menu system/administratrion/firewall
41. Search for a package within all packages
#rpm -qa | grep [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
man search :/repository
#iptables -L
42. Contains RPM database
/var/log/maillog
ln -s /pub /var/www/html/pub
yum remove firefox4
/var/lib/rpm
43. Query configuration files with RPM
#rpm -qac [package name]
ssh-keygen
#yum remove [package name]
chkconfig vsftpd on
44. Create a symbolic link to /pub on the FTP and name it pub
rpm -qc httpd
ln -s /pub /var/www/html/pub
#ip addr show
yum update
45. Persist FTP on boot
chkconfig vsftpd on
rpm --import [public key location]
rsync /home/test1.html root@server6.example.com:/var/pub
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
46. Create a gzip-compressed backup of /etc in /tmp
#yum info [package name]
#iptables -L
tar czvf /tmp/etc.tar.gz /etc
ip masqu
47. Install the VNC server package
yum install tigervnc-server
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum groupinstall "group name"
#yum remove [package name]
48. Get a list of package groups from yum
IPtables output chain
rsync -a /home/test1.html root@server6.example.com:/var/pub
/etc/yum.repos.d
#yum grouplist
49. Gets kernel version and release number
/var/www/html/
yum remove firefox4
cat >> some_file << _EOF
#uname -r
50. Query information files with RPM
#iptables -L
$ grep -v ^# /etc/nsswitch.conf
/var/log/maillog
#rpm -qi [package name]