Pages

Friday, August 31, 2012

Resource Management : Free

The Free command is only of the mostly used command in linux system. It displays amount of free and used memory in the system. When you execute the free command like, it gives the details of the memory as well as the information about the buffer, shared and cached also. [root@vx111a ~]# free –m (m option shows the memory in MB)                   total       used      ...
Read More

Wednesday, August 29, 2012

Auditing in Linux

There are cases for an admin, where he needs to identify various operations performed on a file, or number of commands a particular user has executed. Linux provides the auditing facilities for these sorts of operations. Linux Kernel (2.6.x) comes with audit daemon. It’s responsible for writing audit records to the disk much like logs information when a specific thing happens. To Find Whether audit was already installed...
Read More

Tuesday, August 28, 2012

Run a Process On Specific Processor In Linux

Many Times, there will be a need of multiple processors on a server system to provide better performance and availability. When we use more processors, a subset of these can be made available to specific applications. This can be useful for some applications which are highly timing-sensitive, or when it is desired otherwise that an application always have one or more processors available to it. In Linux, it is possible to effectively...
Read More

Monday, August 27, 2012

More DU Commands

Here are a list of 'du' commands that i use in my daily work.These will be updated regularly. du -sh * | sort -n | tail Get the 10 Biggest Files du -hs */ List Complete Size Of Directories du -sh ./* | sort -nr Disk Usage Command Sorted by Size du -sh Sum File Sizes du -ms * | sort -nr Sort all Files Rounded to the Nearest...
Read More

Friday, August 24, 2012

Linux Environment Variable

An environment variable is a named object that contains data used by one or more applications. In simple terms, it is a variable with a name and a value. The value of an environmental variable can for example be the location of all executable files in the file system, the default editor that should be used, or the system locale settings. Environment variables in Linux are used by most of the activities taking place on a Linux...
Read More

Process Based Commands

Some Process Based Commands (Updated Regularly) List the Process based on the UID and Commands ps -f -u wwwrun,postfix List process based on Commands ps -aux | grep command or ps -f -C run.pl (find Process by run.pl) List the processes based on PIDs or PPIDs ps -f --ppid List Processes in a Hierarchy ps -e -o pid,args –forest Get Details of the Process...
Read More

Process In Linux

A Process is a running instance of a program. So whenever we start something, there is a process associated with that. If you have two files opened on your window, then we have 2 process belonging to those files available. A process started will contain all of its variables and also states. The CPU runs switches from one process to other process making the user think that it is running multiple processes at a time, but...
Read More