Categories
SysOps

How to create custom bash prompt

Today, I will show you my personal shell prompt, so you could define your own custom bash prompt.

Categories
SysOps

How disable network redirections

Create custom Bourne Again SHell package to disable network redirections and enhance system security.

Categories
Uncategorized

How to find out whether remote port is open using network redirections

Find out whether remote port is open using Bourne Again SHell network redirections.

Categories
Uncategorized

How to manage remotely forwarded SSH authentication agent

Keeping SSH authentication agent in sync across multiple servers and terminal multiplexers is not an easy task, but can be solved by using consistent socket names used to connect to the SSH authentication agent.

Categories
DevOps

How to parse INI configuration file using Bash

Parse INI configuration file using Bash shell-script.

Categories
Uncategorized

How to store configuration within shell script

Store runtime configuration within shell script using simple but an effective method.

Categories
SysOps

How to solve pipeline mysteries

I have already described how to inspect a pipeline, but today I will show you how to write a shell script that will help you reconstruct a whole pipeline when all you got is a process ID that is part of the pipeline.

Categories
SysOps

How to inspect a pipeline

A pipeline is a sequence of multiple commands separated by the control operators. It is easy to understand as long as you see the whole picture, but I will show you how to inspect it when you have a single process ID.

Categories
SysOps

How to distinguish standard error from regular output

Use bash redirection and process substitution to programmatically distinguish standard error from regular output.

Categories
SysOps

How to send output to multiple commands

Send output to multiple commands using tee utility and bash process substitution.