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. Configuration for VNC
insert as opposed to append
# star -x -f=home.star
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/vncservers rpm -ql tigervnc-server
2. GUI File Manager
Fully Qualified Domain Name
nautilus
ln -s /pub /var/www/html/pub
/etc/sysconfig/resolv.conf
3. See the configuration files installed with a package named httpd
rpm -qp pkg.rpm
rpm -qc httpd
#rpm -qa | grep [package name]
insert as opposed to append
4. Query all documentation with RPM
/var/log/secure
nautilus
#rpm -qad [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
5. Query information files with RPM
#rpm -qi [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
cp /home/test1.html /var/www/html/test1.html
vncviewer -via student@server6 localhost:2
6. Flush the firewall of all rules
# grep -i
/etc/ssh/sshd_config
#iptables -F
name-version-release.architecture.rpm
7. Install a package group with yum
chkconfig httpd on
/var/www/html/
#yum groupinstall "group name"
/var/log/cron
8. Create a tar ball with gzip compression of the home dir
#yum remove [package name]
$ tar czvf home.tar.gz /home
service sshd restart
#iptables -F
9. An example of searching through system logs with interpretation.
yum install firefox4
#iptables -F
# cat /var/log/messages | grep [Ff]ailed | less
#rpm -qac [package name]
10. Search for a package with firefox in the description
/var/www/html/
#rpm -qad [package name]
/etc/sysconfig/resolv.conf
yum search firefox
11. Process packets being forwarded through the system
IPtables forward chain
tar xvzf /tmp/etc.tar.gz /etc
/usr/share/doc/initscripts-*/sysconfig.txt
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
12. handles dependencies while RPMs do not uses preconfigured repos
#ip addr show
/etc/sysconfig/iptables
#yum
rsync /home/test1.html root@server6.example.com:/var/pub
13. Send all debug level messages to /var/log/debug.log
*.debug /var/log/debug.log service rsyslog restart
IPtables input chain
yum install tigervnc-server
vsftpd
14. Create a gzip-compressed backup of /etc in /tmp
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar czvf /tmp/etc.tar.gz /etc
# virsh create /etc/libvert/qemu/vm_file_name.xml
*.debug /var/log/debug.log service rsyslog restart
15. Sync ntp time with the instructor
#ip addr show
rpm -qc httpd
ntpdate -b instructor
/etc/sysconfig/resolv.conf
16. Acting as a router with forwarding
ip masqu
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
yum info firefox4
rpm -qc httpd
17. Restart ssh services
# star -x -f=home.star
service sshd restart
#yum
/etc/sysconfig/resolv.conf
18. See files installed with a package named vsftpd
rpm -ql vsftpd
/etc/ssh/sshd_config
# star -xattr -H=exustar -c -f=home.star /home/
service ntpd restart
19. List scripts that can be run after installation of pkg.rpm
#yum grouplist
rpm -q pkg.rpm --scripts
system-config-date
$ tar xzvf home.tar.gz /home
20. Where are HTML pages hosted?
rpm -qc httpd
chkconfig httpd on
/etc/yum.repos.d/
/var/www/html/
21. List VMs
#virsh list
tar czvf /tmp/etc.tar.gz /etc
#yum
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
22. Contains RPM database
/var/lib/rpm
#yum groupremove "group name"
#virsh list
IPtables input chain
23. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/sysconfig/network
#yum groupremove "group name"
yum update
/etc/hosts
24. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
#iptables -L
nautilus
rsync -a /home/test1.html root@server6.example.com:/var/pub
# star -x -f=home.star
25. Start vsftp service
#yum info [package name]
rpm -q pkg.rpm --scripts
/etc/sysconfig/iptables
vsftpd restart
26. Get more information on a package availale through yum
$ tar czvf home.tar.gz /home
#yum info [package name]
# ls -l /usr/share/doc | grep httpd
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
27. Process packets coming into the system
IPtables input chain
MailTo=student@server6.example.com
rhn_register
# vi /etc/inittab change - id:3:initdefault:
28. Determine which package provides SSH
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
chkconfig httpd on
yum provides "*/sbin/sshd"
updating the kernel
29. File holding services - ports - protocols assoicated
.spec
/etc/sysconfig/iptables
/etc/services
#yum groupremove "group name"
30. Local file copy of /home/test1.html to /var/www/html/test1.html
ln -s /pub /var/www/html/pub
rsync /home/test1.html root@server6.example.com:/var/pub
cp /home/test1.html /var/www/html/test1.html
/etc/sysconfig/resolv.conf
31. Restart vnc and persist on boot
vsftpd restart
/etc/sysconfig/network
#rpm -ivh [package name]
service vncserver restart chkconfig vncserver on
32. All messages sent at info priority or higher
/var/log/messages
ip masqu
#yum info [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
33. fqdn
#iptables -F
Fully Qualified Domain Name
rpm -qp pkg.rpm
service sshd restart
34. Edit files with cat until the _EOF is found
/etc/sysconfig/iptables
$ grep -v ^# /etc/nsswitch.conf
cat >> some_file << _EOF
yum info firefox4
35. Import a public key
tar xvzf /tmp/etc.tar.gz /etc
chkconfig httpd on
rpm --import [public key location]
#iptables -L
36. Configuration file for system logs
nautilus
/etc/rsyslog.conf
#rpm -ivh [package name]
#yum groupinstall "group name"
37. Remove a package named firefox4
#rpm -qac [package name]
# renice -10 proc-id
yum provides
yum remove firefox4
38. Copy a public ssh key to server6
#iptables -L
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
Fully Qualified Domain Name
ssh-copy-id root@server6.example.com
39. Generate SSH Keys
#yum remove [package name]
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
yum search firefox
ssh-keygen
40. tar options for file name - gzip - and bzip2
yum install firefox4
rpm -qc httpd
tar fzj
add/remove software GUI
41. Adjust the persistent runlevel
rsync /home/test1.html root@server6.example.com:/var/pub
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#virsh destroy domain-id
# vi /etc/inittab change - id:3:initdefault:
42. Set a VNC password
vncpasswd
# star -x -f=home.star
rpm -ql vsftpd
service ntpd restart
43. Create a symbolic link to /pub on the FTP and name it pub
/usr/share/doc/initscripts-*/sysconfig.txt
2>&1
ln -s /pub /var/www/html/pub
/etc/ssh/sshd_config
44. Repo config file
logwatch
rpm --import [public key location]
[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
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
45. Primary configuration of ssh
/etc/ssh/sshd_config
#yum
/var/lib/rpm
name-version-release.architecture.rpm
46. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
# renice -10 proc-id
/etc/sysconfig/network
rhn_register
.spec
47. Remote file copy /home/test1.html to the /var/pub directory on server6
IPtables output chain
rsync /home/test1.html root@server6.example.com:/var/pub
#rpm -qa | grep [package name]
rpm localinstall pkg.rpm --nogpgcheck
48. Get information about a package named firefox4
/etc/rsyslog.conf
yum info firefox4
$ grep -v ^# /etc/nsswitch.conf
/etc/sysconfig/resolv.conf
49. Extract /tmp/etc.tar.gz to /etc
#ip addr show
rhn_register
tar xvzf /tmp/etc.tar.gz /etc
#iptables -L
50. System config firewall
rpm localinstall pkg.rpm --nogpgcheck
#yum
GUI menu system/administratrion/firewall
IPtables forward chain