300+[LATEST] Red Hat Certified Engineer (RHCE) Interview Questions and Answers

Q1. What Is Gzip?

Gzip is a compression utility created by the GNU project.

Q2. As A Administrator You Need To Monitor The /var/log/messages File In Real Time To Resolve The Issue? How Would You Do That?

You can use tail command with -f option. Following command will do the assigned task

#tail -f /var/log/messages

Q3. Which Command Will Assign Ip Address 192.168.1.1 And Subnet Mask 255.255.255.0 To Eth0 Network Interface?

Ifconfig command can be used to assign IP address. Following command will do the given task. Ifconfig eth0 192.168.1.1 net mask 255.255.255.0

Q4. Which Log File Keeps Track Of All User Logins And Logouts?

/var/log/wtmp log file keeps track of all user logins and logouts.

Q5. What Command Runs Fdisk On The First Ata/ide Hard Drive?

The first ATA/IDE hard drive is hda, so the command would be

# fdisk /dev/hda

Q6. Which Partition Store System Configuration Files In Linux System?

/etc partition stores system configuration files in Linux.

Q7. What Command Is Used To Load A Module Into The Kernel?

The insmod command is used to load a module into the kernel.

Q8. Which Organization Controls The Official Releases And Updates Of The X Window System?

The X Consortium at www.x.org controls the official release and updating of the X Window System.

Q9. What Command Can An Administrator Use To Track Real-time Information On Processes And The Resources That They Are Using?

The top command is used to monitor processes and resources in real-time.

Q10. You Are Tasked To Set Up A Schedule To Perform Automatic Checks Of Available Disk Space At The End Of The Day. How Can You Accomplish This Task?

To accomplish this task set up cron to run a script that will check the disk space daily at 7:00 p.m. The output will be e-mailed to the root account. You can compare the results from day to day to analyze disk space usage.

Your cron file should look similar to the following:

* 19 * * * df -kl.

Q11. What Is The Alternative Method To A Gui Installation In Linux?

Linux provides text base installation as the alternative method of GUI installation.

Q12. You Need To Kill All Instances Of Web Server? What Command Will You Execute To Do This?

You can use killall httpd command to kill all httpd process. httpd process run web server.

Q13. An Administrator Wants To Assign An Ip Address Of 192.168.1.10, A Subnet Mask Of 255.255.255.0, And A Broadcast Address Of 192.168.1.254 To Eth

Following command will do this task. Ifconfig eth1 192.168.1.10 net mask 255.255.255.0 broadcast 192.168.1.254.

Q14. How Can You List All Running Process?

Use ps -ef command to list all running process.

#ps -ef

Q15. An Administrator Has Accidentally Killed A Core Process. What Is The Result Of This Action?

Killing a core process can potentially crash your system because many critical services rely on these core processes.

Q16. Which Command Will You Use To Bring A Process In Foreground, Which Is Running In The Background?

The fg command immediately moves the program to the foreground.

Q17. As A Linux Admin You Want To Know What Processes Are Being Run By User Sumit. What Command Can You Use?

You can use #ps -au command to list all the process owned by user. Following command will do the assigned task

#ps -au summit

Q18. Which Is The Standard Command Used To Uncompress Gzip Files?

The standard command used to uncompress gzip files in gunzip.

Q19. As A Administrator You Need To Terminate The Send Mail Process. How Will You Do That?

First you need to determine the PID of send mail so it can be killed.

#ps -ef |grep send mail

Now you can use kill command to terminate the process associated with send mail.

Q20. While Installing The New Rpm What Common Steps Should Take?

You should follow these common steps:

  • Use RPM tools should be used to query or verify the installed packages to.
  • Confirm the installation of any previous packages.
  • Check the signature of new package.
  • RPM should be installed or upgraded by first using the test mode to verify that it works, and then it should be installed.
  • At the end query the RPM and verify the installation of RPM.

Q21. What Is The Command Used To Remove An Rpm Package Named Demofilename2.2-2.i386.rpm?

The most common command used to remove an RPM package is rpm -evh. Following command will remove the given package

#rpm -evh demofilename2.2-2.i386.rpm

Q22. While Scanning The /var/log/messages File, You Notice An Error Stating An Authentication Failure For Root. What Could This Mean?

Any failed login attempts for root are logged into the /var/log/messages file. It indicate that some has tried to login as root.

Q23. To Create A Recurring Scheduled Task, Which Linux Scheduling Tool Should You Use?

The cron command allows you to create recurring tasks.

Q24. What Command Can You Use To Enable An Ethernet Network Interface That Has Already Been Configured?

To enable already configured interface use Ifconfig [interface] up command. For example to up eth0 interface use following command.

#Ifconfig eth0 up

Q25. Name Any Four General Password Rules For User Account?

  • Include at least eight total characters.
  • Use the string in an unrepeated way.
  • Avoid use words that can be found in the dictionary..
  • Avoid use dates of significance, such as a birthday or anniversary.

Q26. What Command Is Used To Exit The Edit Mode Of Vi Editor?

The [esc] key is used to exit from the edit mode of VI editor.

Q27. What Command Do You Use To Format A Partition With A File System?

You could use mkfs command to format partition with file system.

Q28. When Checking The Partition Information On Your Hard Drive With Fdisk, You Notice That One Of The Partitions Is Formatted As “linux Swap” And Is Approximately 512mb In Size. What Is The Purpose Of Thi

The Linux swap file is used for virtual memory to store additional information that cannot fit into current memory. This swap file allows information to be cached on disk, and can be retrieved very quickly. Heavy use of the swap file indicates a low memory condition.

Q29. What Sort Of Kernel Error Can Cause A Linux System To Crash And Write A Memory Core Dump?

Kernel panic error can cause a Linux system to crash. A kernel panic indicates that a kernel process has crashed. This is a very serious error that causes the entire Linux system to crash. These core dumps should be analyzed carefully to find the root cause of the problem.

Q30. Ppp Is Most Often Used To Create?

PPP is most often used to create serial point-to-point connections.

Q31. Which Option In Fdisk Will Display The Partition Table?

In fdisk utility, the “p” command will print the partition table.

Q32. What Is The Command Used To Install An Rpm Package Named Demo Filename 2.2-2.i386.rpm?

The most common command used to install an RPM package is rpm -ivh. Following command will install the given package

#rpm -ivh demo filename 2.2-2.i386.rpm

Q33. An Application Is Creating Several, Very Large Core Dump Files. What Should The Administrator Do If He Has No Intention Of Debugging These Files?

If administrators have no intention of keeping these files for debugging purposes, they should be deleted because they are wasting valuable disk space, and may cause system to run out of space.

Q34. You Execute A Command That Is Going To Take A Long Time. How Can You Get Back To Your Shell Prompt To Perform Other Task?

You can use bg command to send a running process to the background.

Q35. What Is The Purpose Of The Swap On Command?

Swap on command is used to activate a already created swap partition. It cannot be used to create a new swap partition.

Q36. What Is The First Process That Is Run When A Linux System Starts, And Is Responsible For Starting All Other System Processes And Services?

The init process is the first process to be run. It is the parent process of all other Linux system processes, services, and daemons that are needed to run the system.

Q37. What Is Kerberos Used For?

Kerberos is used for secure network logon.

Q38. What Is The Command Used To Update An Rpm Package Named Demofilename2.2-2.i386.rpm?

The most common command used to update an RPM package is rpm -Uvh. Following command will update the given package and remove the old.

#rpm -Uvh demofilename2.2-2.i386.rpm

Q39. What Is Tar?

Tar is an archive utility that is used to create tape backups.

Q40. Where Is The Automatically Mounted File Systems Listed?

The automatically mounted file systems are listed in the file /etc/fstab.

Q41. What Is The Purpose Of The Md5 Option On Passwords?

MD5 is an encryption method that encrypts the password before saving.

A better method of password security is to create difficult-to-break passwords that are easy for the users to remember.

Q42. You Noticed A Kernel Error Message During The Boot Process, But It Scrolled Before You Could Read This? What Log File Could You Check To Find Out That Message?

The log file that contains kernel boot messages is /var/log/dmesg.

Q43. From The Output Of Ps Command How Will You Determine The Id Number Of The Parent Process Of A Particular Program?

PPID refers to the parent process identification number.

Q44. What Is The Rpm Switch For Only Installing Packages?

The command line switch for installing an RPM is -i.

Q45. How Will You Decompress The Demo.tar.gz File?

To decompress use following command

#tar -zxvf demo.tar.gz

Q46. How Would You Create A Backup Of The Fstab File To The /backup Folder?

Use cp command to create the backup.

#cp /etc/fstab /backup

Q47. As An Administrator You Noticed From Top Command That An Unidentified Process Is Using Up All Cpu And Memory. You Suspects That Is A User’s Process That Has Run Away. How Should You Fix This?

The process should be immediately killed before it consumes so many resources that the server cannot run properly and therefore crash.

Q48. A Developer With Username Sanjay Has Told You That One Or His Processes Seem To Be Locked Up And He Cannot It. He Reported That It A Bug In His Code And May Quickly Use Up All Cpu And Ram Resources On

Your first step is to identify the process, use ps command

#ps -au sanjay

Now run top command to compare the process running, and verify which one is using the most resources. After you have identified the problem process, you can use the kill command to terminate it. Because the user was unable to stop the process, you should probably force a kill signal to make sure that the process stops:

#kills -9 [PID of process]

Now, to verify that it has stopped, run the ps command again on the user:

ps -au sanjay