The which command in Linux is used to identify the location of executables. The where command is a Windows which equivalent in a command-line prompt (CMD). In a Windows PowerShell the alternative for the which command is the Get-Command utility. In this note i will show how to find paths of executable commands in Windows.
Sometimes when an application in Windows hangs, freezes and stops responding the only way to terminate it is to kill from the command line. The taskkill command in Windows serves for terminating tasks by name or by process id (PID). In this note i am showing how to find and kill a process by its […]
Every command or application returns an exit status, also known as a return status or exit code. A successful command or application returns a 0, while an unsuccessful one returns a non-zero value that usually can be interpreted as an error code. In Linux you can get the exit status of a last command by […]
What is an environment variable in Windows? An environment variable is a dynamic “object” containing an editable value which may be used by one or more software programs in Windows. In this note i am showing how to set an environment variable in Windows from the command-line prompt (CMD) and from the Windows PowerShell. In […]
The grep command in Linux is widely used for parsing files and searching for useful data in the outputs of different commands. The findstr command is a Windows grep equivalent in a Windows command-line prompt (CMD). In a Windows PowerShell the alternative for grep is the Select-String command. Below you will find some examples of […]
What is an environment variable in Windows? An environment variable is a dynamic “object” containing an editable value which may be used by one or more software programs in Windows. In this note i am showing how to list environment variables and display their values from the Windows command-line prompt and from the PowerShell.
PATH is an environment variable that specifies a set of directories, separated with semicolons (;), where executable programs are located. In this note i am showing how to print the contents of Windows PATH environment variable from the Windows command prompt. I am also showing how to add a directory to Windows PATH permanently or […]
The article describes how to mount CIFS shares manually. The shares can be on a Windows computer or on a Linux/UNIX server running Samba. Prerequisites 1. Install cifs-utils, if it hasn’t been installed yet. This package contains tools for mounting shares on Linux using the SMB/CIFS protocol. # yum install cifs-utils # sudo apt-get install […]
This procedure will help you to move or copy your SSL certificate, installed on an IIS server to an Apache server. Step 1: Export IIS certificate into a .PFX file Run mmc.exe Click the ‘Console’ menu and then click ‘Add/Remove Snap-in’. Click the ‘Add’ button and then choose the ‘certificates’ snap-in and click on ‘Add’. […]