RH202 RedHat RHCT (Redhat Certified Technician) RH202 Free Practice Exam Questions (2025 Updated)
Prepare effectively for your RedHat RH202 RHCT (Redhat Certified Technician) RH202 certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2025, ensuring you have the most current resources to build confidence and succeed on your first attempt.
There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.
Answer and Explanation:
Steps of Creating LVM:
1.pvcreate /dev/hda8 /dev/hda9 /dev/hda10
pvdisplay command is used to display the information of physical volume.
2.vgceate test0 /dev/hda8 /dev/hda9 /dev/hda10
vgdisplay command is used to display the information of Volume Group.
3.lvcreate –L 250M –n testvolume1 test0
lvdisplay command is used to display the information of Logical Volume.
4.lvcreate –L 250M –n testvolume2 test0
5.mkfs –t ext3 /dev/test0/testvolume1
6.mkfs –t ext3 /dev/test0/testvolume2
7.mkdir /lvtest1
8.mkdir /lvtest2
9.mount /dev/test0/testvolume1 /lvtest1
10.mount /dev/test0/testvolume2 /lvtest2
11.vi /etc/fstab
/dev/test0/testvolume2/lvtest2ext3defaults0 0
/dev/test0/testvolume1/lvtest1ext3defaults0 0
To create the LVM( Logical Volume Manager) we required the disks having ‘8e’ Linux LVM type. First we should create the physical Volume, then we can create the Volume group from disks belongs to physical Volume. lvcreate command is used to create the logical volume on volume group. We can specify the size of logical volume with –L option and name with -n option.
Fill up the Form through http://server1.example.com/form.php
Answer and Explanation:
1.Open the Browser and type the above URL.
2.Fill the form as required all information.
You are administrator of Certpaper network. First time you are going to take the full backup of all user’s home directory. Take the full backup of /home on /tmp/back file.
Answer and Explanation:
1.dump -0u –f /tmp/back /dev/hda4
dump is the standard backup utility. According to the questions, fullback should take. –0 means fullback, -u means update the /etc/dumpdates which maintains the backup record and -f means filename. If you are directly taking backup into other device, you can specify the device name.
i.e dump -0u -f /dev/st0 /dev/hda4. Where hda4 is a separate partition mounted on /home.
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
when user try to access, automatically should mount
when user doesn’t use mounted directory should unmount automatically after 50 seconds.
Shared directory should mount on /mnt/data on your machine.
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.
Install the dialog-*
Answer and Explanation:
Questions asking you to install the dialog package from the server. In your Lab FTP server as well as NFS server are configured. You can install either through FTP or NFS.
1.Just Login to server1.example.com through FTP: ftp server1.example.com
2.Enter to pub directory: cd pub
3.Enter to RedHat/RPMS: cd RedHat/RPMS
4.Download the Package: mget dialog-*
5.Logout from the FTP server: bye
6.Install the package: rpm -ivh dialog-*
7.Verify the package either installed or not: rpm -q dialog
Create the user named jackie, curtin, david
Answer and Explanation:
1.useradd jackie
2.useradd curtin
3. useradd david
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.
Make user1, user2 and user3 belongs to training group.
Answer and Explanation:
usermod -G training user1
usermod -G training user2
usermod -G training user3
Verify from : cat /etc/group
There are two types of group, I) primary group II) Secondary or supplementary group.
Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.
Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.
Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.
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.
You are administrator of Certpaper network. First time you are going to take the full backup of all user’s home directory. Take the full backup of /home on /tmp/back file.
Answer and Explanation:
1.dump -0u –f /tmp/back /dev/hda4
dump is the standard backup utility. According to the questions, fullback should take. –0 means fullback, -u means update the /etc/dumpdates which maintains the backup record and -f means filename. If you are directly taking backup into other device, you can specify the device name.
i.e dump -0u -f /dev/st0 /dev/hda4. Where hda4 is a separate partition mounted on /home.
Create the user named eric but eric should not belong to the sysadmin group.
Answer and Explanation:
1.useradd eric
Very tricky question given to you that this user should not belongs to sysadmin group.
Create the group named sysadmin.
Answer and Explanation:
1.groupadd sysadmin
groupadd command is used to create the group and all group information is stored in /etc/group file.
Deny to all users except root to run cron schedule.
Answer and Explanation:
1.vi /etc/cron.allow
root
or
vi /etc/cron.deny
Write all user name to deny.
/etc/cron.allow, /etc/cron.deny file is used to control users to allow or deny. If /etc/cron.allow file is created only that users are allowed to run cron schedule. Another way to deny to users is /etc/cron.deny write all user name on single line.
There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.
Answer and Explanation:
According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection.
In mail, web and dns server:
1.vi /etc/syslog.conf
mail.*@logserveraddress
2.service syslog restart
mail is the facility and * means the priority. It sends logs of mail services into log server.
Create the group named training
Answer and Explanation:
groupadd training
To create a group we use the groupadd command.
Verify from: cat /etc/group whether group added or not?
There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.
Answer and Explanation:
Steps of Creating LVM:
1.pvcreate /dev/hda8 /dev/hda9 /dev/hda10
pvdisplay command is used to display the information of physical volume.
2.vgceate test0 /dev/hda8 /dev/hda9 /dev/hda10
vgdisplay command is used to display the information of Volume Group.
3.lvcreate –L 250M –n testvolume1 test0
lvdisplay command is used to display the information of Logical Volume.
4.lvcreate –L 250M –n testvolume2 test0
5.mkfs –t ext3 /dev/test0/testvolume1
6.mkfs –t ext3 /dev/test0/testvolume2
7.mkdir /lvtest1
8.mkdir /lvtest2
9.mount /dev/test0/testvolume1 /lvtest1
10.mount /dev/test0/testvolume2 /lvtest2
11.vi /etc/fstab
/dev/test0/testvolume2/lvtest2ext3defaults0 0
/dev/test0/testvolume1/lvtest1ext3defaults0 0
To create the LVM( Logical Volume Manager) we required the disks having ‘8e’ Linux LVM type. First we should create the physical Volume, then we can create the Volume group from disks belongs to physical Volume. lvcreate command is used to create the logical volume on volume group. We can specify the size of logical volume with –L option and name with -n option.
Whoever creates the file on /data make automatically owner group should be the group owner of /data directory.
Answer and Explanation:
When user creates the file/directory, user owner will be user itself and group owner will be the primary group of the user.
There is one Special Permission SGID , when you set the SGID bit on directory,When users creates the file/directory automatically owner group will be same as a parent.
chmod g+s /data
Verify using: ls -ld /data
You will get: drwxrws---
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
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.
Answer and Explanation:
1. use the authconfig --nisserver=
Example: authconfig --niserver=192.168.0.254 --nisdomain=RHCE --update
or system-config-authentication
2. Click on Enable NIS
3. Type the NIS Domain: RHCE
4. Type Server 192.168.0.254 then click on next and ok
5. You will get a ok message.
6. Create a Directory /rhome/stationx where x is your station number.
6. vi /etc/auto.master and write at the end of file
/rhome/stationx /etc/auto.home --timeout=60
7. vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
8. Service autofs restart
9. Login as the nisuser2001 or nisuser2002 on another terminal will be
Success.
According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On /etc/auto.master file we specified the mount point the configuration file for mount point.
Install the Cron Schedule for jeff user to display “Hello” on daily 5:30.
Answer and Explanation:
Login as a root user
cat >schedule.txt
30 05 * * * /bin/echo “Hello”
3. crontab –u jeff schedule.txt
4. service crond restart
The cron system is essentially a smart alarm clock. When the alarm sounds, Linux runs the commands of your choice automatically. You can set the alarm clock to run at all sorts of regular time intervals. Alternatively, the at system allows you to run the command of your choice once, at a specified time in the future.
Red Hat configured the cron daemon, crond. By default, it checks a series of directories for jobs to run, every minute of every hour of every day. The crond checks the /var/spool/cron directory for jobs by user. It also checks for scheduled jobs for the computer under /etc/crontab and in the /etc/cron.d directory.
Here is the format of a line in crontab. Each of these columns is explained in more detail:
#minute, hour, day of month, month, day of week, command
* * * * * command
Entries in a crontab Command Line
Field
Value
Minute
0-59
Hour
Based on a 24-hour clock; for example, 23 = 11 p.m.
Day of month
1-31
Month
1-12, or jan, feb, mar, etc.
Day of week
0-7; where 0 and 7 are both Sunday; or sun, mon, tue, etc.
Command
The command you want to run
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