30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X

An alias is nothing but the shortcut to commands. The alias command allows the user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display a list of all defined aliases. You can add user-defined aliases to ~/.bashrcfile. You can cut down typing time […]

Read More →
Bash scripting Tutorial

Hello World Bash Shell Script linuxconfig.org:~$ which bash > hello-world.sh linuxconfig.org:~$ vi hello-world.sh linuxconfig.org:~$ chmod +x hello-world.sh linuxconfig.org:~$ ./hello-world.sh Hello World linuxconfig.org:~$ 00:00   First you need to find out where is your bash interpreter located. Enter the following into your command line: $ which bash Open up you favorite text editor and create file […]

Read More →
Introduction aux scripts shell

Vous venez d’apprendre à utiliser un éditeur de texte puissant comme Vim. Cela va vous être particulièrement utile pour les chapitres à venir. Entrons maintenant dans le vif du sujet : la programmation shell. De quoi s’agit-il ? Imaginez un minilangage de programmation intégré à Linux. Ce n’est pas un langage aussi complet que peuvent […]

Read More →
How to measure packets per second or throughput on high speed network interface

There are many traffic monitoring tools available on Linux, which can monitor/classify network traffic, and report real-time traffic statistics in fancy user interfaces. Most of these tools (e.g., ntopng, iftop) are powered by libpcap, which is a packet capture library used to monitor network traffic in user space. Despite their versatility, however, libpcap-based network monitoring […]

Read More →
Using Bash Arrays with Examples

Arrays can be a useful tool when coding your bash scripts.  The simplest way that I can define an array is to state that an array is a variable for a multi-instance dataset. For example, a variable is used when there is a single value from a dataset like the IP Address of a server.  […]

Read More →
Emergency DOS or DDOS stopping script

If you are under a DOS or DDOS attack and running out of your mind or don’t know what to do, use this script to get ride of this panic situation. DoS or DDoS is an attempt to make a victim website unavailable by creating hundreds to hundreds thousands of established connections that overflow victim […]

Read More →
Learning bash scripting for beginners

Bash (Bourne-Again SHell) is a Linux and Unix-like system shell or command language interpreter. It is a default shell on many operating systems including Linux and Apple OS X. Today, we’ll see how to quickly learn scripting. If you have always used a graphic user interface like KDE or Gnome or MS-Windows or Apple OS […]

Read More →