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. Uninstall a package group with yum
man search :/repository
$ grep -v ^# /etc/nsswitch.conf
#yum groupremove "group name"
#yum remove [package name]
2. Set process priority with renice - -20 highest - 20 lowest - 0 is default
/etc/yum.repos.d/
$ grep -v ^# /etc/nsswitch.conf
# renice -10 proc-id
yum search firefox
3. fqdn
/usr/share/doc/initscripts-*/sysconfig.txt
#ip addr show
Fully Qualified Domain Name
system-config-firewall tui
4. Get information about a package named firefox4
yum remove firefox4
# ls -l /usr/share/doc | grep httpd
yum info firefox4
ln -s /pub /var/www/html/pub
5. Persist the web server on boot
chkconfig httpd on
#iptables -F
# renice -10 proc-id
rpm --import [public key location]
6. Disks available for partitions
/dev
rsync /home root@server6.example.com:/tmp
# ls -l /usr/share/doc | grep httpd
#yum remove [package name]
7. All messages sent at info priority or higher
/etc/sysconfig/iptables
/var/log/messages
yum provides "*/sbin/sshd"
#yum remove [package name]
8. Restart the ntpd service
/etc/rsyslog.conf
$ tar xzvf home.tar.gz /home
rsync /home/test1.html root@server6.example.com:/var/pub
service ntpd restart
9. Show IP address with the IP command
rpm --import [public key location]
rsync -a /home/test1.html root@server6.example.com:/var/pub
#ip addr show
chkconfig httpd on
10. Persist FTP on boot
#yum install [package name]
2>&1
/etc/sysconfig/iptables
chkconfig vsftpd on
11. handles dependencies while RPMs do not uses preconfigured repos
#yum
/etc/sysconfig/network
add/remove software GUI
/etc/hosts
12. Search for command in the doc directory
/var/log/messages
ssh-copy-id root@server6.example.com
# ls -l /usr/share/doc | grep httpd
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
13. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
ssh-keygen
yum install tigervnc-server
IPtables forward chain
14. Remote file copy /home/test1.html to the /var/pub directory on server6
cp /home/test1.html /var/www/html/test1.html
rpm -qc httpd
rpm -ql vsftpd
rsync /home/test1.html root@server6.example.com:/var/pub
15. Search for a package within all packages
vsftpd restart
.spec
/etc/sysconfig/iptables
#rpm -qa | grep [package name]
16. Basic add rule for iptables not persistant unless saved with #/etc/init.d/iptables save
add/remove software GUI
ssh-keygen
#iptables -I INPUT -p tcp --dport 21 -j Accept
rpm -ql vsftpd
17. Query configuration files with RPM
#rpm -qac [package name]
#yum
insert as opposed to append
/var/www/html/
18. Process packets coming into the system
yum search firefox
yum install firefox4
/var/log/maillog
IPtables input chain
19. Start the GUI for date configuration
#yum install [package name]
system-config-firewall tui
#rpm -qac [package name]
system-config-date
20. File holding services - ports - protocols assoicated
/var/www/html/
/etc/services
#yum
# star -xattr -H=exustar -c -f=home.star /home/
21. List VMs
/var/lib/rpm
/etc/yum.repos.d
yum install firefox4
#virsh list
22. Remove a package with yum
yum remove firefox4
yum provides "*/sbin/sshd"
#yum remove [package name]
#yum install [package name]
23. Send all debug level messages to /var/log/debug.log
palimpsest
*.debug /var/log/debug.log service rsyslog restart
tar czvf /tmp/etc.tar.gz /etc
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
24. Contains RPM database
/var/lib/rpm
$ tar xzvf home.tar.gz /home
ntpdate -b instructor
tar cxtv
25. Install star
#rpm -qad [package name]
yum install tigervnc-server
# yum
vsftpd
26. Rpm upgrade package u upgrade v verbose h hash
#yum info [package name]
#rpm -uvh [package name]
/var/log/maillog
/dev
27. Extract /tmp/etc.tar.gz to /etc
*.debug /var/log/debug.log service rsyslog restart
/var/log/cron
tar xvzf /tmp/etc.tar.gz /etc
#rpm -qac [package name]
28. Repos for yum
#yum install [package name]
/etc/yum.repos.d
tar xvzf /tmp/etc.tar.gz /etc
vncpasswd
29. Grep for lines that do not match (-v)
/var/www/html/
$ grep -v ^# /etc/nsswitch.conf
tar czvf /tmp/etc.tar.gz /etc
rpm --import [public key location]
30. Append add to the end of the IPtables rules. insert will put rule above the deny all rule.
#yum install [package name]
yum install tigervnc-server
/var/www/html/
insert as opposed to append
31. Get more information on a package availale through yum
#yum info [package name]
yum info firefox4
rpm --import [public key location]
/etc/hosts
32. Redirect errors to std out
rpm -ql vsftpd
tar cxtv
2>&1
yum install tigervnc-server
33. Update a package
/usr/share/doc/initscripts-*/sysconfig.txt
yum update
rpm localinstall pkg.rpm --nogpgcheck
# ls -l /usr/share/doc | grep httpd
34. FTP package used in RHEL 6
/var/log/cron
vsftpd
/var/www/html/
$ grep -v ^# /etc/nsswitch.conf
35. List installed and available packages
#iptables -I INPUT -p tcp --dport 21 -j Accept
yum list
/etc/sysconfig/vncservers rpm -ql tigervnc-server
#ip addr show
36. Display packages that match the pathname
yum provides
add/remove software GUI
IPtables input chain
rhn_register
37. Create a symbolic link to /pub on the FTP and name it pub
system-config-firewall tui
ln -s /pub /var/www/html/pub
$ tar czvf home.tar.gz /home
add/remove software GUI
38. 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
nautilus
/dev
vsftpd restart
39. Determine which package provides SSH
yum info firefox4
nautilus
yum provides "*/sbin/sshd"
vncviewer -via student@server6 localhost:2
40. Edit files with cat until the _EOF is found
cat >> some_file << _EOF
vncviewer -via student@server6 localhost:2
# renice -10 proc-id
name-version-release.architecture.rpm
41. Create a gzip-compressed backup of /etc in /tmp
#yum grouplist
#ip addr show
# ls -l /usr/share/doc | grep httpd
tar czvf /tmp/etc.tar.gz /etc
42. Local host file (contains hostname). Can contain local system DNS.
yum install firefox4
#iptables -I INPUT -p tcp --dport 21 -j Accept
/etc/hosts
chkconfig vsftpd on
43. Gets kernel version and release number
#rpm -qad [package name]
tar xvzf /tmp/etc.tar.gz /etc
#uname -r
/var/lib/rpm
44. System config firewall
/usr/share/doc/initscripts-*/sysconfig.txt
yum install tigervnc-server
GUI menu system/administratrion/firewall
vncpasswd
45. Kill a VM
yum info firefox4
#virsh destroy domain-id
#rpm -qa | grep [package name]
#yum info [package name]
46. Configuration for VNC
/etc/sysconfig/vncservers rpm -ql tigervnc-server
vsftpd restart
/var/log/maillog
#rpm -qac [package name]
47. original DNS config file - still used
rpm localinstall pkg.rpm --nogpgcheck
yum search firefox
/etc/sysconfig/resolv.conf
name-version-release.architecture.rpm
48. Backup a home directory on desktop6 to /tmp on server6
rsync /home root@server6.example.com:/tmp
add/remove software GUI
ip masqu
#yum
49. Connect with VNC viewer securely
#ip addr show
vncviewer -via student@server6 localhost:2
# yum
yum remove firefox4
50. Restart ssh services
service sshd restart
#yum groupremove "group name"
man search :/repository
cp /home/test1.html /var/www/html/test1.html