Weekend Sale Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

RedHat RH202 RHCT (Redhat Certified Technician) RH202 Exam Practice Test

Page: 1 / 14
Total 140 questions

RHCT (Redhat Certified Technician) RH202 Questions and Answers

Question 1

One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.

Answer and Explanation:

The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal-sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:

  • Physical Volume (PV)is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
  • Physical Extent (PE)is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
  • Logical Extent (LE)is also a chunk of disk space. Every LE is mapped to a specific PE.
  • Logical Volume (LV)is composed of a group of LEs. You can mount a filesystem such as /home and /var on an LV.
  • Volume Group (VG)is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.

1. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1

2. Verify the Size on mounted directory: df –h or df –h mounted directory name

3. Use : lvextend –L+400M /dev/vg0/lv1

4. ext2online –d /dev/vg0/lv1  to bring extended size online.

5. Again Verify using lvdisplay and df –h command.

Options:

Question 2

Some users home directory is shared from your system. Using showmount –e localhost command, the shared directory is not shown. Make access the shared users home directory.

Answer and Explanation:

1.Verify the File whether Shared or not ? : cat /etc/exports

2.Start the nfs service: service nfs start

3.Start the portmap service: service portmap start

4.Make automatically start the nfs service on next reboot: chkconfig nfs on

5.Make automatically start the portmap service on next reboot: chkconfig portmap on

6.Verify either sharing or not: showmount –e localhost

7.Check that default firewall is running on system ? if running flush the iptables using iptables –F and stop the iptables service.

Options:

Question 3

Change the root Password to redtophat

Answer and Explanation:

  • Boot the system in Single user mode
  • Use the passwd command

Options:

Question 4

Add a new logical partition having size 100MB and create the /data which will be the mount point for the new partition.

Answer and Explanation:

  • Use fdisk /dev/hdaTo create new partition.
  • Type nFor New partitions
  • It will ask for Logical or Primary Partitions. Press l for logical.
  • It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
  • Type the Size: +100MYou can Specify either Last cylinder of Size here.
  • Press P to verify the partitions lists and remember the partitions name.
  • Press w to write on partitions table.
  • Either Reboot or use partprobe command.
  • Use mkfs –t ext3 /dev/hda?
  • Or
  • mke2fs –j /dev/hda? To create ext3 filesystem.
  • vi /etc/fstab
  • Write:
  • /dev/hda?/dataext3defaults0 0
  • Verify by mounting on current Sessions also:
  • mount /dev/hda? /data

Options:

Question 5

neo user tried by:

dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70

files created successfully. Again neo tried to create file having 70K using following command:

dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70

But he is unable to create the file. Make the user can create the file less then 70K.

Answer and Explanation:

Very Tricky question from redhat. Actually question is giving scenario to you to implement quota to neo user. You should apply the quota to neo user on /home that neo user shouldn’t occupied space more than 70K.

1.vi /etc/fstab

2.touch /home/aquota.userCreating blank quota database file.

3.mount -o remount /home Remounting the /home with updated mount options. You can verify that /home is mounted with usrquota options or not using mount command.

4.quotacheck -u /home Initialization the quota on /home

5.edquota –u neo /home Quota Policy editor

See the snapshot

1 Disk quotas for user neo (uid 500):

2 Filesystem blocks soft hard inodes soft hard

4 /dev/mapper/vo-myvol 2 30 70 1 0 0

Can you set the hard limit 70 and soft limit as you think like 30.

Options:

Question 6

Your system is giving error while booting on Runlevel 5 . Make successfully boot your system in runlevel 5.

Answer and Explanation: While you load the X Window System, you will get the problem. To troubleshoot follow the following steps:

1.Check the /tmp is full ?

2.Check your quota, hard limit is already crossed ?

3.Check xfs service is running ?

4.Configure the Video card, Resolution, monitor type using: system-config-display (Most Probably in Redhat exam)

5.Edit the /etc/inittab to set default runlevel 5.

id:5:initdefault:

Options:

Question 7

There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL 4 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network’s Host?

Answer and Explanation:

1.vi /etc/sysconfig/network

GATEWAY=192.168.0.254

OR

vi /etc/sysconf/network-scripts/ifcfg-eth0

DEVICE=eth0

BOOTPROTO=static

ONBOOT=yes

IPADDR=192.168.0.?

NETMASK=255.255.255.0

GATEWAY=192.168.0.254

2.service network restart

Options:

Question 8

Create the user named eric and deny to interactive login.

Answer and Explanation:

  • useradd eric
  • passwd eric
  • vi /etc/passwd
  • eric:x:505:505::/home/eric:/sbin/nologin

Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.

Options:

Question 9

Install the Redhat Linux RHEL 4 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:

/1048

/home1028

/boot 512

/var 1028

/usr2048

Swap->1.5 of RAM Size

/dataconfigure the RAID Level 0 of remaining all free space.

After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain.

Answer and Explanation:

1. Insert the CD on CD-ROM and start the system.

2. In Boot: Prompt type linux askmethod

3. It will display the language, keyboard selection.

4. It will ask you for the installation method.

5. Select the NFS Image from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.

Specify the NFS Server: 172.24.254.254

Directory: /var/ftp/pub

8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10.Create the two RAID partitions having equal size of remaining all free space.

11.Click on RAID button

12.Type mount point /data

13.Select RAID Level 0

14.Click on ok

15. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.

Options:

Question 10

One New Kernel is released named kernel-hugemem. Kernel is available on ftp://server1.example.com under pub directory for anonymous. Install the Kernel and make previous new kernel is default to boot System.

Answer and Explanation:

  • rpm -ivh ftp://server1.example.com/pub/kernel-hugemem-*

2. vi /etc/grub.conf

Set the default to new kernel

default=0

Example of /etc/grub.conf

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux ES (2.6.9-5.ELhugemem)

root (hd0,0)

kernel /vmlinuz-2.6.9-5.ELhugemem ro root=LABEL=/1 rhgb quiet

initrd /initrd-2.6.9-5.ELhugemem.img

title Red Hat Enterprise Linux ES (2.6.9-5.EL)

root (hd0,0)

kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/1 rhgb quiet

initrd /initrd-2.6.9-5.EL.img

rpm command is used to install, update and remove the rpm package. -ivh option is install, verbose, and display the hash mark.

Options:

Question 11

Create the user named jane and john.

Answer and Explanation:

1.useradd jane

2.useradd john

useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.

Options:

Question 12

Raw printer named printerx where x is your station number is installed and shared on server1.example.com. Install the shared printer on your PC to connect shared printer using IPP Protocols. Your server is 192.168.0.254.

Answer and Explanation:

1.Open the Browser either firefox or links

2.Type : http://localhost:631

3.Click on Manage Printer

4.Click on Add Printer

5.Type Queue name like stationx and click on continue

6.Type Device type or printing Protocol: i.e Internet printing Protocol

7.Click on Continue

8.Type Device URL: ipp://server1.example.com/printers/printerx

9.Click on Continue

10.Select RAW Model printer

11.Click on Continue

12.Test by sending the printing job

Options:

Question 13

/data Directory is shared from the server1.example.com server. Mount the shared directory that:

  • uk.co.certification.simulator.questionpool.PList@2473a9e0

Answer and Explanation:

  • vi /etc/auto.master

/mnt/etc/auto.misc--timeout=50

  • vi /etc/auto.misc
  • data-rw,soft,intrserver1.example.com:/data
  • service autofs restart
  • chkconfig autofs on

When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.

/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.

Options:

Question 14

Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.

Answer and Explanation:

1.cat >schedule

*/2 * * * * /bin/echo “Hello World” >/dev/tty8

  • crontab schedule
  • Verify using: crontab –l
  • service crond restart

Cron helps to schedule on recurring events. Pattern of Cron is:

MinuteHourDay of MonthMonth Day of WeekCommands

0-590-231-311-120-7 where 0 and 7 means Sunday.

Note * means every. To execute the command on every two minutes */2.

To add the scheduled file on cron job: crontab filename

To List the Cron Shedule: crontab –l

To Edit the Schedule: crontab –e

To Remove the Schedule: crontab –r

Options:

Question 15

Add a user named user4 and make primarily belongs to training group. As well account should expire on 30 days from today.

Answer and Explanation:

  • useradd username
  • passwd username
  • usermod -e “date”

example: usermod -e “12 Feb 2006” user4

Verify: chage –l user4

Options:

Question 16

Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:

/1048

/home1028

/boot 512

/var 1028

/usr2048

Swap->1.5 of RAM Size

/documentconfigure the RAID Level 0 of remaining all free space.

After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain. SELinux Must be on enforcing mode.

Answer and Explanation:

1. Insert the CD on CD-ROM and start the system.

2. In Boot: Prompt type linux askmethod

3. It will display the language, keyboard selection.

4. It will ask you for the installation method.

5. Select the NFS Image from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.

Specify the NFS Server: 172.24.254.254

Directory: /var/ftp/pub

8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10.Create the two RAID partitions having equal size of remaining all free space.

11.Click on RAID button

12.Type mount point /document

13.Select RAID Level 0

14.Click on ok

15. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.

Options:

Question 17

Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 172.24.254.254 and shared /var/ftp/pub. The size of the partitions are listed below:

/1048

/home1028

/boot 512

/var 1028

/usr2048

Swap->1.5 of RAM Size

/dataconfigure the RAID Level 0 of remaining all free space.

After completing the installation through NFS solve the following questions. There are two networks 172.24.0.0/16 and 172.25.0.0/16. As well as there are two domains example.com on 172.24.0.0/16 network and cracker.org on 172.25.0.0/16 network. Your system is based on example.com domain. SELinux should be in enforcing mode.

Answer and Explanation:

1. Insert the CD on CD-ROM and start the system.

2. In Boot: Prompt type linux askmethod

3. It will display the language, keyboard selection.

4. It will ask you for the installation method.

5. Select the NFS Image from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the NFS Server Name and Redhat Enterprise Linux Directory.

Specify the NFS Server: 172.24.254.254

Directory: /var/ftp/pub

8. After Connecting to the NFS Server Installation start in GUI. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10.Create the two RAID partitions having equal size of remaining all free space.

11.Click on RAID button

12.Type mount point /data

13.Select RAID Level 0

14.Click on ok

15. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.

Options:

Question 18

Make Secondary belongs the jeff and marion users on sysusers group. But harold user should not belongs to sysusers group.

Answer and Explanation:

1.usermod -G sysusers jeff

2.usermod –G sysuser marion

3.Verify by reading /etc/group file

Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.

usermod -g groupname username  To change the primary group of the user

usermod -G groupname username  To make user belongs to secondary group.

Options:

Question 19

UESTION NO: 44 CORRECT TEXT

Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.

Answer and Explanation:

1.chmod g+s /data

2.Verify using: ls -ld /data

Permission should be like:

drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data

If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.

To set the SGID bit: chmod g+s directory

To Remove the SGID bit: chmod g-s directory

Options:

Question 20

Make Secondary belongs the jackie and curtin users on sysuser group. But david user should not belongs to sysuser group.

Answer and Explanation:

1.usermod -G sysuser jackie

2.usermod –G sysuser curtin

3.Verify by reading /etc/group file

Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.

usermod -g groupname username  To change the primary group of the user

usermod -G groupname username  To make user belongs to secondary group.

Options:

Question 21

You are working as a System Administrator at Certpaper. Your Linux Server crashed and you lost every data. But you had taken the full backup of user’s home directory and other System Files on /dev/st0, how will you restore from that device?

Answer and Explanation:

1. Go to on that directory where you want to restore.

2. restore –rf /dev/st0

To restore from backup we use the restore command. Here backup will restore from /dev/st0 on current Directory.

Options:

Page: 1 / 14
Total 140 questions