The tail and head are two of the most commonly used commands for displaying the contents of a file in Linux. Windows PowerShell, in its turn, also has equivalents of the Linux tail and head commands. From this short post you will learn how to use the equivalents of the tail and head commands in […]
powershell
PowerShell: Get Command Help (–help/-h/?) [SOLVED]
The help command is a special command that is used to provide more information on another commands. In Windows PowerShell the help command can be called at any time to learn more about a command’s usage and syntax, like the available options and how to structure the command to use these options. However, at first, […]
Windows: Measure Command Execution Time in PowerShell
The time command in Linux and Unix-like operating systems is used to determine how long a specific command or script will take to run. In Windows PowerShell there is a built-in Measure-Command, that can be considered as the Linux time command equivalent. This short post shows how to use the Measure-Command in PowerShell to evaluate […]
Install Kubectx & Kubens on Windows
kubectx and kubens are two command-line tools that can help to manage Kubernetes clusters and namespaces more efficiently. kubectx is used for switching between Kubernetes contexts (clusters) faster, while kubens is used for switching between Kubernetes namespaces more easily. This post shows how to install kubectx and kubens on Windows so they can be used […]
WHOIS Command on Windows – PowerShell & CMD
In Linux, a whois command is used to lookup information about domains or IP addresses. But if you try to run the whois command on Windows from PowerShell or command prompt (CMD), you will receive one of the errors below: ‘whois’ is not recognized as an internal or external command, operable program or batch file. […]
[SOLVED] PowerShell: Running scripts is disabled on this system
While trying to run a PowerShell script you may get an error message that says “cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.” This error message is due to the default execution policy set by PowerShell, that determines whether PowerShell scripts can be run on […]
Kubectl Autocomplete in PowerShell
A kubectl autocomplete is a feature that helps to complete kubectl commands or filenames automatically by pressing the ↹ Tab key. This feature can be enabled in Windows PowerShell by invoking a simple kubectl completion powershell command. Though this way it will be enabled temporary for the current session only. To enable the kubectl autocomplete […]
How Old Is My Computer/Laptop (Windows)
Knowing how to find out a manufacture date of a Windows computer (laptop or desktop) can be useful in many ways. For example, if you are purchasing a second-hand computer you may want to know how old is it to determine the warranty status or to negotiate the price. This note shows 3 different ways […]
Check Windows License Type – Volume | OEM | Retail
There are three types of Windows licenses: Retail, OEM (Original Equipment Manufacturer) and Volume. If you wonder which of these licenses is applied to your system, you can easily find this out using a Windows command prompt (CMD) or PowerShell.
Generate SSH Key in Windows
Starting from Windows 10 build 1809, Windows has a native SSH client that is based on the OpenSSH port. The OpenSSH client in Windows includes an ssh-keygen – the command-line tool for creating authentication keys for SSH. To create a pair of SSH keys in Windows, the ssh-keygen command can be executed from a Windows […]