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. Show IP address with the IP command
#ip addr show
# vi /etc/inittab change - id:3:initdefault:
#yum remove [package name]
yum remove firefox4
2. Program to analyze standard log files and send a summary email to root
service ntpd restart
MailTo=student@server6.example.com
logwatch
#yum groupinstall "group name"
3. Search for command in the doc directory
yum provides "*/sbin/sshd"
rpm -ql vsftpd
system-config-date
# ls -l /usr/share/doc | grep httpd
4. Contains RPM database
/var/www/html/
logwatch
/var/lib/rpm
# grep -i
5. Remove a package with yum
/usr/share/doc/initscripts-*/sysconfig.txt
#yum remove [package name]
service sshd restart
# star -xattr -H=exustar -c -f=home.star /home/
6. Searches for page within the #man yum
#yum groupremove "group name"
man search :/repository
2>&1
palimpsest
7. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/var/log/maillog
#yum groupinstall "group name"
.spec
8. Start a VM
rpm -q pkg.rpm --scripts
# virsh create /etc/libvert/qemu/vm_file_name.xml
/var/lib/rpm
yum list
9. 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
tar fzj
/usr/share/doc/initscripts-*/sysconfig.txt
#uname -r
10. Process packets being forwarded through the system
rsync /home/test1.html root@server6.example.com:/var/pub
rpm -qc httpd
IPtables forward chain
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
11. Disks available for partitions
/dev
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rsync /home root@server6.example.com:/tmp
insert as opposed to append
12. Query information files with RPM
# vi /etc/inittab change - id:3:initdefault:
#rpm -qad [package name]
#rpm -qi [package name]
cp /home/test1.html /var/www/html/test1.html
13. RPM package naming
IPtables forward chain
/usr/share/doc/initscripts-*/sysconfig.txt
name-version-release.architecture.rpm
#yum remove [package name]
14. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
rpm -ql vsftpd
/etc/services
tar xvzf /tmp/etc.tar.gz /etc
15. Install with RPM
#rpm -ivh [package name]
2>&1
/var/log/cron
vsftpd
16. Configuration file for system logs
/etc/rsyslog.conf
yum install tigervnc-server
ssh-copy-id root@server6.example.com
#yum groupinstall "group name"
17. Disk Utility Command
ntpdate -b instructor
/usr/share/doc/initscripts-*/sysconfig.txt
palimpsest
/var/log/messages
18. Restart the ntpd service
service ntpd restart
vsftpd restart
yum list
#yum install [package name]
19. Rpm upgrade package u upgrade v verbose h hash
yum search firefox
#rpm -uvh [package name]
/etc/ssh/sshd_config
yum install firefox4
20. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
yum install firefox4
[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 tui
21. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
cat >> some_file << _EOF
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -qa | grep [package name]
# grep -i
22. Restart ssh services
2>&1
service sshd restart
#rpm -qac [package name]
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
23. Authentication related messages log
#rpm -qa | grep [package name]
#rpm -qac [package name]
service vncserver restart chkconfig vncserver on
/var/log/secure
24. Get more information on a package availale through yum
rsync /home root@server6.example.com:/tmp
yum install tigervnc-server
yum update
#yum info [package name]
25. Install star
/var/log/messages
#yum remove [package name]
/etc/hosts
# yum
26. Stores filewall rules for the system.
yum list
/etc/sysconfig/iptables
yum provides "*/sbin/sshd"
palimpsest
27. See the configuration files installed with a package named httpd
#rpm -uvh [package name]
rpm -qc httpd
#yum groupinstall "group name"
yum install tigervnc-server
28. Redirect errors to std out
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qac [package name]
#virsh list
2>&1
29. Register on the RHN
rsync -a /home/test1.html root@server6.example.com:/var/pub
rhn_register
# vi /etc/inittab change - id:3:initdefault:
tar fzj
30. tar options for create - extract - test - and verbose
rsync /home/test1.html root@server6.example.com:/var/pub
tar cxtv
vncpasswd
tar czvf /tmp/etc.tar.gz /etc
31. Shell config tool gropued like GUI firewall configurater.
system-config-firewall tui
ssh-keygen
#rpm -ivh [package name]
/etc/hosts
32. Import a public key
/var/log/secure
rpm --import [public key location]
#rpm -qi [package name]
/var/www/html/
33. Acting as a router with forwarding
ip masqu
palimpsest
tar cxtv
insert as opposed to append
34. Query configuration files with RPM
# vi /etc/inittab change - id:3:initdefault:
# ls -l /usr/share/doc | grep httpd
#rpm -qac [package name]
/etc/sysconfig/network
35. Install a pkg.rpm locally
# renice -10 proc-id
/etc/sysconfig/iptables
rpm localinstall pkg.rpm --nogpgcheck
tar czvf /tmp/etc.tar.gz /etc
36. Search for a package within all packages
#rpm -qa | grep [package name]
nautilus
tar cxtv
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
37. handles dependencies while RPMs do not uses preconfigured repos
rsync /home root@server6.example.com:/tmp
/etc/yum.repos.d
#yum
yum list
38. original DNS config file - still used
# yum
#yum info [package name]
/etc/sysconfig/resolv.conf
/var/www/html/
39. Grep for lines that do not match (-v)
/etc/ssh/sshd_config
vsftpd
yum search firefox
$ grep -v ^# /etc/nsswitch.conf
40. Backup a home directory on desktop6 to /tmp on server6
/var/www/html/
/etc/hosts
rsync /home root@server6.example.com:/tmp
#yum grouplist
41. Gets kernel version and release number
#uname -r
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#rpm -ivh [package name]
/var/log/cron
42. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
rsync -a /home/test1.html root@server6.example.com:/var/pub
#yum info [package name]
/etc/sysconfig/resolv.conf
/etc/sysconfig/iptables
43. Extract a gzipped tar ball in your home directory
yum info firefox4
$ tar xzvf home.tar.gz /home
rpm localinstall pkg.rpm --nogpgcheck
cp /home/test1.html /var/www/html/test1.html
44. Create a symbolic link to /pub on the FTP and name it pub
/etc/hosts
/etc/sysconfig/resolv.conf
ip masqu
ln -s /pub /var/www/html/pub
45. Determine which package provides SSH
#yum groupremove "group name"
yum provides "*/sbin/sshd"
name-version-release.architecture.rpm
[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
46. Remote file copy /home/test1.html to the /var/pub directory on server6
yum provides "*/sbin/sshd"
chkconfig vsftpd on
cp /home/test1.html /var/www/html/test1.html
rsync /home/test1.html root@server6.example.com:/var/pub
47. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
ln -s /pub /var/www/html/pub
/var/log/secure
#virsh destroy domain-id
/etc/sysconfig/network
48. Install the VNC server package
tar xvzf /tmp/etc.tar.gz /etc
# renice -10 proc-id
#yum install [package name]
yum install tigervnc-server
49. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
#rpm -qad [package name]
ntpdate -b instructor
updating the kernel
/var/log/secure
50. Location of repo's
#rpm -qi [package name]
*.debug /var/log/debug.log service rsyslog restart
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
/etc/yum.repos.d/