Recent Articles

How To Use Command Line Arguments In Shell Script

In a shell script, you can pass variables as arguments by entering arguments after the script name, for e.g. ./script.sh arg1 arg2. The shell automatically assigns each argument name to a variable. – Arguments are set of characters between spaces added after the script. To specify an argument that includes spaces, you need to enclose […]

September 25, 2013 | By
| Reply More

Do Suspect Memory Leak With Your System ? Try Valgrind Tool

Valgrind is a collection of command line tools that can be used for debugging and profiling executables in Linux. Memcheck is one of the most popular tool in the Valgrind suite of tools that can be used to detect memory related errors in a program executable. In this article, we will discuss the Memcheck tool […]

September 23, 2013 | By
| Reply More

How To Install Nginx PHP MySql On Debian Squeeze

Nginx is an awesome peace of software that is being used worldwide by some of the busiest websites to serve web pages. It's a high performance web server with minimal server consumption and you can run your wordpress blog or a magento store with minimum set of Hardware requirements. In this post we well install […]

September 18, 2013 | By
| Reply More

Understanding C Pointer Fundamentals - With Examples

A pointer is a variable that points to a memory location by storing its memory address. Though a pointer can point to any address but generally the memory address stored by a pointer is that of a program variable (local or global) or that of a memory chunk on heap (i.e., dynamic memory). Pointers not […]

September 16, 2013 | By
| Reply More

Linux Top Command - Find How Much Memory The Process Use

However, generally we look at the memory usage as the 'free' command that provide us the total physical memory and used memory out of total memory . But top command is more useful to check memory usage in linux. Free command display only physical memory usage but top display virtual memory usages by each process. […]

September 13, 2013 | By
| Reply More

Linux Pmap Command - Find How Much Memory Process Use

Pmap provide memory map of a process, The pmap command display the memory usage map of a process or multiple processes. Pmap reports information about the address space or memory usage map of a process. Pmap is actually a Sun OS command and Linux supports only very limited number of features. But it is very […]

September 11, 2013 | By
| Reply More

Linux PS Command - Find How Much Memory Process Use

The ps or "process status" command is used to provide information about the currently running processes, including their process identification numbers (PIDs), USER, TTY, %CPU, %MEM and command. Every process is assigned a unique ID the system that is called PID. Here USER is username, under which user a process is running. TTY stands for […]

September 9, 2013 | By
| Reply More

Linux Change File / Directory Ownership - Chown Command

The files, directories and processes (which are again files) in Linux are owned by users. They have a group owner. The owner and group ownership is important as the security of files through permissions (the DAC) is set on owner, group owner and others. The chown command can change the ownership and group ownership of […]

September 5, 2013 | By
| Reply More

Linux Change File Permission - Chmod Command

The Linux security starts with file permissions. On the very basic level, file and directory permissions play a vital role in security of a system. The file permissions are applied on three levels: the owner, group members and others. The chmod command is used to change these permissions. This article discusses how these file permissions […]

September 2, 2013 | By
| Reply More

Power Of Linux Sort Command

Sorting in Linux can be performed with a simple utility command sort. Of course, it sorts its input, alphabetically by default, though it can sort numerically as well. It takes input from STDIN by default, but can sort files when file names are provided as argument. This article explains sort command with examples. Linux Sort […]

August 26, 2013 | By
| Reply More

Power Of Linux sed Command

Linux Sed command is a stream editor that can perform basic text transformation on input stream. It can be used for editing in shell scripts for non-interactive editing. Other command line editors like vi, nano or emcs are big text editors, and these cannot be used for non-interactive editing. Sed's ability to filter text in […]

August 19, 2013 | By
| Reply More

Fg/Bg Command - Linux Manage Process Foreground / Background

Linux treats everything as file. Even the processes are present as files under /proc directories. The processes are basically programs in execution. They can also be called jobs. We can run the jobs in background without any intervention from user. The jobs can be run in foreground as current jobs. The bg and fg commands […]

August 12, 2013 | By
| Reply More

Linux wc Command - File Count Options

The linux wc utility in Linux counts the number of bytes, characters, words, and lines in a file or in standard input. This is a small but very useful utility provided among various utilities in Linux. This article explores wc command. Wc commamd By default, wc takes its input from STDIN. The default output counts […]

August 5, 2013 | By
| Reply More

Linux Groupadd Command - Adding New Groups

The linux groupadd command is used to add a new group to the system. The groups are required for easy maintenance of users. Multiple users can be part of a group and a user can be part of more than one group. So there is many to many mapping of users to groups. This article […]

July 29, 2013 | By
| Reply More