SlideShare a Scribd company logo
1 of 11
Download to read offline
RedHat EX200
Red Hat Certified System Administrator–RHCSA
Version: 4.0
QUESTION NO: 1 CORRECT TEXT
Configure your Host Name, IP Address, Gateway and DNS.
Host name: station.domain40.example.com
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24
Gateway172.24.40.1
DNS:172.24.40.1
Answer: # cd /etc/syscofig/network-scripts/
# ls
# vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40
GATEWAY=172.24.40.1
DNS1=172.24.40.1
# vim /etc/sysconfig/network
(Configure Host Name)
HOSTNAME= station.domain40.example.com
OR
Graphical Interfaces:
System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim
/etc/sysconfig/network
(Configure Host Name)
QUESTION NO: 2 CORRECT TEXT
Add 3 users: harry, natasha, tom.
The requirements: The Additional group of the two users: harry, Natasha is the admin group. The
user: tom's login shell should be non-interactive.
Answer: # useradd -G admin harry
# useradd -G admin natasha
# useradd -s /sbin/nologin tom
# id harry;id Natasha (Show additional group)
# cat /etc/passwd
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 2
(Show the login shell)
OR
# system-config-users
QUESTION NO: 3 CORRECT TEXT
Create a catalog under /home named admins. Its respective group is requested to be the admin
group. The group users could read and write, while other users are not allowed to access it. The
files created by users from the same group should also be the admin group.
Answer: # cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/
QUESTION NO: 4 CORRECT TEXT
Configure a task: plan to run echo hello command at 14:23 every day.
Answer: # which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)
QUESTION NO: 5 CORRECT TEXT
Find the files owned by harry, and copy it to catalog: /opt/dir
Answer: # cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ ;
QUESTION NO: 6 CORRECT TEXT
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the
sequence is requested as the same as /etc/testfile.
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 3
Answer: # cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile
QUESTION NO: 7 CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect
the original swap partition.
Answer: # fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and
theextended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)
QUESTION NO: 8 CORRECT TEXT
Create a user named alex, and the user id should be 1234, and the password should be alex111.
Answer: # useradd -u 1234 alex
# passwd alex
alex111
alex111
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 4
OR
echo alex111|passwd -stdin alex
QUESTION NO: 9 CORRECT TEXT
Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you
to configure yum direct to the already existing file server. )
Answer: # cd /etc/yum.repos.d
# vim local.repo
[local]
name=local.repo
baseurl=file:///mnt
enabled=1
gpgcheck=0
# yum makecache
# yum install -y vsftpd
# service vsftpd restart
# chkconfig vsftpd on
# chkconfig --list vsftpd
# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
QUESTION NO: 10 CORRECT TEXT
Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.
Answer: # yum install -y httpd
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
<VirtualHost 192.168.0.254:80>
DocumentRoot /var/www/html/
ServerName station.domain40.example.com
</VirtualHost>
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 5
QUESTION NO: 11 CORRECT TEXT
Configure the verification mode of your host account and the password as LDAP. And it can
ldapuser40. The password is set as "password". And the certificate login successfully through
can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory
unless you configure the autofs in the following questions.
Answer: system-config-authentication
LDAP Server: ldap//instructor.example.com (In domain form, not write IP)
OR
# yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd)
# system-config-authentication
1.User Account Database: LDAP
2.LDAP Search Base DN: dc=example,dc=com
3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 4.Download CA
Certificate
5.Authentication Method: LDAP password
6.Apply
getent passwd ldapuser40
QUESTION NO: 12 CORRECT TEXT
Configure autofs to make sure after login successfully, it has the home directory autofs, which is
shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users
can use the home directory normally.
Answer: # chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 6
QUESTION NO: 13 CORRECT TEXT
Configure the system synchronous as 172.24.40.10.
Answer: Graphical Interfaces:
System-->Administration-->Date & Time
OR
# system-config-date
QUESTION NO: 14 CORRECT TEXT
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating
range should set between 280 and 320. (This logical volume has been mounted in advance.)
Answer: # vgdisplay
(Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend)
# lvdisplay (Check lv)
# lvextend -L +110M /dev/vg2/lv2
# resize2fs /dev/vg2/lv2
mount -a
(Verify)
------------------------------------------------------------------------------- (Decrease lvm)
# umount /media
# fsck -f /dev/vg2/lv2
# resize2fs -f /dev/vg2/lv2 100M
# lvreduce -L 100M /dev/vg2/lv2
# mount -a
# lvdisplay (Verify)
OR
# e2fsck -f /dev/vg1/lvm02
# resize2fs -f /dev/vg1/lvm02
# mount /dev/vg1/lvm01 /mnt
# lvreduce -L 1G -n /dev/vg1/lvm02
# lvdisplay (Verify)
QUESTION NO: 15 CORRECT TEXT
Create a volume group, and set 16M as a extends. And divided a volume group containing 50
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 7
extends on volume group lv, make it as ext4 file system, and mounted automatically under
/mnt/data.
Answer: # pvcreate /dev/sda7 /dev/sda8
# vgcreate -s 16M vg1 /dev/sda7 /dev/sda8
# lvcreate -l 50 -n lvm02
# mkfs.ext4 /dev/vg1/lvm02
# blkid /dev/vg1/lv1
# vim /etc/fstab
# mkdir -p /mnt/data
UUID=xxxxxxxx /mnt/data ext4 defaults 0 0
# vim /etc/fstab
# mount -a
# mount
(Verify)
QUESTION NO: 16 CORRECT TEXT
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the
old kernel available.
Answer: # cat /etc/grub.conf
# cd /boot
# lftp it
# get dr/dom/kernel-xxxx.rpm
# rpm -ivh kernel-xxxx.rpm
# vim /etc/grub.conf
default=0
QUESTION NO: 17 CORRECT TEXT
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and
which take effect automatically at boot-start.
Answer: # fdisk /dev/vda
n
+512M
w
# partprobe /dev/vda
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 8
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a
QUESTION NO: 18 CORRECT TEXT
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends
on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under
/mnt/data. And the size of the floating range should set between 380M and 400M.
Answer: # fdisk
# partprobe
# pvcreate /dev/vda6
# vgcreate -s 8M vg1 /dev/vda6 -s
# lvcreate -n lvshare -l 50 vg1 -l
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab
/dev/vg1/lvshare /mnt/data ext4 defaults 0 0
# mount -a
# df -h
QUESTION NO: 19 CORRECT TEXT
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under
/media/cdrom and which take effect automatically at boot-start.
Answer: # cd /root; wget ftp://192.168.0.254/pub/boot.iso
# mkdir -p /media/cdrom
# vim /etc/fstab
/root/boot.iso /media/cdrom iso9660 defaults,loop 0 0
# mount -a
mount [-t vfstype] [-o options] device dir
QUESTION NO: 20 CORRECT TEXT
Add admin group and set gid=600
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 9
Answer: # groupadd -g 600 admin
QUESTION NO: 21 CORRECT TEXT
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
Answer: # useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat
QUESTION NO: 22 CORRECT TEXT
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat
Answer: # useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
QUESTION NO: 23 CORRECT TEXT
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2
without any permission.
Answer: # cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
# ls -l
-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 10
QUESTION NO: 24 CORRECT TEXT
Configure a task: plan to run echo "file" command at 14:23 every day.
Answer: (a) Created as administrator
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"
RedHat EX200 Exam
"Pass Any Exam. Any Time." - www.actualtests.com 11

More Related Content

What's hot

Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike SteenbergenMeet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
distributed matters
 
RESTful services on IBM Domino/XWork
RESTful services on IBM Domino/XWorkRESTful services on IBM Domino/XWork
RESTful services on IBM Domino/XWork
John Dalsgaard
 

What's hot (20)

Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
HashiCorp Vault Workshop:幫 Credentials 找個窩
HashiCorp Vault Workshop:幫 Credentials 找個窩HashiCorp Vault Workshop:幫 Credentials 找個窩
HashiCorp Vault Workshop:幫 Credentials 找個窩
 
Ansible roles done right
Ansible roles done rightAnsible roles done right
Ansible roles done right
 
RHCSA EX200 - Summary
RHCSA EX200 - SummaryRHCSA EX200 - Summary
RHCSA EX200 - Summary
 
Ansible 101
Ansible 101Ansible 101
Ansible 101
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Red Hat OpenStack 17 저자직강+스터디그룹_1주차Red Hat OpenStack 17 저자직강+스터디그룹_1주차
Red Hat OpenStack 17 저자직강+스터디그룹_1주차
 
Configuration Management in Ansible
Configuration Management in Ansible Configuration Management in Ansible
Configuration Management in Ansible
 
Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike SteenbergenMeet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
Meet Spilo, Zalando’s HIGH-AVAILABLE POSTGRESQL CLUSTER - Feike Steenbergen
 
RHCE FINAL Questions and Answers
RHCE FINAL Questions and AnswersRHCE FINAL Questions and Answers
RHCE FINAL Questions and Answers
 
Enable Domino Data Access Services (DAS)
Enable Domino Data Access Services (DAS)Enable Domino Data Access Services (DAS)
Enable Domino Data Access Services (DAS)
 
Open stack ha design & deployment kilo
Open stack ha design & deployment   kiloOpen stack ha design & deployment   kilo
Open stack ha design & deployment kilo
 
FreeIPA - Attacking the Active Directory of Linux
FreeIPA - Attacking the Active Directory of LinuxFreeIPA - Attacking the Active Directory of Linux
FreeIPA - Attacking the Active Directory of Linux
 
Ansible
AnsibleAnsible
Ansible
 
Ansible Introduction
Ansible Introduction Ansible Introduction
Ansible Introduction
 
Domino Adminblast
Domino AdminblastDomino Adminblast
Domino Adminblast
 
RESTful services on IBM Domino/XWork
RESTful services on IBM Domino/XWorkRESTful services on IBM Domino/XWork
RESTful services on IBM Domino/XWork
 
Red Hat OpenStack 17 저자직강+스터디그룹_2주차
Red Hat OpenStack 17 저자직강+스터디그룹_2주차Red Hat OpenStack 17 저자직강+스터디그룹_2주차
Red Hat OpenStack 17 저자직강+스터디그룹_2주차
 
aclpwn - Active Directory ACL exploitation with BloodHound
aclpwn - Active Directory ACL exploitation with BloodHoundaclpwn - Active Directory ACL exploitation with BloodHound
aclpwn - Active Directory ACL exploitation with BloodHound
 
The FatRat
The FatRatThe FatRat
The FatRat
 

Similar to Ex200

Presentation iv implementasi 802x eap tls peap mscha pv2
Presentation iv implementasi  802x eap tls peap mscha pv2Presentation iv implementasi  802x eap tls peap mscha pv2
Presentation iv implementasi 802x eap tls peap mscha pv2
Hell19
 

Similar to Ex200 (20)

PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
PuppetConf 2016: The Challenges with Container Configuration – David Lutterko...
 
Challenges of container configuration
Challenges of container configurationChallenges of container configuration
Challenges of container configuration
 
Linux administration ii-parti
Linux administration ii-partiLinux administration ii-parti
Linux administration ii-parti
 
Dev ops
Dev opsDev ops
Dev ops
 
Presentation iv implementasi 802x eap tls peap mscha pv2
Presentation iv implementasi  802x eap tls peap mscha pv2Presentation iv implementasi  802x eap tls peap mscha pv2
Presentation iv implementasi 802x eap tls peap mscha pv2
 
Install tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war fileInstall tomcat 5.5 in debian os and deploy war file
Install tomcat 5.5 in debian os and deploy war file
 
Dspace tutorial
Dspace tutorialDspace tutorial
Dspace tutorial
 
DSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital LibraryDSpace Tutorial : Open Source Digital Library
DSpace Tutorial : Open Source Digital Library
 
DPDK in Containers Hands-on Lab
DPDK in Containers Hands-on LabDPDK in Containers Hands-on Lab
DPDK in Containers Hands-on Lab
 
ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions ERP System Implementation Kubernetes Cluster with Sticky Sessions
ERP System Implementation Kubernetes Cluster with Sticky Sessions
 
Docker Security workshop slides
Docker Security workshop slidesDocker Security workshop slides
Docker Security workshop slides
 
Free radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmapleFree radius billing server with practical vpn exmaple
Free radius billing server with practical vpn exmaple
 
Oracle cluster installation with grid and nfs
Oracle cluster  installation with grid and nfsOracle cluster  installation with grid and nfs
Oracle cluster installation with grid and nfs
 
Control your deployments with Capistrano
Control your deployments with CapistranoControl your deployments with Capistrano
Control your deployments with Capistrano
 
Docker
DockerDocker
Docker
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)Running Docker in Development & Production (#ndcoslo 2015)
Running Docker in Development & Production (#ndcoslo 2015)
 
Docker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in PragueDocker and friends at Linux Days 2014 in Prague
Docker and friends at Linux Days 2014 in Prague
 
Top ESXi command line v2.0
Top ESXi command line v2.0Top ESXi command line v2.0
Top ESXi command line v2.0
 
The Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/PressThe Enterprise Wor/d/thy/Press
The Enterprise Wor/d/thy/Press
 

Recently uploaded

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
pritamlangde
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
Kamal Acharya
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
AldoGarca30
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
hublikarsn
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
HenryBriggs2
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
meharikiros2
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 

Recently uploaded (20)

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Graphics Introduction To Curves
Computer Graphics Introduction To CurvesComputer Graphics Introduction To Curves
Computer Graphics Introduction To Curves
 
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
Convergence of Robotics and Gen AI offers excellent opportunities for Entrepr...
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Introduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptxIntroduction to Robotics in Mechanical Engineering.pptx
Introduction to Robotics in Mechanical Engineering.pptx
 
8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor8086 Microprocessor Architecture: 16-bit microprocessor
8086 Microprocessor Architecture: 16-bit microprocessor
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
Post office management system project ..pdf
Post office management system project ..pdfPost office management system project ..pdf
Post office management system project ..pdf
 
Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257Memory Interfacing of 8086 with DMA 8257
Memory Interfacing of 8086 with DMA 8257
 
Query optimization and processing for advanced database systems
Query optimization and processing for advanced database systemsQuery optimization and processing for advanced database systems
Query optimization and processing for advanced database systems
 
fitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .pptfitting shop and tools used in fitting shop .ppt
fitting shop and tools used in fitting shop .ppt
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 

Ex200

  • 1. RedHat EX200 Red Hat Certified System Administrator–RHCSA Version: 4.0
  • 2. QUESTION NO: 1 CORRECT TEXT Configure your Host Name, IP Address, Gateway and DNS. Host name: station.domain40.example.com /etc/sysconfig/network hostname=abc.com hostname abc.com IP Address:172.24.40.40/24 Gateway172.24.40.1 DNS:172.24.40.1 Answer: # cd /etc/syscofig/network-scripts/ # ls # vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40 GATEWAY=172.24.40.1 DNS1=172.24.40.1 # vim /etc/sysconfig/network (Configure Host Name) HOSTNAME= station.domain40.example.com OR Graphical Interfaces: System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim /etc/sysconfig/network (Configure Host Name) QUESTION NO: 2 CORRECT TEXT Add 3 users: harry, natasha, tom. The requirements: The Additional group of the two users: harry, Natasha is the admin group. The user: tom's login shell should be non-interactive. Answer: # useradd -G admin harry # useradd -G admin natasha # useradd -s /sbin/nologin tom # id harry;id Natasha (Show additional group) # cat /etc/passwd RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 2
  • 3. (Show the login shell) OR # system-config-users QUESTION NO: 3 CORRECT TEXT Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be the admin group. Answer: # cd /home/ # mkdir admins / # chown .admin admins/ # chmod 770 admins/ # chmod g+s admins/ QUESTION NO: 4 CORRECT TEXT Configure a task: plan to run echo hello command at 14:23 every day. Answer: # which echo # crontab -e 23 14 * * * /bin/echo hello # crontab -l (Verify) QUESTION NO: 5 CORRECT TEXT Find the files owned by harry, and copy it to catalog: /opt/dir Answer: # cd /opt/ # mkdir dir # find / -user harry -exec cp -rfp {} /opt/dir/ ; QUESTION NO: 6 CORRECT TEXT Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile. RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 3
  • 4. Answer: # cat /etc/testfile | while read line; do echo $line | grep abcde | tee -a /tmp/testfile done OR grep `abcde' /etc/testfile > /tmp/testfile QUESTION NO: 7 CORRECT TEXT Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition. Answer: # fdisk /dev/sda p (check Partition table) n (create new partition: press e to create extended partition, press p to create the main partition, and theextended partition is further divided into logical partitions) Enter +2G t l W partx -a /dev/sda partprobe mkswap /dev/sda8 Copy UUID swapon -a vim /etc/fstab UUID=XXXXX swap swap defaults 0 0 (swapon -s) QUESTION NO: 8 CORRECT TEXT Create a user named alex, and the user id should be 1234, and the password should be alex111. Answer: # useradd -u 1234 alex # passwd alex alex111 alex111 RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 4
  • 5. OR echo alex111|passwd -stdin alex QUESTION NO: 9 CORRECT TEXT Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing file server. ) Answer: # cd /etc/yum.repos.d # vim local.repo [local] name=local.repo baseurl=file:///mnt enabled=1 gpgcheck=0 # yum makecache # yum install -y vsftpd # service vsftpd restart # chkconfig vsftpd on # chkconfig --list vsftpd # vim /etc/vsftpd/vsftpd.conf anonymous_enable=YES QUESTION NO: 10 CORRECT TEXT Configure a HTTP server, which can be accessed through http://station.domain40.example.com. Please download the released page from http://ip/dir/example.html. Answer: # yum install -y httpd # chkconfig httpd on # cd /var/www/html # wget http://ip/dir/example.html # cp example.com index.html # vim /etc/httpd/conf/httpd.conf NameVirtualHost 192.168.0.254:80 <VirtualHost 192.168.0.254:80> DocumentRoot /var/www/html/ ServerName station.domain40.example.com </VirtualHost> RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 5
  • 6. QUESTION NO: 11 CORRECT TEXT Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as "password". And the certificate login successfully through can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory unless you configure the autofs in the following questions. Answer: system-config-authentication LDAP Server: ldap//instructor.example.com (In domain form, not write IP) OR # yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd) # system-config-authentication 1.User Account Database: LDAP 2.LDAP Search Base DN: dc=example,dc=com 3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 4.Download CA Certificate 5.Authentication Method: LDAP password 6.Apply getent passwd ldapuser40 QUESTION NO: 12 CORRECT TEXT Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally. Answer: # chkconfig autofs on # cd /etc/ # vim /etc/auto.master /rhome /etc/auto.ldap # cp auto.misc auto.ldap # vim auto.ladp ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40 * -rw,soft,intr 172.16.40.10:/rhome/& # service autofs stop # server autofs start # showmount -e 172.24.40.10 # su - ladpuser40 RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 6
  • 7. QUESTION NO: 13 CORRECT TEXT Configure the system synchronous as 172.24.40.10. Answer: Graphical Interfaces: System-->Administration-->Date & Time OR # system-config-date QUESTION NO: 14 CORRECT TEXT Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.) Answer: # vgdisplay (Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend) # lvdisplay (Check lv) # lvextend -L +110M /dev/vg2/lv2 # resize2fs /dev/vg2/lv2 mount -a (Verify) ------------------------------------------------------------------------------- (Decrease lvm) # umount /media # fsck -f /dev/vg2/lv2 # resize2fs -f /dev/vg2/lv2 100M # lvreduce -L 100M /dev/vg2/lv2 # mount -a # lvdisplay (Verify) OR # e2fsck -f /dev/vg1/lvm02 # resize2fs -f /dev/vg1/lvm02 # mount /dev/vg1/lvm01 /mnt # lvreduce -L 1G -n /dev/vg1/lvm02 # lvdisplay (Verify) QUESTION NO: 15 CORRECT TEXT Create a volume group, and set 16M as a extends. And divided a volume group containing 50 RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 7
  • 8. extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data. Answer: # pvcreate /dev/sda7 /dev/sda8 # vgcreate -s 16M vg1 /dev/sda7 /dev/sda8 # lvcreate -l 50 -n lvm02 # mkfs.ext4 /dev/vg1/lvm02 # blkid /dev/vg1/lv1 # vim /etc/fstab # mkdir -p /mnt/data UUID=xxxxxxxx /mnt/data ext4 defaults 0 0 # vim /etc/fstab # mount -a # mount (Verify) QUESTION NO: 16 CORRECT TEXT Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available. Answer: # cat /etc/grub.conf # cd /boot # lftp it # get dr/dom/kernel-xxxx.rpm # rpm -ivh kernel-xxxx.rpm # vim /etc/grub.conf default=0 QUESTION NO: 17 CORRECT TEXT Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take effect automatically at boot-start. Answer: # fdisk /dev/vda n +512M w # partprobe /dev/vda RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 8
  • 9. # mkfs -t ext4 /dev/vda5 # mkdir -p /data # vim /etc/fstab /dev/vda5 /data ext4 defaults 0 0 # mount -a QUESTION NO: 18 CORRECT TEXT Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M. Answer: # fdisk # partprobe # pvcreate /dev/vda6 # vgcreate -s 8M vg1 /dev/vda6 -s # lvcreate -n lvshare -l 50 vg1 -l # mkfs.ext4 /dev/vg1/lvshare # mkdir -p /mnt/data # vim /etc/fstab /dev/vg1/lvshare /mnt/data ext4 defaults 0 0 # mount -a # df -h QUESTION NO: 19 CORRECT TEXT Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start. Answer: # cd /root; wget ftp://192.168.0.254/pub/boot.iso # mkdir -p /media/cdrom # vim /etc/fstab /root/boot.iso /media/cdrom iso9660 defaults,loop 0 0 # mount -a mount [-t vfstype] [-o options] device dir QUESTION NO: 20 CORRECT TEXT Add admin group and set gid=600 RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 9
  • 10. Answer: # groupadd -g 600 admin QUESTION NO: 21 CORRECT TEXT Add user: user1, set uid=601 Password: redhat The user's login shell should be non-interactive. Answer: # useradd -u 601 -s /sbin/nologin user1 # passwd user1 redhat QUESTION NO: 22 CORRECT TEXT Add users: user2, user3. The Additional group of the two users: user2, user3 is the admin group Password: redhat Answer: # useradd -G admin user2 # useradd -G admin user3 # passwd user2 redhat # passwd user3 redhat QUESTION NO: 23 CORRECT TEXT Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission. Answer: # cp /etc/fstab /var/tmp/ # chgrp admin /var/tmp/fstab # setfacl -m u:user1:rwx /var/tmp/fstab # setfacl -m u:user2:--- /var/tmp/fstab # ls -l -rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 10
  • 11. QUESTION NO: 24 CORRECT TEXT Configure a task: plan to run echo "file" command at 14:23 every day. Answer: (a) Created as administrator # crontab -u natasha -e 23 14 * * * /bin/echo "file" (b)Created as natasha # su - natasha $ crontab -e 23 14 * * * /bin/echo "file" RedHat EX200 Exam "Pass Any Exam. Any Time." - www.actualtests.com 11