Recent Articles

What is Initrd Image? How To Create Initrd Image In Linux

The boot process of a Linux system involves a number of stages. These include the BIOS initialization, reading the MBR, the bootloader, kernel initialization and the init process. The initrd (initial ramdisk) plays a very significant role in booting up the system. This article discusses this initrd ramdisk and how we can create it if […]

May 27, 2011 | By
| 1 Reply More

7 Examples Linux Dmidecode Command - Display Hardware Details In BIOS

Dmidecode command reads the system DMI (Desktop Management Interface) table to display hardware and BIOS information of the server. The output of the dmidecode contains several records from the DMI table. This table contains a description of the systems hardware components and also other useful information such as serial number, BIOS revision, etc. As you […]

May 27, 2011 | By
| Reply More

How To Preserve Symbolic Links In Tar Command

How to preserve symbolic links especially when you tar the files is explained below. We all know how to use tar command. Below option shows the way to preserve links when you archive. Example: # tar -cvhf archive.tar /backupfolder Note: What you need to remember is that when tar archives a symbolic link, it writes a […]

May 27, 2011 | By
| Reply More

7 Examples On Linux Rar Command For Compression

RAR is a file format used for data compression and archiving. The command was developed by Eugene Roshal and is used to create compressed files. The RAR format supports data compression, error recovery and file spanning. It supports files larger than 4 gigabytes. RAR files can only be created through commercial software. You can unpack […]

May 24, 2011 | By
| Reply More

Linux - Manage Spaces And Special Characters In File Name

In Linux, whitespace is a special character and one of the most frequently used characters. It separates the commands or arguments to the commands. For example, the copy command treats the first file assigned to it as the source file and the second file as the destination file. These two file arguments are separated by […]

May 24, 2011 | By
| Reply More

Explained Linux Kernel Tuning Using Sysctl (/etc/sysctl.conf)

Sysctl is a powerful Linux command which acts as an interface to dynamically change the kernel parameters. With the help of this command, you can modify the kernel parameters without recompiling the kernel or rebooting the machine. The parameters available for modification can be found under /proc/sys directory. So, procfs (file system simulation to be […]

May 24, 2011 | By
| Reply More

7 Examples To Delete/Erase Contents Of File In Linux But Not File

Deleting a file in Unix/Linux is as simple as issuing the “rm” command (with file name as an argument). But here, we present some methods that will empty your file rather than deleting it. It means that the contents of the file will be removed and not the file itself. In the following methods, we […]

May 23, 2011 | By
| Reply More

How To Add And Configure Remi Repositories In Linux

The official packages shipped with enterprise Linux such as RHEL contain packages that are officially supported by Red Hat Inc. These are stable packages but these are not up to date. But sometimes you might require some latest packages for your web-based services and applications such as latest versions of MySQL and PHP. You can get these […]

May 21, 2011 | By
| Reply More

Linux SSH Configuration And How To Disable SSH Direct Root Login

SSH is the secure shell for remote login. SSH provides an encrypted and secure communication for accessing a remote machine. You can login to a machine on the network and execute commands on it as if it was present locally. SSH has replaced telnet and other insecure remote shell protocols. In telnet, all the data along with […]

May 21, 2011 | By
| Reply More

Semaphore error (semget)-Apache crash

The issue causes mainly due to insufficient disk space available for apache resources. Fixes: 1. Check /etc/httpd/domlogs, if it is motre than 2GB that will cuase the issue; reduce the size and restart apache. 2. Check the error_log, access_log and other log files if anything is above 2B that will cause the issue; reduce the […]

May 21, 2011 | By
| Reply More

What Is Safe Mode In PHP: Need For Disabling/Enabling PHP Safe Mode

What is safe mode in PHP? The PHP safe mode is an attempt to solve the shared-server security problem. When safe mode is on, PHP checks to see if the owner of the current script matches the owner of the file to be operated on by a file function or its directory. For example: -rw-rw-r-- […]

May 18, 2011 | By
| Reply More

Example How To Add Directories To PATH Variable In Linux

The environment variables control the behavior of the shell. Environment variables are the variables that set the working environment of the shell. Some of the environment variables are USER, HOME, SHELL, PWD, SHELL, PS1, PS2, etc. The HOME variable contains the path of home directory of the user. Similarly, the other variables contain other values […]

May 18, 2011 | By
| Reply More

8 Examples For Linux Zip And UnZip Command

Linux zip command The 'zip and unzip' command is one of the programs used in Linux to create compressed files. However, these utilities are not installed by default. You can install both these utilities from the shell prompt but you must be a root user to do so. Using the 'yum' command you can install zip […]

May 18, 2011 | By
| Reply More