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. Messages related to cron log
IPtables input chain
/var/log/cron
#yum install [package name]
yum install tigervnc-server
2. Set process priority with renice - -20 highest - 20 lowest - 0 is default
/etc/sysconfig/iptables
$ tar xzvf home.tar.gz /home
yum provides "*/sbin/sshd"
# renice -10 proc-id
3. Persist FTP on boot
/etc/sysconfig/iptables
yum provides
tar xvzf /tmp/etc.tar.gz /etc
chkconfig vsftpd on
4. File holding services - ports - protocols assoicated
/var/www/html/
/etc/ssh/sshd_config
/etc/services
#iptables -D INPUT -p tcp --dport 21 -j accpet
5. 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
/var/log/maillog
IPtables forward chain
#uname -r
6. Local file copy of /home/test1.html to /var/www/html/test1.html
#iptables -D INPUT -p tcp --dport 21 -j accpet
cp /home/test1.html /var/www/html/test1.html
/etc/sysconfig/iptables
rpm -q pkg.rpm --scripts
7. Package file named pkg.rpm
# star -xattr -H=exustar -c -f=home.star /home/
updating the kernel
rpm -qp pkg.rpm
vsftpd restart
8. Install a package group with yum
#yum groupinstall "group name"
/etc/yum.repos.d
# virsh create /etc/libvert/qemu/vm_file_name.xml
/var/lib/rpm
9. Contains RPM database
vncviewer -via student@server6 localhost:2
nautilus
/var/lib/rpm
tar fzj
10. Edit files with cat until the _EOF is found
palimpsest
#yum grouplist
#rpm -qi [package name]
cat >> some_file << _EOF
11. Kill a VM
#virsh destroy domain-id
# vi /etc/inittab change - id:3:initdefault:
cp /home/test1.html /var/www/html/test1.html
rhn_register
12. Authentication related messages log
/etc/yum.repos.d/
/var/log/secure
#yum groupinstall "group name"
#yum install [package name]
13. All messages sent at info priority or higher
rsync -a /home/test1.html root@server6.example.com:/var/pub
#virsh list
#iptables -D INPUT -p tcp --dport 21 -j accpet
/var/log/messages
14. Grep with ignoring case
nautilus
#yum info [package name]
#yum remove [package name]
# grep -i
15. Backup a home directory on desktop6 to /tmp on server6
rpm localinstall pkg.rpm --nogpgcheck
#yum groupremove "group name"
#yum info [package name]
rsync /home root@server6.example.com:/tmp
16. Where are HTML pages hosted?
vsftpd restart
/var/www/html/
rpm --import [public key location]
#iptables -D INPUT -p tcp --dport 21 -j accpet
17. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
MailTo=student@server6.example.com
rpm -qp pkg.rpm
updating the kernel
yum info firefox4
18. Uninstall a package group with yum
#iptables -L
# grep -i
#yum groupremove "group name"
MailTo=student@server6.example.com
19. fqdn
Fully Qualified Domain Name
# cat /var/log/messages | grep [Ff]ailed | less
IPtables output chain
/etc/services
20. Import a public key
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
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
/var/log/cron
21. Repos for yum
ssh-copy-id root@server6.example.com
yum info firefox4
#ip addr show
/etc/yum.repos.d
22. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum info firefox4
system-config-firewall tui
#yum info [package name]
23. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
rsync /home root@server6.example.com:/tmp
/etc/hosts
rpm -q pkg.rpm --scripts
.spec
24. Start the GUI for date configuration
rpm -qp pkg.rpm
ssh-copy-id root@server6.example.com
#virsh list
system-config-date
25. original DNS config file - still used
IPtables input chain
yum provides "*/sbin/sshd"
/dev
/etc/sysconfig/resolv.conf
26. Extract a star compressed file
# star -x -f=home.star
ip masqu
$ tar xzvf home.tar.gz /home
rsync /home root@server6.example.com:/tmp
27. Disks available for partitions
rpm --import [public key location]
/etc/sysconfig/iptables
/dev
/usr/share/doc/initscripts-*/sysconfig.txt
28. Documentation about sysconfig network scripts
rpm -q pkg.rpm --scripts
# ls -l /usr/share/doc | grep httpd
/usr/share/doc/initscripts-*/sysconfig.txt
tar cxtv
29. Remote file copy /home/test1.html to the /var/pub directory on server6
# star -xattr -H=exustar -c -f=home.star /home/
rsync /home/test1.html root@server6.example.com:/var/pub
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qad [package name]
30. Configuration for VNC
service sshd restart
/etc/yum.repos.d
cat >> some_file << _EOF
/etc/sysconfig/vncservers rpm -ql tigervnc-server
31. Stores filewall rules for the system.
ssh-keygen
#yum info [package name]
vncviewer -via student@server6 localhost:2
/etc/sysconfig/iptables
32. Start GUI for Firewall
#rpm -qac [package name]
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# star -x -f=home.star
rsync -a /home/test1.html root@server6.example.com:/var/pub
33. Display packages that match the pathname
ssh-copy-id root@server6.example.com
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
tar czvf /tmp/etc.tar.gz /etc
yum provides
34. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/sysconfig/iptables
rpm -qp pkg.rpm
service ntpd restart
[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
35. Disk Utility Command
palimpsest
insert as opposed to append
tar fzj
system-config-firewall tui
36. Generate SSH Keys
/etc/sysconfig/network
/etc/yum.repos.d/
ssh-keygen
#yum install [package name]
37. Restart the ntpd service
/etc/sysconfig/network
service ntpd restart
logwatch
rpm -qc httpd
38. Install with RPM
#rpm -ivh [package name]
#yum install [package name]
tar xvzf /tmp/etc.tar.gz /etc
2>&1
39. Register on the RHN
yum remove firefox4
#yum info [package name]
rhn_register
.spec
40. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
#iptables -L
rpm -qp pkg.rpm
insert as opposed to append
yum provides "*/sbin/sshd"
41. Grep for lines that do not match (-v)
yum update
$ grep -v ^# /etc/nsswitch.conf
2>&1
cp /home/test1.html /var/www/html/test1.html
42. Install the star compression tool create an archive with the star tool.
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
tar fzj
rhn_register
# star -xattr -H=exustar -c -f=home.star /home/
43. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
# cat /var/log/messages | grep [Ff]ailed | less
yum update
yum provides "*/sbin/sshd"
44. Install a package named firefox4
vncviewer -via student@server6 localhost:2
cat >> some_file << _EOF
# grep -i
yum install firefox4
45. Use lftp to connect
#yum groupinstall "group name"
yum provides "*/sbin/sshd"
# ls -l /usr/share/doc | grep httpd
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
46. Query configuration files with RPM
#rpm -qac [package name]
#iptables -I INPUT -p tcp --dport 21 -j Accept
service ntpd restart
ln -s /pub /var/www/html/pub
47. List VMs
system-config-date
/var/lib/rpm
# yum
#virsh list
48. tar options for file name - gzip - and bzip2
IPtables input chain
tar xvzf /tmp/etc.tar.gz /etc
tar fzj
ntpdate -b instructor
49. Configuration file for system logs
/etc/sysconfig/network
/etc/rsyslog.conf
#yum groupinstall "group name"
/var/log/secure
50. Create a symbolic link to /pub on the FTP and name it pub
2>&1
chkconfig httpd on
ln -s /pub /var/www/html/pub
MailTo=student@server6.example.com