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. File containing information to create rpm package - RPM packages contain these files: libraries or application - any documentation - any configuration files
.spec
rpm --import [public key location]
#yum info [package name]
#iptables -L
2. Restart vnc and persist on boot
service vncserver restart chkconfig vncserver on
rpm localinstall pkg.rpm --nogpgcheck
yum info firefox4
# yum
3. Create a gzip-compressed backup of /etc in /tmp
add/remove software GUI
tar czvf /tmp/etc.tar.gz /etc
#iptables -I INPUT -p tcp --dport 21 -j Accept
updating the kernel
4. List iptables
rpm -ql vsftpd
#iptables -L
#rpm -qac [package name]
/etc/yum.repos.d
5. Disks available for partitions
/var/log/messages
#yum remove [package name]
/dev
# renice -10 proc-id
6. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/sysconfig/vncservers rpm -ql tigervnc-server
yum provides
ln -s /pub /var/www/html/pub
/etc/sysconfig/iptables
7. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/sysconfig/iptables
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
#iptables -F
#virsh destroy domain-id
8. Delete a rule from iptables
#iptables -D INPUT -p tcp --dport 21 -j accpet
vsftpd
yum provides "*/sbin/sshd"
#rpm -ivh [package name]
9. Email related messages log
/var/log/maillog
ntpdate -b instructor
service ntpd restart
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
10. GUI File Manager
rpm -q pkg.rpm --scripts
/etc/sysconfig/iptables
nautilus
yum remove firefox4
11. Create a tar ball with gzip compression of the home dir
$ tar czvf home.tar.gz /home
#yum remove [package name]
# yum
#iptables -D INPUT -p tcp --dport 21 -j accpet
12. Determine which package provides SSH
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
vsftpd restart
chkconfig vsftpd on
yum provides "*/sbin/sshd"
13. 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]
$ tar czvf home.tar.gz /home
#uname -r
14. Extract /tmp/etc.tar.gz to /etc
# ls -l /usr/share/doc | grep httpd
yum install tigervnc-server
tar xvzf /tmp/etc.tar.gz /etc
updating the kernel
15. Install the star compression tool create an archive with the star tool.
# virsh create /etc/libvert/qemu/vm_file_name.xml
vncpasswd
# star -xattr -H=exustar -c -f=home.star /home/
insert as opposed to append
16. Install a package with yum
#yum install [package name]
#iptables -D INPUT -p tcp --dport 21 -j accpet
IPtables output chain
ip masqu
17. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
#ip addr show
# cat /var/log/messages | grep [Ff]ailed | less
# vi /etc/inittab change - id:3:initdefault:
18. Search for a package within all packages
#yum grouplist
ln -s /pub /var/www/html/pub
cp /home/test1.html /var/www/html/test1.html
#rpm -qa | grep [package name]
19. Messages related to cron log
#rpm -qad [package name]
service ntpd restart
/var/log/cron
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
20. FTP package used in RHEL 6
vsftpd
#iptables -D INPUT -p tcp --dport 21 -j accpet
IPtables output chain
/etc/rsyslog.conf
21. Grep for lines that do not match (-v)
/etc/sysconfig/iptables
$ grep -v ^# /etc/nsswitch.conf
tar cxtv
2>&1
22. Disk Utility Command
/usr/share/doc/initscripts-*/sysconfig.txt
palimpsest
cat >> some_file << _EOF
tar fzj
23. Persist the web server on boot
rhn_register
chkconfig httpd on
palimpsest
$ tar czvf home.tar.gz /home
24. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
Fully Qualified Domain Name
IPtables output chain
logwatch
25. Register on the RHN
# virsh create /etc/libvert/qemu/vm_file_name.xml
/etc/ssh/sshd_config
# star -xattr -H=exustar -c -f=home.star /home/
rhn_register
26. An example of searching through system logs with interpretation.
/etc/yum.repos.d/
/etc/yum.repos.d
# cat /var/log/messages | grep [Ff]ailed | less
#rpm -qa | grep [package name]
27. Get more information on a package availale through yum
#iptables -I INPUT -p tcp --dport 21 -j Accept
#rpm -uvh [package name]
yum install tigervnc-server
#yum info [package name]
28. GUI install / uninstall with yum
tar xvzf /tmp/etc.tar.gz /etc
#virsh list
rpm --import [public key location]
add/remove software GUI
29. Backup a home directory on desktop6 to /tmp on server6
#yum
$ tar xzvf home.tar.gz /home
rsync /home root@server6.example.com:/tmp
rpm -qp pkg.rpm
30. Configuration file for system logs
yum provides "*/sbin/sshd"
yum list
/etc/rsyslog.conf
#rpm -qa | grep [package name]
31. Package file named pkg.rpm
rpm -qp pkg.rpm
$ grep -v ^# /etc/nsswitch.conf
Fully Qualified Domain Name
#iptables -D INPUT -p tcp --dport 21 -j accpet
32. List VMs
service vncserver restart chkconfig vncserver on
yum remove firefox4
rsync /home root@server6.example.com:/tmp
#virsh list
33. fqdn
/etc/sysconfig/iptables
# ls -l /usr/share/doc | grep httpd
Fully Qualified Domain Name
vncviewer -via student@server6 localhost:2
34. Local host file (contains hostname). Can contain local system DNS.
ssh-copy-id root@server6.example.com
/etc/hosts
#yum grouplist
# yum
35. Process packets coming into the system
IPtables input chain
/etc/rsyslog.conf
logwatch
/var/www/html/
36. Uninstall a package group with yum
$ tar czvf home.tar.gz /home
#yum groupremove "group name"
# star -x -f=home.star
# yum
37. tar options for file name - gzip - and bzip2
.spec
#rpm -ivh [package name]
[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
38. Start a VM
/var/log/secure
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum install [package name]
vsftpd restart
39. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
service ntpd restart
palimpsest
/var/log/secure
/etc/sysconfig/network
40. Process packets being forwarded through the system
IPtables forward chain
/var/log/messages
# grep -i
[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
41. List scripts that can be run after installation of pkg.rpm
/var/log/cron
rpm -q pkg.rpm --scripts
GUI menu system/administratrion/firewall
#rpm -uvh [package name]
42. Start GUI for Firewall
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
yum provides
system-config-date
insert as opposed to append
43. Shell config tool gropued like GUI firewall configurater.
#yum grouplist
system-config-firewall tui
/etc/services
tar fzj
44. Get a list of package groups from yum
/var/log/messages
rpm -ql vsftpd
#yum grouplist
ssh-keygen
45. Sync ntp time with the instructor
ssh-keygen
ntpdate -b instructor
#yum
*.debug /var/log/debug.log service rsyslog restart
46. Where are HTML pages hosted?
#yum remove [package name]
rsync /home/test1.html root@server6.example.com:/var/pub
/var/www/html/
#iptables -L
47. Redirect errors to std out
# ls -l /usr/share/doc | grep httpd
/etc/services
#yum info [package name]
2>&1
48. Update a package
# virsh create /etc/libvert/qemu/vm_file_name.xml
yum update
#iptables -L
cp /home/test1.html /var/www/html/test1.html
49. Copy a public ssh key to server6
IPtables output chain
tar fzj
ssh-copy-id root@server6.example.com
MailTo=student@server6.example.com
50. Rpm upgrade package u upgrade v verbose h hash
#rpm -uvh [package name]
/etc/hosts
rpm -qp pkg.rpm
#yum
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