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. FTP package used in RHEL 6
tar cxtv
# ls -l /usr/share/doc | grep httpd
chkconfig httpd on
vsftpd
2. Query information files with RPM
vsftpd restart
#rpm -qac [package name]
#rpm -qi [package name]
vncpasswd
3. Local file copy of /home/test1.html to /var/www/html/test1.html
cp /home/test1.html /var/www/html/test1.html
nautilus
ip masqu
ntpdate -b instructor
4. Install a package with yum
#iptables -F
#yum install [package name]
ssh-copy-id root@server6.example.com
rsync -a /home/test1.html root@server6.example.com:/var/pub
5. Remote file copy /home/test1.html to the /var/pub directory on server6
man search :/repository
logwatch
# grep -i
rsync /home/test1.html root@server6.example.com:/var/pub
6. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
service ntpd restart
#virsh list
*.debug /var/log/debug.log service rsyslog restart
.spec
7. Start the GUI for date configuration
IPtables forward chain
/etc/sysconfig/network
#iptables -I INPUT -p tcp --dport 21 -j Accept
system-config-date
8. Install star
# yum
rpm localinstall pkg.rpm --nogpgcheck
#yum grouplist
Fully Qualified Domain Name
9. List VMs
/etc/services
yum install tigervnc-server
#virsh list
$ grep -v ^# /etc/nsswitch.conf
10. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
GUI menu system/administratrion/firewall
/etc/yum.repos.d
rsync -a /home/test1.html root@server6.example.com:/var/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
11. Update a package
rhn_register
rsync /home root@server6.example.com:/tmp
yum update
#yum remove [package name]
12. tar options for create - extract - test - and verbose
/etc/sysconfig/iptables
# vi /etc/inittab change - id:3:initdefault:
tar cxtv
tar czvf /tmp/etc.tar.gz /etc
13. Extract /tmp/etc.tar.gz to /etc
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -L
ssh-keygen
tar xvzf /tmp/etc.tar.gz /etc
14. original DNS config file - still used
#rpm -ivh [package name]
/etc/sysconfig/resolv.conf
IPtables output chain
service ntpd restart
15. Primary configuration of ssh
#yum
# ls -l /usr/share/doc | grep httpd
#yum info [package name]
/etc/ssh/sshd_config
16. Get a list of package groups from yum
vncpasswd
#yum grouplist
$ grep -v ^# /etc/nsswitch.conf
yum install firefox4
17. Show IP address with the IP command
logwatch
#rpm -qac [package name]
#yum groupinstall "group name"
#ip addr show
18. Install with RPM
yum install firefox4
insert as opposed to append
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#rpm -ivh [package name]
19. Process packets coming into the system
service vncserver restart chkconfig vncserver on
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
IPtables input chain
palimpsest
20. Install a package named firefox4
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
#yum remove [package name]
chkconfig vsftpd on
yum install firefox4
21. Process packets being forwarded through the system
rpm -q pkg.rpm --scripts
#rpm -qi [package name]
/etc/ssh/sshd_config
IPtables forward chain
22. Query configuration files with RPM
#rpm -qac [package name]
service vncserver restart chkconfig vncserver on
/etc/yum.repos.d/
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
23. Copy a public ssh key to server6
#iptables -L
ssh-copy-id root@server6.example.com
add/remove software GUI
chkconfig httpd on
24. Generate SSH Keys
ip masqu
IPtables input chain
chkconfig vsftpd on
ssh-keygen
25. Start GUI for Firewall
cat >> some_file << _EOF
service sshd restart
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
tar fzj
26. Local host file (contains hostname). Can contain local system DNS.
MailTo=student@server6.example.com
nautilus
/etc/hosts
$ tar czvf home.tar.gz /home
27. Flush the firewall of all rules
#iptables -F
yum info firefox4
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
IPtables forward chain
28. Rpm upgrade package u upgrade v verbose h hash
#rpm -uvh [package name]
add/remove software GUI
#rpm -ivh [package name]
#iptables -D INPUT -p tcp --dport 21 -j accpet
29. Determine which package provides SSH
vsftpd
$ tar xzvf home.tar.gz /home
# virsh create /etc/libvert/qemu/vm_file_name.xml
yum provides "*/sbin/sshd"
30. Messages related to cron log
rsync /home root@server6.example.com:/tmp
/var/log/cron
/etc/sysconfig/vncservers rpm -ql tigervnc-server
# star -x -f=home.star
31. Gets kernel version and release number
#uname -r
#yum info [package name]
/var/www/html/
#yum grouplist
32. Configuration file for system logs
nautilus
ntpdate -b instructor
rhn_register
/etc/rsyslog.conf
33. Install a pkg.rpm locally
GUI menu system/administratrion/firewall
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm localinstall pkg.rpm --nogpgcheck
# virsh create /etc/libvert/qemu/vm_file_name.xml
34. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
Fully Qualified Domain Name
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
IPtables output chain
vsftpd
35. Install the VNC server package
yum install tigervnc-server
/etc/hosts
yum list
vncviewer -via student@server6 localhost:2
36. Get information about a package named firefox4
yum info firefox4
GUI menu system/administratrion/firewall
#yum info [package name]
rpm -ql vsftpd
37. Register on the RHN
palimpsest
rhn_register
/var/lib/rpm
#rpm -qi [package name]
38. Stores filewall rules for the system.
#iptables -L
vncviewer -via student@server6 localhost:2
#rpm -uvh [package name]
/etc/sysconfig/iptables
39. Package file named pkg.rpm
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rpm -qp pkg.rpm
rpm localinstall pkg.rpm --nogpgcheck
vncpasswd
40. Location of repo's
yum provides "*/sbin/sshd"
rsync /home/test1.html root@server6.example.com:/var/pub
/etc/yum.repos.d/
rpm -ql vsftpd
41. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
$ tar czvf home.tar.gz /home
# renice -10 proc-id
#yum install [package name]
42. Kill a VM
#virsh destroy domain-id
yum update
MailTo=student@server6.example.com
/var/log/secure
43. See the configuration files installed with a package named httpd
yum remove firefox4
/etc/sysconfig/resolv.conf
/etc/sysconfig/iptables
rpm -qc httpd
44. Acting as a router with forwarding
$ tar xzvf home.tar.gz /home
vncpasswd
#iptables -I INPUT -p tcp --dport 21 -j Accept
ip masqu
45. Grep with ignoring case
# star -x -f=home.star
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/yum.repos.d
# grep -i
46. Repo config file
/dev
rsync /home/test1.html root@server6.example.com:/var/pub
/var/log/messages
[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
47. Install a package group with yum
cp /home/test1.html /var/www/html/test1.html
ssh-keygen
#yum groupinstall "group name"
/dev
48. Process packets coming out of the system
IPtables output chain
GUI menu system/administratrion/firewall
/usr/share/doc/initscripts-*/sysconfig.txt
tar fzj
49. Delete a rule from iptables
#virsh list
#iptables -D INPUT -p tcp --dport 21 -j accpet
yum provides
rpm --import [public key location]
50. Edit files with cat until the _EOF is found
/var/log/messages
cat >> some_file << _EOF
#virsh list
/etc/hosts