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. Install with RPM
yum provides "*/sbin/sshd"
# grep -i
yum search firefox
#rpm -ivh [package name]
2. Local host file (contains hostname). Can contain local system DNS.
chkconfig vsftpd on
ip masqu
/var/log/maillog
/etc/hosts
3. Remote file copy /home/test1.html to the /var/pub directory on server6
rsync /home/test1.html root@server6.example.com:/var/pub
# virsh create /etc/libvert/qemu/vm_file_name.xml
#yum grouplist
vncviewer -via student@server6 localhost:2
4. Configuration for VNC
# yum
tar xvzf /tmp/etc.tar.gz /etc
/etc/sysconfig/vncservers rpm -ql tigervnc-server
# star -x -f=home.star
5. Install a package with yum
#yum install [package name]
$ tar xzvf home.tar.gz /home
rpm --import [public key location]
system-config-date
6. Process packets coming out of the system
#iptables -L
IPtables output chain
ip masqu
# grep -i
7. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/ssh/sshd_config
2>&1
/etc/sysconfig/iptables
8. handles dependencies while RPMs do not uses preconfigured repos
rpm --import [public key location]
#yum
ln -s /pub /var/www/html/pub
#yum groupinstall "group name"
9. Disks available for partitions
# vi /etc/inittab change - id:3:initdefault:
/etc/hosts
/dev
rsync /home root@server6.example.com:/tmp
10. Copy a public ssh key to server6
ssh-copy-id root@server6.example.com
/etc/sysconfig/vncservers rpm -ql tigervnc-server
logwatch
/etc/hosts
11. Stores IPtables rules (filter) chains - input forward output are persistant
/etc/yum.repos.d
#rpm -qi [package name]
ssh-copy-id root@server6.example.com
/etc/sysconfig/iptables
12. Grep for lines that do not match (-v)
rpm localinstall pkg.rpm --nogpgcheck
$ grep -v ^# /etc/nsswitch.conf
#iptables -I INPUT -p tcp --dport 21 -j Accept
logwatch
13. Search for a package within all packages
#rpm -qa | grep [package name]
#yum groupinstall "group name"
vncpasswd
/etc/sysconfig/iptables
14. Get information about a package named firefox4
$ tar czvf home.tar.gz /home
yum info firefox4
#yum remove [package name]
# cat /var/log/messages | grep [Ff]ailed | less
15. Start a VM
#virsh destroy domain-id
#virsh list
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
# virsh create /etc/libvert/qemu/vm_file_name.xml
16. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
$ grep -v ^# /etc/nsswitch.conf
#yum grouplist
# ls -l /usr/share/doc | grep httpd
/etc/sysconfig/network
17. Update a package
yum update
# star -x -f=home.star
name-version-release.architecture.rpm
/etc/ssh/sshd_config
18. Query configuration files with RPM
#rpm -qac [package name]
yum provides "*/sbin/sshd"
palimpsest
#iptables -D INPUT -p tcp --dport 21 -j accpet
19. Send all debug level messages to /var/log/debug.log
insert as opposed to append
rpm -q pkg.rpm --scripts
*.debug /var/log/debug.log service rsyslog restart
palimpsest
20. Extract a star compressed file
# virsh create /etc/libvert/qemu/vm_file_name.xml
# star -x -f=home.star
yum provides "*/sbin/sshd"
palimpsest
21. Create a symbolic link to /pub on the FTP and name it pub
ln -s /pub /var/www/html/pub
tar fzj
$ grep -v ^# /etc/nsswitch.conf
/var/log/maillog
22. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
/etc/sysconfig/network
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
/var/lib/rpm
23. Process packets being forwarded through the system
rsync -a /home/test1.html root@server6.example.com:/var/pub
rsync /home root@server6.example.com:/tmp
IPtables forward chain
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
24. Install star
chkconfig vsftpd on
#ip addr show
# yum
#virsh destroy domain-id
25. Start the GUI for date configuration
vsftpd
#yum groupinstall "group name"
yum update
system-config-date
26. Local file copy of /home/test1.html to /var/www/html/test1.html
/var/www/html/
GUI menu system/administratrion/firewall
/etc/sysconfig/iptables
cp /home/test1.html /var/www/html/test1.html
27. Get more information on a package availale through yum
#iptables -I INPUT -p tcp --dport 21 -j Accept
#yum info [package name]
*.debug /var/log/debug.log service rsyslog restart
/etc/services
28. Extract /tmp/etc.tar.gz to /etc
# ls -l /usr/share/doc | grep httpd
tar xvzf /tmp/etc.tar.gz /etc
palimpsest
[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. Install a pkg.rpm locally
$ grep -v ^# /etc/nsswitch.conf
/etc/services
IPtables output chain
rpm localinstall pkg.rpm --nogpgcheck
30. Connect with VNC viewer securely
[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
chkconfig httpd on
updating the kernel
vncviewer -via student@server6 localhost:2
31. Remote copy /home/test1.html to the /var/pub directory on server6 with progress - preserving hard links - and using relative path names
yum update
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
vsftpd restart
yum info firefox4
32. 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
#virsh destroy domain-id
#yum groupremove "group name"
# grep -i
33. Determine which package provides SSH
ssh-copy-id root@server6.example.com
insert as opposed to append
$ tar czvf home.tar.gz /home
yum provides "*/sbin/sshd"
34. Messages related to cron log
yum remove firefox4
/var/log/cron
#rpm -qad [package name]
#ip addr show
35. Create a gzip-compressed backup of /etc in /tmp
#yum install [package name]
/var/log/cron
/dev
tar czvf /tmp/etc.tar.gz /etc
36. Query all documentation with RPM
IPtables input chain
#rpm -qad [package name]
service vncserver restart chkconfig vncserver on
IPtables forward chain
37. Edit files with cat until the _EOF is found
$ grep -v ^# /etc/nsswitch.conf
chkconfig vsftpd on
cat >> some_file << _EOF
#rpm -qac [package name]
38. Import a public key
vncpasswd
/etc/ssh/sshd_config
yum install tigervnc-server
rpm --import [public key location]
39. Program to analyze standard log files and send a summary email to root
#rpm -uvh [package name]
logwatch
cp /home/test1.html /var/www/html/test1.html
#ip addr show
40. RPM package naming
*.debug /var/log/debug.log service rsyslog restart
vncpasswd
name-version-release.architecture.rpm
cp /home/test1.html /var/www/html/test1.html
41. Remove a package named firefox4
yum remove firefox4
vncviewer -via student@server6 localhost:2
#yum install [package name]
#yum groupinstall "group name"
42. Configuration file for system logs
/etc/rsyslog.conf
/etc/services
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
ssh-copy-id root@server6.example.com
43. Get a list of package groups from yum
#virsh destroy domain-id
#yum grouplist
ssh-copy-id root@server6.example.com
# virsh create /etc/libvert/qemu/vm_file_name.xml
44. See the configuration files installed with a package named httpd
#virsh list
nautilus
rpm -qc httpd
vncpasswd
45. Package file named pkg.rpm
#yum groupremove "group name"
/dev
.spec
rpm -qp pkg.rpm
46. Set process priority with renice - -20 highest - 20 lowest - 0 is default
#virsh list
system-config-date
/etc/sysconfig/resolv.conf
# renice -10 proc-id
47. Documentation about sysconfig network scripts
name-version-release.architecture.rpm
/etc/yum.repos.d
#rpm -qi [package name]
/usr/share/doc/initscripts-*/sysconfig.txt
48. Adjust the persistent runlevel
yum provides
/usr/share/doc/initscripts-*/sysconfig.txt
# vi /etc/inittab change - id:3:initdefault:
vncpasswd
49. Restart the ntpd service
#uname -r
# ls -l /usr/share/doc | grep httpd
service ntpd restart
yum install firefox4
50. Remote file copy /home/test1.html to the /var/pub directory on server6 while preserving metadata
# grep -i
#iptables -D INPUT -p tcp --dport 21 -j accpet
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
rsync -a /home/test1.html root@server6.example.com:/var/pub
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