Recent Articles

Network Traffic Capture In Linux - Tcpdump Examples

tcpdump is a tool used for network packet capturing or packet analyzer that works for most of the unix-like operating systems. Also you can call as packet sniffer that operates on packet level. It allows users to capture and display TCP/IP and other packets being transmitted or receive over network to which computer is attached. Tcpdump tools […]

March 20, 2011 | By
| Reply More

How To Find Network Interface Details Using Linux Mii-Tool

Both mii-tool and ethernet tool allow linux system administrator to modify or change or check the network interface card. Both the tools can be used for diagnostic and identification of ethernet devices. Even you can control the links, set the auto negotiation mode, set the simlex, halfduplex or fullduplex mode. (Simplex, half duplex and full duplex […]

March 20, 2011 | By
| Reply More

How To Extend LVM Partition Online In Linux

For some reasons, sometimes we need to extend our storage. If you are using LVM on your Linux, here are some tips to extend your LVM partition online. We are using Oracle Linux 6.5 and RHEL 3 & RHEL 4. Please note, that all this command must be run using root privileges. Scenario 1 - Extend storage […]

March 20, 2011 | By
| Reply More

Linux Scan for New Scsi Device to Detect New Lun Without Reboot

This will scan the scsi host and there is no need to reboot to make devices (luns) visible. echo "- - -" > /sys/class/scsi_host/host#/scan Verify fdisk -l tail -f /var/log/message Replace host# with actual value such as host0. You can find scsi_host value using the following command: # ls /sys/class/scsi_host Now, type the following to […]

March 20, 2011 | By
| Reply More

Linux Install Network Or Ethernet Card In Linux

How to install a Network card in linux. There are different ways of installing a network card in linux- and that too depending on the linux distribution that you are using. I will explain each one of these methods here. 1) The Manual method First open the computer case and insert the network card into […]

March 20, 2011 | By
| Reply More

Can dd Command Used To Wipe Data? Examples

dd is a common Unix program whose primary purpose is the low-level copying and conversion of raw data. You can use this command backup whole hard drives, create a large file filled with only zeros, create and modify image files at specific points and even do conversions to upper case. dd command can strip headers, […]

March 20, 2011 | By
| Reply More

How To Use Linux Kill Command

The word kill itself shows its clear meaning and purpose. In Linux, kill command is used for terminating the process. The command kill sends the specified signal to the specified process or the process group. First we need find PID of the process, so that we can terminate the process. In our example, we will […]

March 20, 2011 | By
| 1 Reply More

Creating Logical Volume On Existing Volume Group In Linux

Create logical volume on existing VG (Volume group) First make sure you have proper space to create new lv. From the below output, you can see there is enough space to have a new lv: #vgdisplay /dev/vg01 --- Volume group --- VG Name vg01 VG Access read/write VG Status available/resizable VG # 0 MAX LV […]

March 20, 2011 | By
| Reply More

How To Ssh Server Using Private Key In Putty

How to ssh server using openssh software Generating OpenSSH private and public keys pair. To use public key authentication, the first step is to generate a pair of private and public keys on the Linux side. I would assume that you login as a user called "toylet". 1. Login Linux as user "toylet". You could […]

March 14, 2011 | By
| Reply More

CPU Bottleneck - How To Use Vmstat, Mpstat and SAR Commands

One of the main functions the kernel or Operating System is Memory Management. When process try to access physical memory, if physical memory not free, than kernel move the inactive processes to virtual memory then it is called Paging. To know which process is using physical memory and virtual memory, we use vmstat, mpstat, sar commands. […]

March 14, 2011 | By
| Reply More

How Linux Administrator Monitor High Cpu Utilization

CPU is core part the system and processes all the task. There are many methods to check the CPU performance on linux system. Most commonly used commands are top, ps, sar, iostat, mpstat and to check the daily CPU performance. Whenever CPU is busy in processing a particular task, it becomes unavailable to other processes. […]

March 14, 2011 | By
| Reply More

Difference Between NFS Soft And Hard Mount With Example

Using NFS protocol, the NFS client can mount the filesystem existing on a NFS server, just like a local filesystem. For example, you will be able to mount “/home” directory of host.nfs_server.com to your client machine as follows: # mount host.nfs_server.com:/home /techhome The directory “/techhome” should be created in your machine to hold the NFS […]

March 9, 2011 | By
| Reply More

How To Find Un Allocated Space On Linux

Using only fdisk, the "start" and "end" columns in your 'fdisk -l' output are the start and end cylinders. From the header of your 'fdisk -l' output, you can also see how many cylinders the disk has and how many bytes a cylinder represents. fdisk -l /dev/cciss/c0d0 Disk /dev/cciss/c0d0: 72.8 GB, 72833679360 bytes 255 heads, […]

March 9, 2011 | By
| 2 Replies More

Linux Samba Share Accessing And Mounting

Samba is a service in Linux that provides seamless file and print service to SMB/CIFS clients. One of the main feature of samba is that it allows interoperability between Linux/Unix servers and Window-based clients. In general, you can share resource-like files and printers over network between Unix to Unix as well as Unix to Windows. In […]

March 9, 2011 | By
| Reply More