Many people know about cat command which is useful in displaying entire file content. But in some...Read More
In some situations when executing a command or a Linux shell script we may require some manual intervention. The yes command is simple built-in command which will help you remove this manual intervention stuff in your scripts....Read More
The linux shell has provided us with many hidden gems. Some of things are string manipulation without using external commands like SED/AWK. In this post we will see how to convert a string from lower case to upper and upper case...Read More
In this post we will see how to run a shell script you just received or created. There are many ways we can execute a shell script and some of the ways you don't require execute permissions as well on that script....Read More
This is a small script to rename multiple files from CAPITAL to small letters. Ok, why we require to do this? Recently we bought a new cam which is naming all photos in capital and it is very much difficult for me to change...Read More
This is a small script which will takecare of blocking and unblocking ports by asking user about his desire. Just copy this code to your system and change permissions and start executing it. #!/bin/bash #Author: Surendra...Read More
This is a small script which will convert your video file into a gif file so that we can share it across Internet so that video player is not required to play it. The script is written in Linux Bash shell...Read More
This is one of the prompts available for us in Linux/Unix. The other prompts available for us are PS1, PS2, PS3. This prompt is very much useful when debugging shell scripts using -x option for set...Read More
PS3(Prompt String 3) is one of the Shell prompts available for Linux. The other prompts are PS1, PS2 and PS4. PS3 prompt is useful in shell scripts along with select command to provide a custom prompt for the user to select a...Read More
Select command is similar to for, while and until loops in Linux Shell scripting. What is a select command?Select is a Linux command useful for doing iterations indefinitely in shell scripts. This will come handy when you...Read More
PS2(Prompt String 2) is one of the prompts available in Linux/Unix. The other prompts are PS1, PS3 and PS4. This is very much useful for entering a large command in multiple lines and when you execute incomplete...Read More
Q. How can I print last element in an Bash Array in Linux/Unix? This is bit tricky question, because we are not sure what could be number of elements in array. By conventional methods we can not find the last element...Read More
Get more stuff like this
in your inbox
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Thank you for subscribing.
Something went wrong.
we respect your privacy and take protecting it seriously
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.