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. Generate SSH Keys
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar cxtv
ssh-keygen
# yum
2. Backup a home directory on desktop6 to /tmp on server6
#virsh destroy domain-id
rsync /home root@server6.example.com:/tmp
yum install firefox4
$ tar czvf home.tar.gz /home
3. Start GUI for Firewall
#rpm -qac [package name]
yum info firefox4
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
vsftpd restart
4. Remove a package with yum
/etc/sysconfig/iptables
#yum remove [package name]
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
ln -s /pub /var/www/html/pub
5. Create a symbolic link to /pub on the FTP and name it pub
tar xvzf /tmp/etc.tar.gz /etc
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum search firefox
ln -s /pub /var/www/html/pub
6. Messages related to cron log
system-config-firewall tui
# ls -l /usr/share/doc | grep httpd
/etc/yum.repos.d
/var/log/cron
7. Query information files with RPM
vsftpd
ip masqu
#rpm -qi [package name]
/etc/yum.repos.d
8. Process packets coming into the system
man search :/repository
IPtables input chain
/var/lib/rpm
#rpm -qi [package name]
9. Disks available for partitions
#rpm -qac [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
/dev
service ntpd restart
10. List installed and available packages
yum list
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
Fully Qualified Domain Name
yum install tigervnc-server
11. Rpm upgrade package u upgrade v verbose h hash
#rpm -qa | grep [package name]
#rpm -uvh [package name]
system-config-date
/etc/sysconfig/iptables
12. Contains RPM database
rpm --import [public key location]
/etc/sysconfig/network
rpm localinstall pkg.rpm --nogpgcheck
/var/lib/rpm
13. Install the VNC server package
yum install tigervnc-server
vsftpd restart
#rpm -qi [package name]
rpm -q pkg.rpm --scripts
14. Search for command in the doc directory
#rpm -qi [package name]
name-version-release.architecture.rpm
#uname -r
# ls -l /usr/share/doc | grep httpd
15. Configuration for VNC
# star -x -f=home.star
/etc/sysconfig/iptables
/etc/sysconfig/vncservers rpm -ql tigervnc-server
ln -s /pub /var/www/html/pub
16. Package file named pkg.rpm
cp /home/test1.html /var/www/html/test1.html
/var/lib/rpm
rsync /home root@server6.example.com:/tmp
rpm -qp pkg.rpm
17. Connect with VNC viewer securely
GUI menu system/administratrion/firewall
vncviewer -via student@server6 localhost:2
# grep -i
.spec
18. Start a VM
#yum groupinstall "group name"
rsync /home root@server6.example.com:/tmp
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/sysconfig/iptables
19. GUI install / uninstall with yum
# yum
add/remove software GUI
.spec
yum provides "*/sbin/sshd"
20. Local file copy of /home/test1.html to /var/www/html/test1.html
yum provides "*/sbin/sshd"
cp /home/test1.html /var/www/html/test1.html
vsftpd restart
system-config-firewall tui
21. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
updating the kernel
service ntpd restart
vsftpd restart
22. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
insert as opposed to append
yum install firefox4
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
# star -xattr -H=exustar -c -f=home.star /home/
23. Set process priority with renice - -20 highest - 20 lowest - 0 is default
vsftpd
# renice -10 proc-id
/dev
$ tar czvf home.tar.gz /home
24. Disk Utility Command
ntpdate -b instructor
palimpsest
/etc/ssh/sshd_config
service sshd restart
25. Query all documentation with RPM
#rpm -qad [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
#yum groupinstall "group name"
yum search firefox
26. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
#virsh destroy domain-id
palimpsest
yum install firefox4
MailTo=student@server6.example.com
27. Create a tar ball with gzip compression of the home dir
/etc/sysconfig/iptables
$ tar czvf home.tar.gz /home
#iptables -F
# star -x -f=home.star
28. Install with RPM
/etc/sysconfig/network
#rpm -ivh [package name]
yum update
yum info firefox4
29. Install a package group with yum
# star -xattr -H=exustar -c -f=home.star /home/
service vncserver restart chkconfig vncserver on
#yum groupinstall "group name"
#yum install [package name]
30. tar options for file name - gzip - and bzip2
Fully Qualified Domain Name
ip masqu
tar fzj
/etc/services
31. 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
.spec
#rpm -qad [package name]
/etc/hosts
32. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
/var/log/messages
/etc/sysconfig/network
/var/log/maillog
33. Where are HTML pages hosted?
GUI menu system/administratrion/firewall
/var/log/maillog
#yum remove [package name]
/var/www/html/
34. Extract /tmp/etc.tar.gz to /etc
tar xvzf /tmp/etc.tar.gz /etc
/var/lib/rpm
system-config-firewall tui
/etc/ssh/sshd_config
35. Kill a VM
$ tar czvf home.tar.gz /home
#virsh list
cat >> some_file << _EOF
#virsh destroy domain-id
36. Process packets coming out of the system
system-config-date
IPtables output chain
/etc/sysconfig/iptables
/etc/hosts
37. Uninstall a package group with yum
#yum groupremove "group name"
/etc/sysconfig/resolv.conf
Fully Qualified Domain Name
vsftpd restart
38. Process packets being forwarded through the system
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
$ grep -v ^# /etc/nsswitch.conf
IPtables forward chain
# ls -l /usr/share/doc | grep httpd
39. Set a VNC password
rpm --import [public key location]
man search :/repository
/var/lib/rpm
vncpasswd
40. Install a pkg.rpm locally
rpm localinstall pkg.rpm --nogpgcheck
tar cxtv
MailTo=student@server6.example.com
# ls -l /usr/share/doc | grep httpd
41. GUI File Manager
#yum
nautilus
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -ivh [package name]
42. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
service ntpd restart
updating the kernel
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
43. original DNS config file - still used
vsftpd restart
/etc/ssh/sshd_config
/etc/sysconfig/resolv.conf
vncviewer -via student@server6 localhost:2
44. Show IP address with the IP command
#ip addr show
tar fzj
# yum
#yum info [package name]
45. Install the star compression tool create an archive with the star tool.
/var/www/html/
cat >> some_file << _EOF
# star -xattr -H=exustar -c -f=home.star /home/
#virsh destroy domain-id
46. Copy a public ssh key to server6
[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
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
yum provides
ssh-copy-id root@server6.example.com
47. See the configuration files installed with a package named httpd
2>&1
yum info firefox4
#uname -r
rpm -qc httpd
48. Install a package named firefox4
/var/log/secure
IPtables output chain
yum install firefox4
#rpm -qad [package name]
49. Start vsftp service
rpm -ql vsftpd
/etc/sysconfig/iptables
vsftpd restart
insert as opposed to append
50. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
/etc/ssh/sshd_config
tar xvzf /tmp/etc.tar.gz /etc
cp /home/test1.html /var/www/html/test1.html
rsync -a /home/test1.html root@server6.example.com:/var/pub