Linux/UNIX xargs command examples

Posted by & filed under .

xargs is a command in UNIX like System that reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo) one or more times with any initial-arguments followed by items read from standard input. Blank lines […]

datafile for awk

Linux/UNIX Awk Command Tutorial with Examples

Posted by & filed under .

AWK  Stands for 'Aho, Weinberger, and Kernighan' Awk is a scripting language which is used  for  processing or analyzing text files. Or we can say that awk is mainly used for grouping of data based on either a column or field , or on a set of columns. Mainly it's used for reporting data in […]


youtube-dl – download Youtube videos from linux command Line

Posted by & filed under .

Youtube-dl is a small command-line program to download videos from YouTube website and other sites that don't provide direct links to the videos served. youtube-dl allows the user, among other things, to choose a specific video quality to download (if available) or let the program automatically determine the best (or worst) quality video to grab. […]

Reduce size of ext3/ext4 LVM partition in RHEL & CentOS

Posted by & filed under .

Sometimes when we are running out of disk space in our linux box and if partition created on LVM , then we can make some free space in the volume group by reducing the LVM using lvreduce command.In this article we will discuss the required steps to reduce the size of LVM safely. Scenario : […]

Extend or increase LVM Partition’s size using lvextend command

Posted by & filed under .

Resizing the file system size is an important task of Linux admin’s profile. In Linux , LVM(Logical Volume Manager) provides the facility to increase and reduce the file system size. In this tutorial we will discuss the practical examples of lvextend. Scenario¬†: Suppose we have a LVM partition(/home) and running out of space, we can […]

LVM : A good way to utilize disks space

Posted by & filed under .

  Scenario :   Let say , You have 5 disks each with 20 GB , now you have requirements to create FS of size 25 GB and 35GB and let rest of the  space  unassigned for any future needs .    Technically , this is  not possible to allocate space as each disk is […]

Find Out Server CPU Architecture(32 bit or 64 bit) in Linux

Posted by & filed under .

Some times it is very important to know whether the Server's cpu Architecture is of 32 bit or 64 bit. One can determine using the file /proc/cpuinfo , as shown below : [root@localhost ~]# cat /proc/cpuinfo | grep -i flags flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca […]

Fixing LVM I/O Errors

Posted by & filed under .

Situation : Most of us faced errors mentioned below during our system admin activities   , this is mainly related to the removable storage media that we use on unix servers' Reason of this could be because removing the disk/LUN's without clean shutdown/unmount or deattaching disks from LV's  . /dev/sdf: read failed after 0 of 4096 at 0: […]