| Mobile | RSS

lsof

7 important uses of LSOF Command for Linux admin

important uses of LSOF Command – lsof is a Linux utility which lists the information about files opened by processes.LSOF is one of the powerful tool available for troubleshooting problems.

[ More ] November 10th, 2011 | 1 Comment | Posted in Applications, OS Internals, Troubleshooting |
autoconf

Autoconf – brief introduction for beginners

Autoconf is a set of tools which makes your project configurable and portable for running in Linux distributions. Simply, autoconf will help you to create configure script and Makefile for your code. Before going to generate configure script using autoconf, we need to define set of rules and dependencies. We are defining that rules and [...]

[ More ] August 25th, 2011 | No Comments | Posted in Applications, OS Internals, Scripting & Automation |
disable ping request

How to disable ping requests in Linux box

The basic network discovery always start with ping utility.So blocking the ping requests will make the system discovery difficult.To disable ping requests ,we just need to add/modify some kernel parameters. What we are doing here is the permanent change. So open /etc/sysctl.conf  and add the following line to /etc/sysctl.conf net.ipv4.icmp_echo_ignore_all = 1 And reload kernel [...]

[ More ] August 7th, 2011 | 1 Comment | Posted in OS Internals |
syslog

Centralized log host using Syslog

Building a centralized log host in your network will ease the process of troubleshooting your servers from a single window.Centralized log host will accepts all the log messages from client and store in that server.

[ More ] August 6th, 2011 | No Comments | Posted in OS Internals, Server Building |
environment variables

Environment Variables in Unix

Environment variables in Unix are a set of dynamic named values that can affect the way running processes will be have on a computer

[ More ] July 12th, 2011 | 1 Comment | Posted in Applications, OS Internals |
runlevel

How to find current system runlevel

What is run level in Unix??? Run level defines the predefined set of operational state for Unix system.The operational state is defined in file  inittab which is located in /etc. init command used to switch between different run levels.init command followed by runlevel will switch system to corresponding runlevel Eg:  init 3 This will switch [...]

[ More ] July 9th, 2011 | 2 Comments | Posted in OS Internals |
boot screen

Boot Linux GRUB into single user mode

First runlevel for Linux system which only one user is allowed to access that root user.Single user mode is useful for fixing some system problem like filesystem errors,recovering root password etc.So these are the steps for entering to single user mode in Linux.This is based on redhat enterprise linux 5( RHEL 5) Steps: Press any [...]

[ More ] July 8th, 2011 | 1 Comment | Posted in OS Internals, Troubleshooting |
LVM management

Create Logical volume (LVM2)

First we need to find out which disks and partitions are being used. So we could use the following commands #df -h [This  will display which partitions  are being used] #fdisk -l [This will show which disks are being used and disks that are not mounted.] Now we can start the lvm implementation,we have two [...]

[ More ] June 30th, 2011 | No Comments | Posted in OS Internals |
LVM management

How to mark volume groups as active or inactive

How to mark volume groups as active or inactive in Linux using lvchange command in Linux

[ More ] June 30th, 2011 | No Comments | Posted in OS Internals |
redhat cluster suite

Fencing process in Redhat Cluster

Fencing is the disconnection of a node from the cluster’s shared storage. Fencing cuts off I/O from shared storage, thus ensuring data integrity. There are two fencing programs fenced Configured with CMAN/DLM GULM Configured with GULM servers When the cluster manager determines that a node has failed, it communicates to other cluster-infrastructure components that the [...]

[ More ] June 29th, 2011 | 2 Comments | Posted in OS Internals, Server Building |
rsync

Synchronize data between two servers using rsync

Rsync: rsync is an application used in unix systems which synchronize files and directories between two machines.rsync behaves like rcp(remote file copy),but it much faster than rcp.because rsync sends the differences in the files instead of sending entire files. Servers are SERVER_SOURCE & SERVER_DESTINATION Configure SSH key authentication In SERVER_DESTINATION open sshd_config file vi /etc/ssh/sshd_config [...]

raid array

RAID -Redundant array of independent disks

RAID is an acronym for Redundant Array of Independent Disks. With RAID enabled on a storage system you can connect two or more drives in the system so that they act like one big fast drive or set them up so that one drive in the system is used to automatically and instantaneously duplicate (or mirror) your data for real-time backup.

[ More ] June 29th, 2011 | No Comments | Posted in OS Internals |
Linux kernel

Kernel patch & compilation

Get linux kernel version with this command # uname -a Now perform this steps # cd /usr/src/linux # make mrproper # make oldconfig # make bzImage # make modules # make modules_install # make install # reboot In new Redhat systems, the headers are included in the kernel-devel package and the compile process is a [...]

[ More ] June 29th, 2011 | No Comments | Posted in OS Internals |
rtlinux

Real Time Linux -RTLinux overview

RT-Linux is an operating system in which a small real-time kernel coexists with the Linux kernel which was originally developed by Victor Yodaiken at the New Mexico Institute of Mining and Technology.RTLinux supports hard real-time operation through interrupt control between the hardware and the operating system. Interrupts needed for deterministic processing are processed by the [...]

[ More ] June 28th, 2011 | No Comments | Posted in OS Internals, Server Building |
iptables

IPtables-Basic concepts

The IPTables program that comes with Linux distributions allows administrators to configure the operating system so that it allows applications and clients to connect through the network and stop unwanted applications and clients from communicating and corrupting the operating system.It is really a front end tool to manage netfilters which is integrated with the linux [...]

[ More ] June 26th, 2011 | No Comments | Posted in Basic Setup, OS Internals |
directory sharing

etc passwd file format for Linux and UNIX

/etc/passwd file stores  user account information, which is required during login. /etc/passwd is a text file, that contains a list of the system’s accounts, giving for each account some useful information like user ID, group ID, home directory, shell, etc. It should have general read permission as many utilities, like ls use it to map [...]

[ More ] June 26th, 2011 | No Comments | Posted in Basic Setup, OS Internals |
user management

User management commands in Linux

Linux Commands for managing users: 1. adduser – Command used to add user accounts. 2. chage – Used to change the time the user’s password will expire. 3. chfn – Change a user’s finger information 4. chsh – Change a user’s shell. 5. chgrp – Changes the group ownership of files. 6. chown – Change [...]

[ More ] June 26th, 2011 | No Comments | Posted in Basic Setup, OS Internals |
linux boot process

File Permissions

There are three types of access: 1. read 2. write 3. execute Each file belongs to a specific user and group. Access to the files is controlled by user, group, and what is called other. The term, other, is used to refer to someone who is not the user (owner) of the file, nor is [...]

[ More ] June 26th, 2011 | No Comments | Posted in Applications, OS Internals |
linux boot process

Basic commands

cat Sends file contents to standard output.This is a way to list the contents of short files to the screen.It works well with piping. Eg:cat .bashrc (Sends content of “.bashrc” file to screen). cd Change directory eg:cd /home Change the current working directory to /home. The ‘/’ indicates relative to root, and no matter what [...]

[ More ] June 26th, 2011 | 1 Comment | Posted in Basic Setup, OS Internals, Scripting & Automation |
linux boot process

Linux boot process

Linux booting process includes the following events 1. BIOS: The system’s BIOS(Basic Input Output System) initializes and perform internal checks on the hardware components of the system,including CPU,memory,harddrives video system etc 2. MBR: The system checks the MBR(Master Boot Record) of the boot harddrive ,which loads into memory the boot loader for the system.For linux [...]

Related Posts Plugin for WordPress, Blogger...
[ More ] June 26th, 2011 | 1 Comment | Posted in OS Internals |