Quickly Generate Dummy Files Of Different Sizes From Linux Command Line

It can be useful to create sample blank or dummy files of various sizes for testing and other purposes. In Linux, there are different ways to do this from the command line but an easy one for this is to use the fallocate command. This command simply allocates disk space for files based on the size specified. The common syntax for this is : fallocate -l filesize filename The -l parameter is the input...

A Menu Based Linux Shell Script To Display Local And Public IP Addresses Of The System

Listing local ip address of the system
When connected to the internet, the computer in use has a public ip address (or external ip address) that is assigned by the ISP and which is how it appears to the visiting websites and then there is the local ip address (or internal ip address) which is how it can be identified locally to other systems. Let’s suppose that we need a simple Linux shell script that offers a menu based choice like...