Red Hat Certification Exam Interview Questions And Answers
Download Red Hat Certification Interview Questions and Answers PDF
Elevate your Red Hat Certification interview readiness with our detailed compilation of 40 questions. These questions will test your expertise and readiness for any Red Hat Certification interview scenario. Ideal for candidates of all levels, this collection is a must-have for your study plan. Download the free PDF now to get all 40 questions and ensure you're well-prepared for your Red Hat Certification interview. This resource is perfect for in-depth preparation and boosting your confidence.
40 Red Hat Certification Questions and Answers:
Red Hat Certification Job Interview Questions Table of Contents:
1 :: How to Create one partitions having size 100MB and mount it on /data
1. Use fdisk /dev/hda ->To create new partition.
2. Type n-> For New partitions
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ->You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
7. Press w to write on partitions table.
8. Either Reboot or use partprobe command.
9. Use mkfs -t ext3 /dev/hda?
Or
mke2fs -j /dev/hda? To create ext3 filesystem.
10. vi /etc/fstab
Write:
/dev/hda? /data ext3 defaults 1 2
11. Verify by mounting on current Sessions also:
mount /dev/hda? /data
Read More2. Type n-> For New partitions
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ->You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
7. Press w to write on partitions table.
8. Either Reboot or use partprobe command.
9. Use mkfs -t ext3 /dev/hda?
Or
mke2fs -j /dev/hda? To create ext3 filesystem.
10. vi /etc/fstab
Write:
/dev/hda? /data ext3 defaults 1 2
11. Verify by mounting on current Sessions also:
mount /dev/hda? /data
2 :: Explain Software RAID, such as the Linux MD driver, are dependent on CPU as opposed to hardware RAID, which is
implemented on the interface controller itself.
A. True
B. False
A. True
Read More3 :: How to Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254
1. Vi /etc/resolve.conf
search server1.example.com
nameserver 192.168.0.254
Read Moresearch server1.example.com
nameserver 192.168.0.254
4 :: Explain Which of the following commands would transfer a local file called password.txt to a remote machine called
tiger via SCP , logging in as admin, and storing the file in /tmp?
A. scp password.txt admin@tiger:/tmp
B. scp password.txt tiger@admin:/tmp
C. scp password.txt admin tiger /tmp
D. ssh admin@tiger:/tmp
A. scp password.txt admin@tiger:/tmp
Read More5 :: Explain Where do the binaries for XFree86 reside in?
A. /usr/X11R6
B. /etc
C. /etc/X11
D. /X11R6
A. /usr/X11R6
Read More6 :: Suppose Your system is giving error while booting on Runlevel 5 . Make successfully boot
your system in runlevel 5.
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. Boot the system on runlevel 3 and execute the system-config-display command
5. Edit the /etc/inittab to set default runlevel 5.
id:5:initdefault:
Read Morethe following steps:
1. Check the /tmp is full ?
2. Check your quota, hard limit is already crossed ?
3. Check xfs service is running ?
4. Boot the system on runlevel 3 and execute the system-config-display command
5. Edit the /etc/inittab to set default runlevel 5.
id:5:initdefault:
7 :: Suppose You Completely Install the Redhat Enterprise Linux ES 4 on your System. While start the system,
its giving error to load X window System. How will you fix that problem and make boot
successfully run X Window System.
Thinks While Problems occurred on booting System on Runlevel 5 (X Window).
1. /tmp is full or not
2. Quota is already reached
3. Video card or resolution or monitor is misconfigured.
4. xfs service is running or not.
Do These:
1. df h /tmp /tmp is full remove the unnecessary file
2. quota username if quota is already reached remove unnecessary file from home directory.
3. Boot the System in runlevel 3. you can pass the Kernel Argument from boot loader.
4. Use command: system-config-display It will display a dialog to configure the monitor, Video
card, resolution etc.
5. Set the Default Runlevel 5 in /etc/inittab id:5:initdefault:
6. Reboot the System you will get the GUI login Screen.
Read More1. /tmp is full or not
2. Quota is already reached
3. Video card or resolution or monitor is misconfigured.
4. xfs service is running or not.
Do These:
1. df h /tmp /tmp is full remove the unnecessary file
2. quota username if quota is already reached remove unnecessary file from home directory.
3. Boot the System in runlevel 3. you can pass the Kernel Argument from boot loader.
4. Use command: system-config-display It will display a dialog to configure the monitor, Video
card, resolution etc.
5. Set the Default Runlevel 5 in /etc/inittab id:5:initdefault:
6. Reboot the System you will get the GUI login Screen.
8 :: How to Successfully resolve to server1.example.com where your DNS server is 172.24.254.254
DNS is the Domain Name System, which maintains a database that can help your
computer translate domain names such as www.redhat.com to IP addresses such as
216.148.218.197. As no individual DNS server is large enough to keep a database for the
entire Internet, they can refer requests to other DNS servers.
DNS is based on the named daemon, which is built on the BIND (Berkeley Internet
Name Domain) package developed through the Internet Software Consortium
Users wants to access by name so DNS will interpret the name into ip address. You need
to specify the Address if DNS server in each and every client machine. In Redhat
Enterprise Linux, you need to specify the DNS server into /etc/resolv.conf file.
After Specifying the DNS server address, you can verify using host, dig and nslookup
commands.
Read Morecomputer translate domain names such as www.redhat.com to IP addresses such as
216.148.218.197. As no individual DNS server is large enough to keep a database for the
entire Internet, they can refer requests to other DNS servers.
DNS is based on the named daemon, which is built on the BIND (Berkeley Internet
Name Domain) package developed through the Internet Software Consortium
Users wants to access by name so DNS will interpret the name into ip address. You need
to specify the Address if DNS server in each and every client machine. In Redhat
Enterprise Linux, you need to specify the DNS server into /etc/resolv.conf file.
After Specifying the DNS server address, you can verify using host, dig and nslookup
commands.
9 :: Suppose 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.
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
LABEL=/home /home ext3 defaults,usrquota 0 0
To enable the quota on filesystem you should mount the filesystem with usrquota for user
quota and grpquota for group quota.
2. touch /home/aquota.user ->Creating 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
Disk quotas for user neo (uid 500):
Filesystem blocks soft hard inodes soft hard
/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.
Verify using the repquota /home command.
Read Moreimplement 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
LABEL=/home /home ext3 defaults,usrquota 0 0
To enable the quota on filesystem you should mount the filesystem with usrquota for user
quota and grpquota for group quota.
2. touch /home/aquota.user ->Creating 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
Disk quotas for user neo (uid 500):
Filesystem blocks soft hard inodes soft hard
/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.
Verify using the repquota /home command.
10 :: Explain What is the prefdm file used for?
A. To specify the preferred X display manager to use
B. To setup preferences for GNOME
C. To do performance analysis of system CPU usage
D. To perform profiling of C code
A. To specify the preferred X display manager to use
Read More11 :: Suppose 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 Networks Host.
1. vi /etc/sysconfing/network
NETWORKING=yes
HOSTNAME=station?.example.com
GATEWAY=192.168.0.254
2. service network restart
Or
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=192.168.0.254
2. ifdown eth0
3. ifup eth0
Read MoreNETWORKING=yes
HOSTNAME=station?.example.com
GATEWAY=192.168.0.254
2. service network restart
Or
1. vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=192.168.0.254
2. ifdown eth0
3. ifup eth0
12 :: Can you explain In order to find out whether a certain type of hardware is supported by Red Hat Linux, where can you look?
A. The Red Hat Hardware Compatibility List (HCL)
B. /etc/devices
C. The kernel boot messages
D. The Red Hat installation disk
A. The Red Hat Hardware Compatibility List (HCL)
Read More13 :: Explain Samba is used for:
A. Sharing resources from a Linux machine to a Windows machine
B. Accessing resources from a Windows machine, for example mounting an SMB share on a Linux machine
C. Perform password administration.
D. Configure NFS shares.
A. Sharing resources from a Linux machine to a Windows machine
B. Accessing resources from a Windows machine, for example mounting an SMB share on a Linux machine
Read MoreB. Accessing resources from a Windows machine, for example mounting an SMB share on a Linux machine
14 :: Explain What is the DirectoryIndex Apache configuration directive used for?
A. Printing indexes of directories when they do not have an index.html file
B. The default page to show when the user requests an index of a directory
C. Directories to ignore
D. Directories that have access restrictions
B. The default page to show when the user requests an index of a directory
Read More15 :: Explain What is the difference between the DROP and REJECT targets in iptables?
A. REJECT will send an error packet back to the source system, whereas DROP will not
B. DROP will send an error packet back to the source system, whereas REJECT will not
C. They are equivalent
D. DROP is invalid, DENY must be used
A. REJECT will send an error packet back to the source system, whereas DROP will not
Read More16 :: Suppose 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 5 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 Networks Host?
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
vim /etc/sysctel
where is 0 set 1 in first line
save file
systecl -p
Read MoreGATEWAY=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
vim /etc/sysctel
where is 0 set 1 in first line
save file
systecl -p
17 :: Suppose You Completely Install the Redhat Enterprise Linux 5 on your System. While start
the system, its giving error to load X window System. How will you fix that
problem and make boot successfully run X Window System.
Think while Problems occurred on booting System on Runlevel 5 (X Window).
1. /tmp is full or not
2. Quota is already reached
3. Video card or resolution or monitor is misconfigured.
4. xfs service is running or not.
Do These:
1. df -h /tmp /tmp is full remove the unnecessary file
2. quota username if quota is already reached remove unnecessary file from home
directory.
3. Boot the System in runlevel 3. you can pass the Kernel Argument from boot
loader.
4. Use command: system-config-display It will display a dialog to configure the
monitor, Video card, resolution etc.
5. Set the Default Runlevel 5 in /etc/inittab
id:5:initdefault:
6. Reboot the System you will get the GUI login Screen.
Read More1. /tmp is full or not
2. Quota is already reached
3. Video card or resolution or monitor is misconfigured.
4. xfs service is running or not.
Do These:
1. df -h /tmp /tmp is full remove the unnecessary file
2. quota username if quota is already reached remove unnecessary file from home
directory.
3. Boot the System in runlevel 3. you can pass the Kernel Argument from boot
loader.
4. Use command: system-config-display It will display a dialog to configure the
monitor, Video card, resolution etc.
5. Set the Default Runlevel 5 in /etc/inittab
id:5:initdefault:
6. Reboot the System you will get the GUI login Screen.
18 :: What is the main configuration file for XFree86 version 4?
A. /etc/X11/XF86Config
B. /etc/X11/XF86Config-4
C. /usr/X11R6/bin/XFree86
D. XF86_SVGA
B. /etc/X11/XF86Config-4
Read More19 :: Suppose In order to open up an SSH shell on a remote machine called tiger using the login name of admin,
what would be the proper command line for this?
A. openssh -l admin tiger
B. ssh -l admin tiger
C. ssh admin@tiger
D. sshd tiger admin
B. ssh -l admin tiger
C. ssh admin@tiger
Read MoreC. ssh admin@tiger
20 :: You can find all of the services managed by xinetd by looking at which of the following file or directory?
A. /etc/xinetd.d
B. /etc/inetd.conf
C. /etc/rc.d/init.d
D. /etc/xinetd.conf
A. /etc/xinetd.d
Read More21 :: How to Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.
1. Use fdisk /dev/hda ?To create new partition.
2. Type n ?For New partition
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ?You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
Default System ID is 83 that means Linux Native.
7. Type t to change the System ID of partition.
8. Type Partition Number
9. Type 82 that means Linux Swap.
10. Press w to write on partitions table.
11. Either Reboot or use partprobe command.
12. mkswap /dev/hda? ?To create Swap File system on partition.
13. swapon /dev/hda? ?To enable the Swap space from partition.
14. free ?m ?Verify Either Swap is enabled or not.
15. vi /etc/fstab
/dev/hda? swap swap defaults 0 0
16. Reboot the System and verify that swap is automatically enabled or not.
Read More2. Type n ?For New partition
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ?You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
Default System ID is 83 that means Linux Native.
7. Type t to change the System ID of partition.
8. Type Partition Number
9. Type 82 that means Linux Swap.
10. Press w to write on partitions table.
11. Either Reboot or use partprobe command.
12. mkswap /dev/hda? ?To create Swap File system on partition.
13. swapon /dev/hda? ?To enable the Swap space from partition.
14. free ?m ?Verify Either Swap is enabled or not.
15. vi /etc/fstab
/dev/hda? swap swap defaults 0 0
16. Reboot the System and verify that swap is automatically enabled or not.
22 :: Suppose You are giving the debug RHCT exam. The examiner told you that the password of root is redhat.
When you tried to login displays the error message and redisplayed the login screen. You
changed the root password, again unable to login as a root.
How will you make Successfully Login as a root.
When root unable to login into the system think:
1. Is password correct?
2. Is account expired?
3. Is terminal Blocked?
Do these Steps:
1. Boot the System on Single user mode.
2. Change the password
3. Check the account expire date by using chage ?l root command.
If account is expired, set net expire date: chage ?E ?NEVER? root
4. Check the file /etc/securetty ?Which file blocked to root login from certain terminal.
5. If terminal is deleted or commented write new or uncomment.
6. Reboot the system and login as a root.
Read More1. Is password correct?
2. Is account expired?
3. Is terminal Blocked?
Do these Steps:
1. Boot the System on Single user mode.
2. Change the password
3. Check the account expire date by using chage ?l root command.
If account is expired, set net expire date: chage ?E ?NEVER? root
4. Check the file /etc/securetty ?Which file blocked to root login from certain terminal.
5. If terminal is deleted or commented write new or uncomment.
6. Reboot the system and login as a root.
23 :: Suppose There are more then 400 Computers in your Office. You are appointed as a System
Administrator. But you don?t have Router. So, you are going to use your One Linux Server as a
Router. How will you enable IP packets forward?
1. /proc is the virtual filesystem, we use /proc to modify the kernel value at running time. So For
Current Session: echo ?1? >/proc/sys/net/ipv4/ip_forward
2. /etc/sysctl.conf ?when System Reboot on next time, /etc/rc.d/rc.sysinit scripts reads the file
/etc/sysctl.conf. So if you want to permanently set the IP forwarding enable, You should set:
net.ipv4.ip_forward=1
Here 0 means disable, 1 means enable.
Read MoreCurrent Session: echo ?1? >/proc/sys/net/ipv4/ip_forward
2. /etc/sysctl.conf ?when System Reboot on next time, /etc/rc.d/rc.sysinit scripts reads the file
/etc/sysctl.conf. So if you want to permanently set the IP forwarding enable, You should set:
net.ipv4.ip_forward=1
Here 0 means disable, 1 means enable.
24 :: How to Add a new logical partition having size 100MB and create the /data which will be
the mount point for the new partition.
1. Use fdisk /dev/hda ->To create new partition.
2. Type n-> For New partitions
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ->You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
7. Press w to write on partitions table.
8. Either Reboot or use partprobe command.
9. Use mkfs -t ext3 /dev/hda?
10. Or
11. mke2fs -j /dev/hda? To create ext3 filesystem.
12. vi /etc/fstab
13. Write:
14. /dev/hda? /data ext3 defaults 0 0
11. Verify by mounting on current Sessions also:
15. mount /dev/hda? /data
Read More2. Type n-> For New partitions
3. It will ask for Logical or Primary Partitions. Press l for logical.
4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
5. Type the Size: +100M ->You can Specify either Last cylinder of Size here.
6. Press P to verify the partitions lists and remember the partitions name.
7. Press w to write on partitions table.
8. Either Reboot or use partprobe command.
9. Use mkfs -t ext3 /dev/hda?
10. Or
11. mke2fs -j /dev/hda? To create ext3 filesystem.
12. vi /etc/fstab
13. Write:
14. /dev/hda? /data ext3 defaults 0 0
11. Verify by mounting on current Sessions also:
15. mount /dev/hda? /data
25 :: Suppose You are new System Administrator and from now you are going to handle the
system and your main task is Network monitoring, Backup and Restore. But you
dont know the root password. Change the root password to redhat and login in
default Runlevel.
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't
know the root's password. To change the root password you need to boot the system into
single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode
ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d
Read MoreId:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't
know the root's password. To change the root password you need to boot the system into
single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode
ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d