RHCE exam questions for practice in 2023 Updated 111 Questions
Updated Feb-2023 Premium RHCE Exam Engine pdf - Download Free Updated 111 Questions
NEW QUESTION 21
CORRECT TEXT
Create a Shared Directory.
Create a shared directory /home/admins, make it has the following characteristics:
/home/admins belongs to group adminuser
This directory can be read and written by members of group adminuser Any files created in /home/ admin, group automatically set as adminuser.
Answer:
Explanation:
mkdir/home/adminschgrp-Radminuser/home/adminschmodg+w/home/adminschmodg+s/home/admins
NEW QUESTION 22
CORRECT TEXT
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and
192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.
Answer:
Explanation:
vi/etc/sysconfing/networkNETWORKING=yesHOSTNAME=station?.example.comGATEWAY=192.168.0.254servicenetworkrestart2.vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0ONBOOT=yesBOOTPROTO=staticIPADDR=X.X.X.XNETMASK=X.X.X.XGATEWAY=192.168.0.254ifdowneth0ifupeth0
NEW QUESTION 23
CORRECT TEXT
Create a backup file named /root/backup.tar.bz2, which contains the contents of /usr/local, bar must use the bzip2 compression.
Answer:
Explanation:
cd/usr/localtar-jcvf/root/backup.tar.bz2*mkdir/testtar-jxvf/root/backup.tar.bz2-C/test/
NEW QUESTION 24
CORRECT TEXT
Configure a task: plan to run echo hello command at 14:23 every day.
Answer:
Explanation:
#whichecho
#crontab-e2314***/bin/echohellos
#crontab-l(Verify)
NEW QUESTION 25
CORRECT TEXT
Open kmcrl value of 5 , and can verify in /proc/ cmdline
Answer:
Explanation:
#vim/boot/grub/grub.confkernel/vmlinuz-2.6.32-71.el6.x86_64roroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=uscrashkernel=autorhgbquietkmcrl=5Restarttotakeeffectandverification:
#cat/proc/cmdlineroroot=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSrootrd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DMLANG=en_US.UTF-8SYSFONT=latarcyrheb-sun16KEYBOARDTYPE=pcKEYTABLE=usrhgbquietkmcrl=5
NEW QUESTION 26
CORRECT TEXT
Configure your Host Name, IP Address, Gateway and DNS.
Host name: dtop5.dn.ws.com
IP Address: 172.28.10.5/4
Gateway: 172.28.10.1
DNS: 172.28.10.1
Answer:
Explanation:
see explanation below. Explanation 1. Configure Host Name
vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=dtop5.dn.ws.com GATEWAY=172.28.10.1 2. Configure IP Address, Gateway and DNS Configure the network by Network Manager:
Note: Please remember to choose two options:
Connect automatically
Available to all users Click "Apply", save and exit, and restart your network services:
# Service network restart 3. Validate these profiles: a) Check gateway:
# vim / etc / sysconfig / network NETWORKING=yes HOSTNAME=dtop5.dn.ws.com GATEWAY=172.28.10.1 b) Check Host Name:
# vim /etc/hosts
c) Check DNS:
# vim /etc/resolv.conf
# Generated by NetworkManager Search dn.ws.com Nameserver 172.28.10.1 d) Check Gateway:
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
NEW QUESTION 27
CORRECT TEXT
According the following requirements, configure autofs service and automatically mount to user's home directory in the ldap domain.
- Instructor.example.com (192.168.0.254) has shared /home/guests/ldapuserX home directory to your system by over NFS export, X is your hostname number.
- LdapuserX's home directory is exist in the instructor.example.com: /home/ guests/ldapuserX
- LdapuserX's home directory must be able to automatically mount to /home/ guests/ldapuserX in your system.
- Home directory have write permissions for the corresponding user.
However, you can log on to the ldapuser1 - ldapuser99 users after verification. But you can only get your corresponding ldapuser users. If your system's hostname is server1.example.com, you can only get ldapuser1's home directory.
Answer:
Explanation:
mkdir-p/home/guestscat/etc/auto.master:/home/guests/etc/auto.ldapcat/etc/auto.ldap:ldapuser1-rwinstructor.example.com:/home/guests/ldapuser1
automaticallymountalltheuser'shomedirectory
#*-rwinstructor.example.com:/home/guests/&
NEW QUESTION 28
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:
Explanation:
#cat/etc/grub.conf
#cd/boot
#lftpit
#getdr/dom/kernel-xxxx.rpm
#rpm-ivhkernel-xxxx.rpm
#vim/etc/grub.confdefault=0
NEW QUESTION 29
CORRECT TEXT
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.
Answer:
Explanation:
below
iptables-F
serviceiptablessave
iptables-AINPUT-s172.25.0.0/16-jREJECT
serviceiptablessave
serviceiptablesrestart
NEW QUESTION 30
CORRECT TEXT
Search files.
Find out files owned by jack, and copy them to directory /root/findresults
Answer:
Explanation:
mkdir/root/findfilesfind/-userjack-execcp-a{}/root/findfiles/\;ls/root/findresults
NEW QUESTION 31
CORRECT TEXT
Resize the logical volume vo and its filesystem to 290 MB. Make sure that the filesystem contents remain intact.
Note: Partitions are seldom exactly the same size requested, so a size within the range of 260 MB to 320 MiB is acceptable.
Answer:
Explanation:
df-hTlvextend-L+100M/dev/vg0/volvscanxfs_growfs/home///homeisLVMmounteddirectoryNote:Thisstepisonlyneedtodoinourpracticeenvironmentyoudonotneedtodointherealexamresize2fs/dev/vg0/vo//Usethiscomandtoupdateintherealexamdf-hTORe2fsck-f/dev/vg0/voumount/homeresize2fs/dev/vg0/vorequiredpartitioncapacitysuchas100Mlvreduce-l100M/dev/vg0/vomount/dev/vg0/vo/homedf-Ht
NEW QUESTION 32
CORRECT TEXT
Create a user named alex, and the user id should be 1234, and the password should be alex111.
Answer:
Explanation:
#useradd-u1234alex
#passwdalexalex111alex111ORechoalex111|passwd-stdinalex
NEW QUESTION 33
CORRECT TEXT
One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.
Answer:
Explanation:
FirstcheckthesizeofLogicalVolume:lvdisplay/dev/vo/myvol
Makesurethatthefilesystemisinaconsistentstatebeforereducing:
#fsck-f/dev/vo/myvol
Nowreducethefilesystemby200MB.
#resize2fs/dev/vo/myvol200M
Itisnowpossibletoreducethelogicalvolume.
#lvreduce/dev/vo/myvol-L200M
VerifytheSizeofLogicalVolume:lvdisplay/dev/vo/myvol
Verifythatthesizecomesinonlineornot:df-h
NEW QUESTION 34
CORRECT TEXT
Configure a default software repository for your system.
One YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.
Answer:
Explanation:
Yum-config-manager--add-repo=http://content.example.com/rhel7.0/x86-64/dvd"istogenerateafilevimcontent.example.com_rhel7.0_x86_64_dvd.repoAddalinegpgcheck=0YumcleanallYumrepolistAlmost4305packagesarerightWrongYumConfigurationwillleadtosomefollowingquestionscannotbeworkedout.
NEW QUESTION 35
CORRECT TEXT
Update the kernel from ftp://instructor.example.com/pub/updates.
According the following requirements:
The updated kernel must exist as default kernel after rebooting the system.
The original kernel still exists and is available in the system.
Answer:
Explanation:
rpm-ivhkernel-firm...rpm-ivhkernel...
NEW QUESTION 36
CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
Answer:
Explanation:
#fdisk/dev/sdap(checkPartitiontable)n(createnewpartition:pressetocreateextendedpartitionpressptocreatethemainpartitionandtheextendedpartitionisfurtherdividedintologicalpartitions)Enter+2Gt8I82Wpartx-a/dev/sdapartprobemkswap/dev/sda8CopyUUIDswapon-avim/etc/fstabUUID=XXXXXswapswapdefaults00(swapon-s)
NEW QUESTION 37
CORRECT TEXT
Add admin group and set gid=600
Answer:
Explanation:
#groupadd-g600admin
NEW QUESTION 38
......
Authentic RHCE Dumps With 100% Passing Rate Practice Tests Dumps: https://examtorrent.actualcollection.com/RHCE-exam-questions.html