wget-resume-download

Linux/UNIX wget command with practical examples

Posted by & filed under .

wget is a Linux/UNIX command line file downloader.Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.Wget is non-interactive, meaning that it can work in the background, while the user is not logged on. In this post we […]

ifconfig-command-in-editor

How to run Unix Commands in vi/vim editor

Posted by & filed under .

There are some scenarios where unix admin wants to run unix commands and insert the output of unix command in vi editor without leaving it. This can be possible using below steps : :!UNIX_command Example : Run the ifconfig command within the /etc/hosts file. linuxtechi@mail:~$ sudo vi /etc/hosts Insert UNIX Command Ouptut in vi editor […]

xarg

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-file-formats

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 […]