The very first alias I made once I started customizing my profile in PowerShell was ‘which’.
New-Alias which get-command
To add this to your profile, type this:
"`nNew-Alias which get-command" | add-content $profile
The `n at the start of the last line is to ensure it will start as a new line.
Related Posts:
- How to pretty print XML from the command line?
- What are file descriptors, explained in simple terms?
- How to kill a process running on particular port in Linux?
- Display exact matches only with grep
- How to split a delimited string into an array in awk?
- Display exact matches only with grep
- What does ^M character mean in Vim?
- What does it mean to write to stdout in C?
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- mkdir’s “-p” option
- wait(null) and wait(&status) C language and Status
- Shell script “for” loop syntax
- How to get the current directory in a C program?
- When could or should I use chmod g+s on a file or directory?
- How to Sum a column in AWK?
- What is the difference between SIGSTOP and SIGTSTP?
- How to colorize diff on the command line
- How to colorize diff on the command line
- How to read a file into a variable in shell?
- gpg decryption fails with no secret key error
- What is the difference between tar and zip?
- Display current path in terminal only
- What do the dup() and dup2() systems really do?
- What generates the “text file busy” message in Unix?
- Reasoning behind C sockets sockaddr and sockaddr_storage
- How can I send an email through the UNIX mailx command?
- Rename multiple files based on pattern in Unix
- What is the difference between a symbolic link and a hard link?
- SCP Permission denied (publickey). on EC2 only when using -r flag on directories
- binary operator expected error when checking if a file with full pathname exists
- What is special about /dev/tty?
- How do I do ‘mount –bind’ in /etc/fstab?
- How to read backward from the end of file in less or more?
- Getting the last match in a file using grep
- How do I pause my shell script for a second before continuing?
- How to execute a program or call a system command?
- In the shell, what does ” 2>&1 ” mean?
- How to run a PowerShell script
- How to run powershell script from .ps1 file?
- How to fix “A JNI error has occurred, please check your installation.”
- How do I grep recursively?
- Connect-AzAccount – how to avoid azure device authentication?
- How do I concatenate strings and variables in PowerShell?
- PowerShell equivalent to grep -f
- Setting Windows PowerShell environment variables
- Replace substring in PowerShell
- Splitting a string into separate variables
- How do I grep recursively?
- How to export data to CSV in PowerShell?
- How to run an EXE file in PowerShell with parameters with spaces and quotes
- Connect: Socket operation on non-socket
- sudo: apt-get: command not found
- What is the difference between read and pread in unix?
- Prompt for user input in PowerShell
- How to upgrade PowerShell version from 2.0 to 3.0
- Argument list too long error for rm, cp, mv commands
- How can I pass an argument to a PowerShell script?
- Difference between using “chmod a+x” and “chmod 755”
- What does WEXITSTATUS(status) return?
- Powershell: A positional parameter cannot be found that accepts argument “xxx”
- Python command not working in command prompt
- What does the line “#!/bin/sh” mean in a UNIX shell script?
- Given two directory trees, how can I find out which files differ by content?
- powershell -Or operator not working
- OSError – Errno 13 Permission denied
- How to decode a Base64 string?
- Copy file remotely with PowerShell
- cp: missing destination file operand after
- What can cause a “Resource temporarily unavailable” on sock send() command
- python getoutput() equivalent in subprocess
- How to unzip a file in Powershell?
- The term ‘Get-ADUser’ is not recognized as the name of a cmdlet
- The term ‘nmake’ is not recognized
- Ternary operator in PowerShell
- Upload file to SFTP using PowerShell
- Converting PKCS#12 certificate into PEM using OpenSSL
- How to open an elevated cmd using command line for Windows?
- Cygwin Make bash command not found
- How do I ignore files in Subversion?
- Sorting data based on second column of a file
- Split text file into smaller multiple text file using command line
- Does PowerShell has something like “echo off” and “echo on” trigger?
- Enter PEM pass phrase when converting PKCS#12 certificate into PEM
- How can I test that a variable is more than eight characters in PowerShell?
- How do I get the current username in Windows PowerShell?
- How do I do ‘dir /s /b’ in PowerShell?
- Create Log File in Powershell
- Using grep and ls -a commands
- Simple PowerShell LastWriteTime compare
- Restarting cron after changing crontab file?
- How do I write stderr to a file while using “tee” with a pipe?
- How do I get the current Unix time in milliseconds in Bash?
- Copying a large directory tree locally? cp or rsync?
- Nginx enable site command
- SSL Certificate Location on UNIX/Linux
- Sometimes PowerShell stops sending output until I press enter. Why?
- How to forcibly close a socket in TIME_WAIT?
- How to check if an RSA public / private key pair match
- In a PowerShell script, how can I check if I’m running with administrator privileges?
- Can you have more than one ~/.ssh/config file?