≡ Menu


HowTo: Find Out RHEL 6 / CentOS 6 Kernel Version

How do I find out my RHEL (Red Hat Enterprise Linux) 6 Linux kernel version number running on HP server?
[click to continue…]

Redhat Linux Network Interface Configuration (NIC) File Location

Where are NIC (network interface configuration) files located in the Redhat / Fedora / Centos Linux?
[click to continue…]

OpenBSD Change Hostname

Q. How do I change my hostname under OpenBSD operating system?
[click to continue…]

I'm setting up WordPress based blog system under Debian or Ubuntu Linux. I am getting an error which read as follows:

Your PHP installation appears to be missing the MySQL extension which is required by WordPress

How do I fix this problem under Debian or Ubuntu Linux?
[click to continue…]

Linux Mail Delivery Failed With DNS Service Unavailable Error and Solution

Q. I get following error message for my postfix email server:

Mail Delivery Failed With DNS Service Unavailable Error and Solution

How do I fix this problem?
[click to continue…]

Cannot ping Linux / UNIX / Windows server by name but can ping by its IP address

Q. I have Debian Linux server in remote data center. I can ping server by its IP but not by hostname such as server.domain.com. How do I ping server by hostname?

A. This is client side DNS problem. All you have to do is setup correct DNS server:

=> Linux DNS Client Configuration

=> Solaris DNS Client Configuration

Linux change my hostname / computer system name

Q. I’m using Ubuntu Linux. How do I change my hostname or the machine name?

A.. You need to use hostname command, which is used to either set or display the current host or domain name of the system. This name is used by many of the networking programs to identify the machine.

Following instructions should work on both Debian and Ubuntu Linux systems.

Task: Display current hostname

Just type hostname command print the name of the system:
$ hostname


Task: Change hostname

Set hostname to desktop.nixcraft.com:
# hostname desktop.nixcraft.com
# hostname



Task: Change hostname permanently

You need to edit a file called /etc/hostname:
# vi /etc/hostname
Set new hostname:


Save and close the file.

A note for Redhat / CentOS Linux users

If you are using CentOS or Fedora or Redhat (RHEL) Linux, see this FAQ.

BASH Shell: Change The Color of My Shell Prompt Under Linux or UNIX

How do I change the color of my shell prompt under Linux or Unix operating systems?
[click to continue…]

Import MySQL Dumpfile, SQL Datafile Into My Database

How can I import a MySQL dumpfile into my database? I'm using CentOS Linux 5 server. My old hosting provider gave me a data.sql file and I do have access to my Unix / Linux server via ssh. So How do I restore my data using command line over the ssh session?
[click to continue…]