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. Grep for lines that do not match (-v)
IPtables output chain
$ tar xzvf home.tar.gz /home
$ grep -v ^# /etc/nsswitch.conf
/etc/yum.repos.d/
2. fqdn
rpm -q pkg.rpm --scripts
Fully Qualified Domain Name
nautilus
#iptables -D INPUT -p tcp --dport 21 -j accpet
3. Restart ssh services
ntpdate -b instructor
tar cxtv
service sshd restart
#rpm -uvh [package name]
4. Extract a star compressed file
# star -x -f=home.star
# cat /var/log/messages | grep [Ff]ailed | less
service ntpd restart
add/remove software GUI
5. Local host file (contains hostname). Can contain local system DNS.
[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
# virsh create /etc/libvert/qemu/vm_file_name.xml
vsftpd restart
/etc/hosts
6. Remove a package with yum
/etc/ssh/sshd_config
#yum remove [package name]
tar cxtv
vncviewer -via student@server6 localhost:2
7. Repo config file
# renice -10 proc-id
$ tar xzvf home.tar.gz /home
[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
palimpsest
8. RPM package naming
name-version-release.architecture.rpm
rpm -qc httpd
yum info firefox4
service ntpd restart
9. System config firewall
tar xvzf /tmp/etc.tar.gz /etc
GUI menu system/administratrion/firewall
vncviewer -via student@server6 localhost:2
#rpm -qac [package name]
10. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
#rpm -uvh [package name]
/etc/services
#yum groupinstall "group name"
.spec
11. Install the VNC server package
yum install tigervnc-server
rpm -ql vsftpd
#iptables -L
ssh-copy-id root@server6.example.com
12. Program to analyze standard log files and send a summary email to root
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
# grep -i
tar cxtv
logwatch
13. List VMs
yum list
$ grep -v ^# /etc/nsswitch.conf
service sshd restart
#virsh list
14. Backup a home directory on desktop6 to /tmp on server6
yum search firefox
cp /home/test1.html /var/www/html/test1.html
rsync /home root@server6.example.com:/tmp
#yum
15. Sync ntp time with the instructor
/etc/sysconfig/iptables
palimpsest
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ntpdate -b instructor
16. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
yum install tigervnc-server
cp /home/test1.html /var/www/html/test1.html
/usr/share/doc/initscripts-*/sysconfig.txt
#iptables -I INPUT -p tcp --dport 21 -j Accept
17. Start a VM
# virsh create /etc/libvert/qemu/vm_file_name.xml
name-version-release.architecture.rpm
Fully Qualified Domain Name
/etc/ssh/sshd_config
18. Restart vnc and persist on boot
#yum groupremove "group name"
service vncserver restart chkconfig vncserver on
#rpm -qi [package name]
yum install tigervnc-server
19. Restart the ntpd service
2>&1
service ntpd restart
rpm -qc httpd
/etc/yum.repos.d
20. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
/etc/sysconfig/iptables
#rpm -qi [package name]
.spec
21. Kill a VM
#rpm -ivh [package name]
yum info firefox4
yum list
#virsh destroy domain-id
22. Update a package
/etc/yum.repos.d/
/etc/sysconfig/iptables
ssh-copy-id root@server6.example.com
yum update
23. List scripts that can be run after installation of pkg.rpm
rpm -q pkg.rpm --scripts
system-config-firewall tui
vncpasswd
/etc/yum.repos.d
24. Extract a gzipped tar ball in your home directory
rsync /home/test1.html root@server6.example.com:/var/pub
$ tar xzvf home.tar.gz /home
yum provides "*/sbin/sshd"
rpm -q pkg.rpm --scripts
25. Install a pkg.rpm locally
rpm localinstall pkg.rpm --nogpgcheck
# ls -l /usr/share/doc | grep httpd
system-config-date
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
26. tar options for file name - gzip - and bzip2
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#rpm -qi [package name]
tar fzj
/etc/sysconfig/iptables
27. Display packages that match the pathname
yum provides
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#yum groupremove "group name"
IPtables forward chain
28. Process packets coming out of the system
#yum install [package name]
tar cxtv
IPtables output chain
[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
29. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
logwatch
Fully Qualified Domain Name
#virsh destroy domain-id
30. Set process priority with renice - -20 highest - 20 lowest - 0 is default
#iptables -F
service sshd restart
# renice -10 proc-id
# star -x -f=home.star
31. Query configuration files with RPM
#rpm -qac [package name]
ln -s /pub /var/www/html/pub
# grep -i
$ tar czvf home.tar.gz /home
32. Start vsftp service
/var/www/html/
palimpsest
/etc/ssh/sshd_config
vsftpd restart
33. Use lftp to connect
#rpm -qad [package name]
2>&1
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
rpm -q pkg.rpm --scripts
34. Stores filewall rules for the system.
#yum remove [package name]
chkconfig vsftpd on
#yum grouplist
/etc/sysconfig/iptables
35. Create a symbolic link to /pub on the FTP and name it pub
logwatch
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ln -s /pub /var/www/html/pub
#yum grouplist
36. All messages sent at info priority or higher
.spec
$ tar xzvf home.tar.gz /home
/var/log/messages
#uname -r
37. Import a public key
rpm --import [public key location]
IPtables forward chain
# vi /etc/inittab change - id:3:initdefault:
nautilus
38. File holding services - ports - protocols assoicated
# cat /var/log/messages | grep [Ff]ailed | less
/var/log/maillog
#iptables -D INPUT -p tcp --dport 21 -j accpet
/etc/services
39. Persist the web server on boot
chkconfig httpd on
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/etc/hosts
# cat /var/log/messages | grep [Ff]ailed | less
40. Remote file copy /home/test1.html to the /var/pub directory on server6
rpm localinstall pkg.rpm --nogpgcheck
#rpm -qad [package name]
rsync /home/test1.html root@server6.example.com:/var/pub
/etc/ssh/sshd_config
41. Disks available for partitions
/dev
MailTo=student@server6.example.com
updating the kernel
yum install firefox4
42. Gets kernel version and release number
#uname -r
logwatch
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/sysconfig/iptables
43. Messages related to cron log
/etc/sysconfig/network
$ tar xzvf home.tar.gz /home
rsync /home/test1.html root@server6.example.com:/var/pub
/var/log/cron
44. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
vncpasswd
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
#yum groupremove "group name"
45. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
/etc/sysconfig/vncservers rpm -ql tigervnc-server
yum remove firefox4
MailTo=student@server6.example.com
nautilus
46. Contains RPM database
2>&1
/var/lib/rpm
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum groupinstall "group name"
47. Get more information on a package availale through yum
#yum info [package name]
#yum remove [package name]
/etc/rsyslog.conf
/etc/sysconfig/iptables
48. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
tar czvf /tmp/etc.tar.gz /etc
#yum groupremove "group name"
#iptables -L
49. Install a package named firefox4
yum install firefox4
cp /home/test1.html /var/www/html/test1.html
#uname -r
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
50. Install a package with yum
rpm --import [public key location]
# yum
logwatch
#yum install [package name]