The Best Windows Dig Equivalent for DNS Queries

Windows Command Prompt returns the error: "'dig' is not recognized as an internal or external command, operable program or batch file"

The dig command is an essential DNS troubleshooting tool on Linux and macOS. However, attempting to use it in a Windows Command Prompt or PowerShell will return the errors as follows:

‘dig’ is not recognized as an internal or external command, operable program or batch file.

dig : The term ‘dig’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

The Windows dig equivalent are the Resolve-DnsName command in PowerShell and the nslookup command in Command Prompt.

Below is a quick guide on how to use these commands to check DNS records in Windows. (more…)

Windows “ls” Equivalent: Find and List Files Easily

Windows Command Prompt returns the error: "'ls' is not recognized as an internal or external command, operable program or batch file"

The ls command is a go-to tool for Linux and macOS users to list files and directories. However, running the ls command in the Windows Command Prompt returns the error:

‘ls’ is not recognized as an internal or external command, operable program or batch file.

The Windows ls equivalent is the dir command, which provides similar functionality. Below, we’ll explore how to effectively use the dir command for basic listing, listing hidden files, and displaying detailed information. (more…)

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 from PowerShell or Command Prompt (CMD). (more…)

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.
– or –
whois : The term ‘whois’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

This post shows how to install the whois command on Windows and make it available in PowerShell and CMD. (more…)

How To Find Windows Product Key using CMD

A Windows product key is a 25-character code used to activate Windows, that looks like: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

When Windows is getting installed on a computer, it stores its product key in a registry from where anyone can view it.

This short note shows how to find your Windows product key using a Windows command prompt (CMD). (more…)

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 command-line prompt (CMD) or PowerShell.

This note shows how to generate SSH keys in Windows using the ssh-keygen command. (more…)

Bad owner or permissions on ‘.ssh/config’ [SOLVED]

Starting from Windows 10 build 1809, Windows has a native SSH client that is based on the OpenSSH port.

If you try to connect to some host from a Windows command-line prompt (CMD) or PowerShell using the ssh command, you may receive the error as follows:

Bad owner or permissions on C:\\Users\\<username>/.ssh/config

This short note shows how to fix the permissions on all the files under the C:\\Users\\<username>/.ssh folder. (more…)