Tag Archives: bash

bash scripts

Bash: Get IP and IPv6 address and interfaces.

First use this commands to see your IP and IPv6 address and interfaces.

Now if you want to use this every day, just open your .bashrc file from your home folder. Add these functions to the .bashrc file:

Now open a new terminal shell and use it:

Make screenshot with android and linux .

You need SDK from the Android website on your Linux distro. Power on your device tablet and you need to connect on your PC. Enable debug mode on your tablet. Go to shell Linux and on the platform-tools folder, you use this command:

Start your application from tablet and under Linux shell use the… Read More »

Linux .bashrc to extract many archives

This is just a new function to uncompressing many files like: .tar.bz2,.tar.gz,.bz2,.rar,.gz,.tar,.tbz2,.tgz,.zip,.Z,.7z Open .bashrc file from home/user folder. With your text editor and add the next function on the end of the file.

Open a new terminal. This will work with the new function from .bashrc.

Simple bash script to create folders, files and images .

How to create a series of directories using a standard format.

Let’s see the result :

Delete all this folder is easy, just use this command:

How to create a series of text files using a standard format.

Let’s see the result :

How to create a series of random… Read More »