How to Make Scripts Executable from Any Path in Linux

Running scripts without specifying their full path can save time and streamline workflows in Linux. This is achieved by adding the script’s directory to the system’s PATH variable, allowing execution from any location. Here’s how you can set it up. Step 1: Verify Your Current PATH Variable The PATH variable contains directories where the system … Read more

How to Check Your Bash Version in Linux

Introduction Knowing your Bash version (the Bourne Again Shell) is essential for maintaining compatibility, debugging scripts, and ensuring system security. Different versions of Bash introduce new features, fix vulnerabilities, and improve performance. In this guide, you’ll learn how to check your Bash version, why it matters, and what to do with that information. Why Check Your Bash … Read more

How to Shorten Your PowerShell Command Prompt

Introduction Are you tired of long, cluttered command prompts in PowerShell? By customizing your $PROFILE, you can shorten your prompt to display only the last folder in your path. This simple tweak makes your terminal cleaner and easier to read, especially when navigating deep directory structures. In this guide, we’ll walk you through the steps to … Read more

The nl Command in Linux: Adding Line Numbers to Text Files

Linux provides various commands for text formatting and editing, and one particularly useful command is the nl command. This tool allows you to add line numbers to each line of a text file or input, making it easier to read and organize content. What Does the nl Command Do? The nl command displays the contents of a text file with line numbers added … Read more

Converting Epoch Time in PowerShell: A Practical Guide

Understanding and working with Epoch time in PowerShell is essential when dealing with date and time operations in scenarios like JWT tokens, assertions, or system logs. This guide provides examples of how to manipulate Epoch time and convert it into human-readable formats using PowerShell. What Is Epoch Time? Epoch time, also known as Unix time, POSIX time, or Unix timestamp, … Read more

PowerShell Tip: Master PowerShell Cmdlet History with PSReadLine

PowerShell is a powerful tool for administrators and developers, but repetitive tasks can slow you down. By managing your cmdlet history and leveraging the features of PSReadLine, you can streamline your workflow, save time, and enhance productivity. This guide will walk you through practical tips and scenarios to make the most of PowerShell cmdlet history and … Read more

How to Add or Remove Delegated Consented Permissions Using PowerShell

Managing delegated permissions for applications in Microsoft environments is a critical task for administrators. This guide provides a Microsoft Graph PowerShell script to help you add or remove delegated permissions with greater granularity and control. Why Modify Delegated Permissions? Delegated permissions allow an application to act on behalf of a signed-in user. However, there are scenarios where … Read more