Rellay giving you the focus on the information that you need. Adding color to your shell is going to make your scripts more usable and friendly. You can also pimp or color your BASH prompt, the PS1 environment variable. In this tutorial we are going to show you how we can add color to BASH, […]
Scripting
Authenticate Users with Bash Script and AWK
Authenticate Users with BASH Script and AWK We know that on Linux systems the user’s password is stored in the /etc/shadow file usually. At least for local accounts, we can always query the shadow database and lookup users in a directory backend like AD or openLDAP. We will start the process to authenticate users with […]
Editing Files Using SED: Unwrapped
Editing Files Using SED The Linux Stream Editor The Linux text editor sed is the stream editor which allows you to edit a file non-interactively. This means that you can edit a file from within a script or via SSH over the network without opening a terminal. Linux administrators and devops will benefit in this […]
Match the First Occurrence Only with Linux SED Command
Being able to work with the command line in Linux and use tools such as sed can be really powerful. We show you how you can match only the first occurrence of a string or regular expression using sed in Linux with Ubuntu. The example we use will be replacing the first time server only […]
Using Python to List SSH Authentication Methods
In this module we will take a look at using Python to list SSH Authentication methods. There is nothing like making your server estate cybersecurity and compliant with your policies. Ensuring that SSH servers on out estate adhere to security guidelines allows peace of mind knowing we can reduce the likelihood of our servers being […]
Syntax Highlighting Perl Scripts
When you create you very own Perl scripts the big debate is to add .pl to the end or not! For example if you wanted to create a script to check the existence of a user in the Linux system you may want the program to be called check_user. You may want to call the […]