≡ Menu

Linux

Linux has evolved a lot since its inception. It has become the most widely used operating system when in comes to servers and mission critical work. Though its not easy to understand Linux as a whole but there are aspects which are fundamental to Linux and worth understanding. In this article, we will discuss about [...]

{ 4 comments }

5 Standard Completion Available in Linux Bash Command Line

In Linux, by default Bash provides the following standard completion for users to use in the command line: Variablename completion Username completion Executable completion Filename and directory completion Hostname completion 1. Variablename Completion After typing $ in terminal, pressing tab twice will display all available shell variables as shown below. $ echo $[TAB][TAB] $_ $COMP_POINT [...]

{ 7 comments }

Gdb is an essential tool to debug C programs. Breakpoints are the way to tell GDB to stop or pause the program execution at certain line, or function, or address. Once the program is stopped you can examine and change the variable values, continue the program execution from that breakpoint, etc. If you are new [...]

{ 1 comment }

How to Remove Files Older than N days using tmpreaper in Linux

tmpreaper is a tool to remove files which are not accessed for a certain period of time. On Linux desktop distros, this is good for cleaning directories like “~/Downloads”, where files get accumulated over a period of time. On Linux server distros, this is good for cleaning old log files or backup files that are [...]

{ 9 comments }

How Much Swap Space to Add for Oracle Database on Linux

If you are running Oracle database on your environment, and having some performance issues because of memory, you may have to look at the swap space configured on your system. For Oracle 11g database, the following is the recommendation from Oracle in terms of how much space space you should add. If your RAM size [...]

{ 5 comments }

How to Change HostName and IP-Address in CentOS / RedHat Linux

You can use any one of the following methods to change the hostname and/or ip-address on RedHat related distributions. If you want to change only the hostname you can either do it from command line, or from GUI as explained below. To change the ip-address along with the hostname, follow the steps shown below. I. [...]

{ 10 comments }

12 UNIX / Linux Time Command Output Format Option Examples

Linux time command is helpful to identify the time taken by a command. Using Linux time command, you can figure out how much time was taken to execute a command, or shell script, or any other program. By default, time command executes the given command or program. After execution, it displays the statistics and resources [...]

{ 7 comments }

In PHP you can manipulate image files using GD library. It support several formats including GIF, PNG, JPEG, etc. You can use LibGD library to stream images directly from your application to the browser. This tutorial explains how to enable GD functionality in PHP. Download LibJPEG Library First, download the LibJPG files from here. Or, [...]

{ 3 comments }