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)
ip masqu
$ grep -v ^# /etc/nsswitch.conf
rhn_register
vsftpd restart
2. File holding services - ports - protocols assoicated
.spec
/etc/services
updating the kernel
#yum groupremove "group name"
3. Stores filewall rules for the system.
/etc/yum.repos.d
vsftpd
/etc/sysconfig/iptables
rpm -q pkg.rpm --scripts
4. Redirect errors to std out
service ntpd restart
rpm -q pkg.rpm --scripts
2>&1
chkconfig vsftpd on
5. See files installed with a package named vsftpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
# renice -10 proc-id
rpm -ql vsftpd
[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
6. Append this to the /etc/rsyslog.conf to send mail to student@server6.example.com
MailTo=student@server6.example.com
# star -xattr -H=exustar -c -f=home.star /home/
$ grep -v ^# /etc/nsswitch.conf
/etc/hosts
7. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
GUI menu system/administratrion/firewall
palimpsest
IPtables input chain
8. Grep with ignoring case
vncpasswd
# grep -i
vncviewer -via student@server6 localhost:2
service vncserver restart chkconfig vncserver on
9. Messages related to cron log
add/remove software GUI
/var/log/cron
yum update
rpm -qc httpd
10. Delete a rule from iptables
$ grep -v ^# /etc/nsswitch.conf
yum install firefox4
#iptables -D INPUT -p tcp --dport 21 -j accpet
#rpm -qi [package name]
11. List VMs
vsftpd restart
#yum groupinstall "group name"
#virsh list
/etc/sysconfig/iptables
12. All messages sent at info priority or higher
nautilus
MailTo=student@server6.example.com
/var/log/messages
2>&1
13. Query all documentation with RPM
#rpm -qad [package name]
rpm --import [public key location]
yum install firefox4
#virsh destroy domain-id
14. Location of repo's
/dev
ssh-copy-id root@server6.example.com
# grep -i
/etc/yum.repos.d/
15. Persist FTP on boot
tar cxtv
chkconfig vsftpd on
rpm --import [public key location]
yum list
16. Copy a public ssh key to server6
rpm -q pkg.rpm --scripts
man search :/repository
#iptables -I INPUT -p tcp --dport 21 -j Accept
ssh-copy-id root@server6.example.com
17. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
.spec
rpm -q pkg.rpm --scripts
rsync -a /home/test1.html root@server6.example.com:/var/pub
$ tar czvf home.tar.gz /home
18. Should be done with yum and install as opposed to update if done with RPM option "i" should be used and not "u"
2>&1
#iptables -D INPUT -p tcp --dport 21 -j accpet
IPtables output chain
updating the kernel
19. System config firewall
GUI menu system/administratrion/firewall
# star -x -f=home.star
rpm --import [public key location]
#iptables -D INPUT -p tcp --dport 21 -j accpet
20. Install a package named firefox4
#rpm -ivh [package name]
logwatch
yum install firefox4
*.debug /var/log/debug.log service rsyslog restart
21. Search for a package within all packages
#iptables -I INPUT -p tcp --dport 21 -j Accept
service sshd restart
#rpm -qa | grep [package name]
yum update
22. Restart the ntpd service
/var/log/messages
service ntpd restart
$ grep -v ^# /etc/nsswitch.conf
ln -s /pub /var/www/html/pub
23. original DNS config file - still used
chkconfig httpd on
/etc/hosts
/usr/share/doc/initscripts-*/sysconfig.txt
/etc/sysconfig/resolv.conf
24. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
/etc/yum.repos.d/
yum update
.spec
/var/log/cron
25. Search for a package with firefox in the description
yum search firefox
/etc/sysconfig/resolv.conf
# grep -i
/etc/sysconfig/iptables
26. Kill a VM
#rpm -uvh [package name]
# vi /etc/inittab change - id:3:initdefault:
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
#virsh destroy domain-id
27. Sync ntp time with the instructor
ntpdate -b instructor
rpm localinstall pkg.rpm --nogpgcheck
rsync /home/test1.html root@server6.example.com:/var/pub
tar czvf /tmp/etc.tar.gz /etc
28. Configuration for VNC
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#virsh destroy domain-id
#rpm -uvh [package name]
# cat /var/log/messages | grep [Ff]ailed | less
29. Start the GUI for date configuration
#iptables -F
#yum grouplist
# ls -l /usr/share/doc | grep httpd
system-config-date
30. Install a package group with yum
rpm -qp pkg.rpm
/var/log/messages
rpm -q pkg.rpm --scripts
#yum groupinstall "group name"
31. Disk Utility Command
palimpsest
ip masqu
/var/lib/rpm
#yum groupinstall "group name"
32. fqdn
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#yum info [package name]
Fully Qualified Domain Name
/etc/sysconfig/network
33. Repos for yum
/etc/sysconfig/network
/etc/yum.repos.d
cat >> some_file << _EOF
name-version-release.architecture.rpm
34. handles dependencies while RPMs do not uses preconfigured repos
#yum
rsync /home/test1.html root@server6.example.com:/var/pub
service vncserver restart chkconfig vncserver on
# virsh create /etc/libvert/qemu/vm_file_name.xml
35. tar options for file name - gzip - and bzip2
vncpasswd
rsync /home/test1.html root@server6.example.com:/var/pub
tar fzj
/dev
36. Rpm upgrade package u upgrade v verbose h hash
/etc/ssh/sshd_config
insert as opposed to append
#yum groupinstall "group name"
#rpm -uvh [package name]
37. Remove a package with yum
chkconfig vsftpd on
#yum remove [package name]
/var/www/html/
# ls -l /usr/share/doc | grep httpd
38. Configuration file for system logs
#rpm -uvh [package name]
$ tar xzvf home.tar.gz /home
/dev
/etc/rsyslog.conf
39. Generate SSH Keys
logwatch
yum install firefox4
ssh-copy-id root@server6.example.com
ssh-keygen
40. Where are HTML pages hosted?
/var/www/html/
# virsh create /etc/libvert/qemu/vm_file_name.xml
tar czvf /tmp/etc.tar.gz /etc
/var/log/maillog
41. Primary configuration of ssh
rpm --import [public key location]
# star -x -f=home.star
/etc/ssh/sshd_config
service sshd restart
42. Adjust the persistent runlevel
# vi /etc/inittab change - id:3:initdefault:
$ grep -v ^# /etc/nsswitch.conf
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -qa | grep [package name]
43. Email related messages log
# ls -l /usr/share/doc | grep httpd
/var/log/maillog
# renice -10 proc-id
tar cxtv
44. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
*.debug /var/log/debug.log service rsyslog restart
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum grouplist
#iptables -L
45. Process packets being forwarded through the system
rpm -qc httpd
# vi /etc/inittab change - id:3:initdefault:
IPtables forward chain
#virsh destroy domain-id
46. Program to analyze standard log files and send a summary email to root
/dev
#rpm -uvh [package name]
logwatch
tar czvf /tmp/etc.tar.gz /etc
47. Connect with VNC viewer securely
#rpm -qa | grep [package name]
vncviewer -via student@server6 localhost:2
#yum groupremove "group name"
yum search firefox
48. Set a VNC password
ssh-copy-id root@server6.example.com
vncpasswd
/etc/sysconfig/iptables
tar czvf /tmp/etc.tar.gz /etc
49. Edit files with cat until the _EOF is found
/var/www/html/
rpm -qp pkg.rpm
chkconfig vsftpd on
cat >> some_file << _EOF
50. Stores IPtables rules (filter) chains - input forward output are persistant
#uname -r
/etc/sysconfig/iptables
logwatch
IPtables forward chain
Sorry!:) No result found.
Can you answer 50 questions in 15 minutes?
Let me suggest you:
Browse all subjects
Browse all tests
Most popular tests
Major Subjects
Tests & Exams
AP
CLEP
DSST
GRE
SAT
GMAT
Certifications
CISSP go to https://www.isc2.org/
PMP
ITIL
RHCE
MCTS
More...
IT Skills
Android Programming
Data Modeling
Objective C Programming
Basic Python Programming
Adobe Illustrator
More...
Business Skills
Advertising Techniques
Business Accounting Basics
Business Strategy
Human Resource Management
Marketing Basics
More...
Soft Skills
Body Language
People Skills
Public Speaking
Persuasion
Job Hunting And Resumes
More...
Vocabulary
GRE Vocab
SAT Vocab
TOEFL Essential Vocab
Basic English Words For All
Global Words You Should Know
Business English
More...
Languages
AP German Vocab
AP Latin Vocab
SAT Subject Test: French
Italian Survival
Norwegian Survival
More...
Engineering
Audio Engineering
Computer Science Engineering
Aerospace Engineering
Chemical Engineering
Structural Engineering
More...
Health Sciences
Basic Nursing Skills
Health Science Language Fundamentals
Veterinary Technology Medical Language
Cardiology
Clinical Surgery
More...
English
Grammar Fundamentals
Literary And Rhetorical Vocab
Elements Of Style Vocab
Introduction To English Major
Complete Advanced Sentences
Literature
Homonyms
More...
Math
Algebra Formulas
Basic Arithmetic: Measurements
Metric Conversions
Geometric Properties
Important Math Facts
Number Sense Vocab
Business Math
More...
Other Major Subjects
Science
Economics
History
Law
Performing-arts
Cooking
Logic & Reasoning
Trivia
Browse all subjects
Browse all tests
Most popular tests