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. Local host file (contains hostname). Can contain local system DNS.
rpm -qc httpd
vncpasswd
system-config-firewall tui
/etc/hosts
2. GUI install / uninstall with yum
add/remove software GUI
/etc/sysconfig/iptables
rpm -qp pkg.rpm
#iptables -I INPUT -p tcp --dport 21 -j Accept
3. Register on the RHN
cp /home/test1.html /var/www/html/test1.html
#yum
tar xvzf /tmp/etc.tar.gz /etc
rhn_register
4. Start vsftp service
yum remove firefox4
add/remove software GUI
vsftpd restart
yum info firefox4
5. Update a package
tar cxtv
ln -s /pub /var/www/html/pub
yum update
/usr/share/doc/initscripts-*/sysconfig.txt
6. File holding services - ports - protocols assoicated
# ls -l /usr/share/doc | grep httpd
#rpm -qad [package name]
/etc/services
/etc/ssh/sshd_config
7. Create a symbolic link to /pub on the FTP and name it pub
service sshd restart
$ tar xzvf home.tar.gz /home
#virsh destroy domain-id
ln -s /pub /var/www/html/pub
8. Shows network / global network variables: NETWORKING=yes HOSTNAME=shuttlehosti GATEWAY=192.168.88.1
/etc/services
#virsh destroy domain-id
system-config-date
/etc/sysconfig/network
9. Install the star compression tool create an archive with the star tool.
# star -xattr -H=exustar -c -f=home.star /home/
service vncserver restart chkconfig vncserver on
rpm -q pkg.rpm --scripts
#virsh list
10. Copy a public ssh key to server6
/var/log/messages
vncviewer -via student@server6 localhost:2
ssh-copy-id root@server6.example.com
tar xvzf /tmp/etc.tar.gz /etc
11. Program to analyze standard log files and send a summary email to root
add/remove software GUI
logwatch
#virsh list
updating the kernel
12. Messages related to cron log
/etc/sysconfig/resolv.conf
GUI menu system/administratrion/firewall
# vi /etc/inittab change - id:3:initdefault:
/var/log/cron
13. Flush the firewall of all rules
#yum
/var/log/messages
#iptables -F
#ip addr show
14. List VMs
/etc/sysconfig/iptables
#yum groupinstall "group name"
#virsh list
rpm -ql vsftpd
15. tar options for file name - gzip - and bzip2
tar fzj
rpm localinstall pkg.rpm --nogpgcheck
/dev
/etc/rsyslog.conf
16. Extract a star compressed file
service sshd restart
tar cxtv
# star -x -f=home.star
MailTo=student@server6.example.com
17. An example of searching through system logs with interpretation.
# cat /var/log/messages | grep [Ff]ailed | less
yum provides "*/sbin/sshd"
#uname -r
rhn_register
18. Kill a VM
#virsh destroy domain-id
/etc/sysconfig/iptables
ssh-copy-id root@server6.example.com
ln -s /pub /var/www/html/pub
19. Generate SSH Keys
rpm --import [public key location]
yum provides "*/sbin/sshd"
cat >> some_file << _EOF
ssh-keygen
20. Display packages that match the pathname
vncviewer -via student@server6 localhost:2
yum provides
#rpm -ivh [package name]
system-config-firewall tui
21. See the configuration files installed with a package named httpd
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
# yum
rpm --import [public key location]
rpm -qc httpd
22. Set process priority with renice - -20 highest - 20 lowest - 0 is default
#yum install [package name]
# renice -10 proc-id
# star -xattr -H=exustar -c -f=home.star /home/
# cat /var/log/messages | grep [Ff]ailed | less
23. GUI File Manager
#iptables -F
yum search firefox
# cat /var/log/messages | grep [Ff]ailed | less
nautilus
24. Search for a package with firefox in the description
#rpm -ivh [package name]
# star -x -f=home.star
IPtables forward chain
yum search firefox
25. Disk Utility Command
cp /home/test1.html /var/www/html/test1.html
# vi /etc/inittab change - id:3:initdefault:
palimpsest
#yum groupremove "group name"
26. Install the VNC server package
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/var/www/html/
#rpm -qad [package name]
yum install tigervnc-server
27. Searches for page within the #man yum
# star -xattr -H=exustar -c -f=home.star /home/
#yum grouplist
/etc/sysconfig/iptables
man search :/repository
28. Query information files with RPM
/etc/services
#virsh list
rpm localinstall pkg.rpm --nogpgcheck
#rpm -qi [package name]
29. Grep with ignoring case
# grep -i
rpm -ql vsftpd
vncviewer -via student@server6 localhost:2
vsftpd restart
30. Edit files with cat until the _EOF is found
ssh-copy-id root@server6.example.com
cat >> some_file << _EOF
updating the kernel
/var/www/html/
31. Repo config file
man search :/repository
system-config-date
[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
rpm --import [public key location]
32. Location of repo's
/etc/yum.repos.d/
yum install tigervnc-server
rsync -PHR /home/test1.html root@server6.example.com:/var/pub
yum update
33. Email related messages log
/etc/rsyslog.conf
service vncserver restart chkconfig vncserver on
yum provides "*/sbin/sshd"
/var/log/maillog
34. Install with RPM
# grep -i
/var/log/maillog
ssh-keygen
#rpm -ivh [package name]
35. Import a public key
rpm --import [public key location]
man search :/repository
/etc/services
yum search firefox
36. Persist FTP on boot
chkconfig vsftpd on
yum install tigervnc-server
/etc/sysconfig/iptables
#rpm -qac [package name]
37. Restart the ntpd service
#rpm -ivh [package name]
service ntpd restart
cat >> some_file << _EOF
ssh-keygen
38. FTP package used in RHEL 6
vsftpd
ntpdate -b instructor
# cat /var/log/messages | grep [Ff]ailed | less
rpm -qc httpd
39. Set a VNC password
vncpasswd
IPtables input chain
/var/log/messages
chkconfig httpd on
40. Remove a package with yum
#yum groupremove "group name"
#uname -r
#yum remove [package name]
rpm -ql vsftpd
41. handles dependencies while RPMs do not uses preconfigured repos
service vncserver restart chkconfig vncserver on
/etc/sysconfig/vncservers rpm -ql tigervnc-server
/var/lib/rpm
#yum
42. Enable anonymous users - disable local accounts - and disable any uploads to the FTP server
tar cxtv
vncviewer -via student@server6 localhost:2
nautilus
/etc/vsftpd/vsftpd.conf rpm -ql vsftpd
43. Local file copy of /home/test1.html to /var/www/html/test1.html
rpm -qc httpd
cp /home/test1.html /var/www/html/test1.html
yum provides "*/sbin/sshd"
*.debug /var/log/debug.log service rsyslog restart
44. original DNS config file - still used
lftp student@server6 httpd configuration /etc/httpd/conf/httpd.conf rpm -ql httpd
[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
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
/etc/sysconfig/resolv.conf
45. Start a VM
# virsh create /etc/libvert/qemu/vm_file_name.xml
/var/log/messages
/var/log/cron
tar xvzf /tmp/etc.tar.gz /etc
46. Remove a package named firefox4
MailTo=student@server6.example.com
/var/log/cron
system-config-firewall (Push the enable button and check the appropriate boxes. Check.)
yum remove firefox4
47. Process packets being forwarded through the system
vncpasswd
rpm -q pkg.rpm --scripts
IPtables forward chain
tar xvzf /tmp/etc.tar.gz /etc
48. Process packets coming into the system
IPtables input chain
# star -xattr -H=exustar -c -f=home.star /home/
Fully Qualified Domain Name
service vncserver restart chkconfig vncserver on
49. Query configuration files with RPM
#rpm -qac [package name]
/etc/sysconfig/network
yum provides
/etc/sysconfig/iptables
50. Where are HTML pages hosted?
$ tar czvf home.tar.gz /home
#virsh list
/var/www/html/
yum install firefox4