How to Open GZ Files in Linux

GZ files are alson called as the gzip compresses files are more commonly encountered in the Linux environment for compression. These files are compressed using the gzip compression algorithm and…

0 Comments

Power Bi – DAX Cheat Sheet

Maths & Statistical Functions DAXSUM(<column>) // Adds all numbers in a column. SUMX(<table>, <expression>) // Returns the sum of an expression for each row in a table. AVERAGE(<column>) // Returns…

0 Comments

How to Decode Base64 in Linux

Base64 encoding is a commonly used method to represent binary data as ASCII character. It is commonly employed in various areas, such as encoding binary attachments in email, storing data…

0 Comments

Kubectl Cheat Sheet

Configuration and Context Management Show Specifed Kubeconfig Settings Bashkubectl config view Use Multiple Kubeconfig Files BashKUBECONFIG=~/.kube/config:~/.kube/kubconfig2 kubectl config view Get User Password Bashkubectl config view -o jsonpath='{.users[?(@.name == "user")].user.password}' Display…

0 Comments

How to Add User to Group in Linux

Linux is the most powerful and versatile Operating system that provides robust user and group management capabilities. Groups in Linux play an important role in organizing and managing user permissions…

0 Comments

Python Flask Cheat Sheet

Installation pip install Flask Hello World Let's start with the classic "Hello, World!" example. Create a file named app.py and add the following code: from flask import Flask app =…

0 Comments

How to Add a User to Sudoers in Linux

Linux Admins have a hard time granting permissions for every command that might require super user access. The `sudo` command allows specified users to execute commands with the execution privilege…

0 Comments

Grep Command Cheat Sheet

1. Basic Grep Commands: 1.1 Search for a Pattern in a File grep "pattern" filename 1.2 Search for a Pattern in Multiple Files grep "pattern" filename 1.3 Search Recursively in…

0 Comments

SSH Command Cheat Sheet

1. Connect as Root with Disabled Public Key Authentication ssh -o PubkeyAuthentication=no root@example-host 2. Connect with Private Key ssh -i ~/.ssh/alice.pem alice@example.com 3. SSH Configuration File 3.1. View and Edit…

0 Comments

How to Copy Directories in Linux

Linux is one of the most powerful and democratized kernel for Operating Systems, which offers a variety of methods and ways to perform tasks efficiently. One of those common operations…

0 Comments