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. Disk Utility Command
tar cxtv
cp /home/test1.html /var/www/html/test1.html
palimpsest
service vncserver restart chkconfig vncserver on
2. Install a pkg.rpm locally
rpm localinstall pkg.rpm --nogpgcheck
MailTo=student@server6.example.com
# vi /etc/inittab change - id:3:initdefault:
chkconfig httpd on
3. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
/etc/rsyslog.conf
/etc/sysconfig/iptables
rsync /home/test1.html root@server6.example.com:/var/pub
rsync -a /home/test1.html root@server6.example.com:/var/pub
4. tar options for file name - gzip - and bzip2
tar fzj
tar czvf /tmp/etc.tar.gz /etc
vncpasswd
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
5. Search for a package within all packages
#rpm -qac [package name]
$ tar xzvf home.tar.gz /home
#rpm -qa | grep [package name]
vsftpd restart
6. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
insert as opposed to append
tar czvf /tmp/etc.tar.gz /etc
/etc/rsyslog.conf
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
7. Start the GUI for date configuration
# ls -l /usr/share/doc | grep httpd
system-config-date
rsync /home/test1.html root@server6.example.com:/var/pub
yum list
8. Shell config tool gropued like GUI firewall configurater.
name-version-release.architecture.rpm
tar cxtv
#rpm -ivh [package name]
system-config-firewall tui
9. Disks available for partitions
/dev
#iptables -F
vsftpd restart
ssh-copy-id root@server6.example.com
10. Search for command in the doc directory
# grep -i
/var/log/maillog
# ls -l /usr/share/doc | grep httpd
service sshd restart
11. Install a package with yum
ip masqu
name-version-release.architecture.rpm
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum install [package name]
12. Show IP address with the IP command
/var/log/secure
system-config-date
#ip addr show
#yum remove [package name]
13. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
# vi /etc/inittab change - id:3:initdefault:
updating the kernel
#iptables -D INPUT -p tcp --dport 21 -j accpet
# yum
14. Query all documentation with RPM
yum provides
#rpm -qad [package name]
rpm -q pkg.rpm --scripts
vncpasswd
15. Email related messages log
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/var/log/maillog
/etc/sysconfig/resolv.conf
#virsh destroy domain-id
16. Install with RPM
rhn_register
cat >> some_file << _EOF
#rpm -ivh [package name]
#rpm -uvh [package name]
17. Local host file (contains hostname). Can contain local system DNS.
tar cxtv
/etc/rsyslog.conf
/etc/hosts
/dev
18. Restart vnc and persist on boot
/var/log/messages
#virsh destroy domain-id
yum install firefox4
service vncserver restart chkconfig vncserver on
19. File holding services - ports - protocols assoicated
/etc/sysconfig/network
.spec
/etc/services
#yum groupinstall "group name"
20. Gets kernel version and release number
ssh-copy-id root@server6.example.com
2>&1
#uname -r
# renice -10 proc-id
21. Update a package
/etc/sysconfig/iptables
rpm --import [public key location]
system-config-firewall tui
yum update
22. Display packages that match the pathname
yum provides
tar czvf /tmp/etc.tar.gz /etc
#rpm -uvh [package name]
yum search firefox
23. See the configuration files installed with a package named httpd
yum info firefox4
# grep -i
rpm -qc httpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
24. Send all debug level messages to /var/log/debug.log
GUI menu system/administratrion/firewall
*.debug /var/log/debug.log service rsyslog restart
#ip addr show
yum install firefox4
25. Start GUI for Firewall
# grep -i
#uname -r
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#yum groupinstall "group name"
26. Grep for lines that do not match (-v)
$ grep -v ^# /etc/nsswitch.conf
#rpm -qac [package name]
/var/www/html/
nautilus
27. Remove a package named firefox4
yum remove firefox4
tar czvf /tmp/etc.tar.gz /etc
yum install tigervnc-server
yum list
28. Install star
vncviewer -via student@server6 localhost:2
/etc/sysconfig/vncservers rpm -ql tigervnc-server
rpm localinstall pkg.rpm --nogpgcheck
# yum
29. GUI install / uninstall with yum
#yum groupinstall "group name"
add/remove software GUI
ip masqu
tar czvf /tmp/etc.tar.gz /etc
30. Register on the RHN
rhn_register
ssh-copy-id root@server6.example.com
name-version-release.architecture.rpm
# vi /etc/inittab change - id:3:initdefault:
31. Adjust the persistent runlevel
#virsh destroy domain-id
#rpm -qa | grep [package name]
yum remove firefox4
# vi /etc/inittab change - id:3:initdefault:
32. Primary configuration of ssh
rsync /home root@server6.example.com:/tmp
.spec
/etc/ssh/sshd_config
#yum install [package name]
33. original DNS config file - still used
service sshd restart
/etc/sysconfig/resolv.conf
/etc/yum.repos.d/
rpm --import [public key location]
34. Configuration file for system logs
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/rsyslog.conf
logwatch
#yum install [package name]
35. GUI File Manager
vsftpd
nautilus
#virsh destroy domain-id
#yum remove [package name]
36. All messages sent at info priority or higher
/usr/share/doc/initscripts-*/sysconfig.txt
rpm -qp pkg.rpm
/var/log/messages
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
37. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
*.debug /var/log/debug.log service rsyslog restart
MailTo=student@server6.example.com
ip masqu
/var/lib/rpm
38. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm -q pkg.rpm --scripts
service ntpd restart
39. Flush the firewall of all rules
#yum grouplist
#iptables -F
yum info firefox4
service sshd restart
40. handles dependencies while RPMs do not uses preconfigured repos
#yum
/etc/rsyslog.conf
rsync /home/test1.html root@server6.example.com:/var/pub
MailTo=student@server6.example.com
41. List installed and available packages
yum list
# virsh create /etc/libvert/qemu/vm_file_name.xml
$ tar czvf home.tar.gz /home
#iptables -D INPUT -p tcp --dport 21 -j accpet
42. Local file copy of /home/test1.html to /var/www/html/test1.html
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
rpm -qc httpd
cp /home/test1.html /var/www/html/test1.html
GUI menu system/administratrion/firewall
43. See files installed with a package named vsftpd
ssh-keygen
tar cxtv
rpm -ql vsftpd
yum install tigervnc-server
44. Create a symbolic link to /pub on the FTP and name it pub
#iptables -D INPUT -p tcp --dport 21 -j accpet
ln -s /pub /var/www/html/pub
vncviewer -via student@server6 localhost:2
nautilus
45. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
#iptables -D INPUT -p tcp --dport 21 -j accpet
# yum
$ tar xzvf home.tar.gz /home
46. Configuration for VNC
system-config-date
/etc/sysconfig/vncservers rpm -ql tigervnc-server
updating the kernel
rpm -qp pkg.rpm
47. Generate SSH Keys
ssh-keygen
[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
/var/log/maillog
/etc/services
48. Repo config file
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
Fully Qualified Domain Name
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
[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
49. Extract a star compressed file
#rpm -qi [package name]
# star -x -f=home.star
tar xvzf /tmp/etc.tar.gz /etc
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
50. Contains RPM database
/etc/yum.repos.d/
/var/lib/rpm
/var/log/secure
yum info firefox4