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?
- PowerShell says “execution of scripts is disabled on this system.”
- PowerShell says “execution of scripts is disabled on this system.”
- How do I start PowerShell from Windows Explorer?
- How to execute a program or call a system command?
- What is newline character — ‘\n’
- Why does ENOENT mean “No such file or directory”?
- sudo: npm: command not found
- In the shell, what does ” 2>&1 ” mean?
- How to run a PowerShell script
- How to run powershell script from .ps1 file?
- How do I grep recursively?
- How to fix “A JNI error has occurred, please check your installation.”
- How do I grep recursively?
- What is the meaning of *nix?
- Connect-AzAccount – how to avoid azure device authentication?
- How do I concatenate strings and variables in PowerShell?
- PowerShell equivalent to grep -f
- How do you comment out code in PowerShell?
- Running a command as Administrator using PowerShell?
- Setting Windows PowerShell environment variables
- In the shell, what does ” 2>&1 ” mean?
- How do I concatenate strings and variables in PowerShell?
- How to use operator ‘-replace’ in PowerShell to replace strings of texts with special characters and replace successfully
- Replace substring in PowerShell
- Echo equivalent in PowerShell for script testing
- How to use _CRT_SECURE_NO_WARNINGS
- Echo equivalent in PowerShell for script testing
- grep –ignore-case –only
- PowerShell says “execution of scripts is disabled on this system.”
- How to use the curl command in PowerShell?
- Check if a file exists or not in Windows PowerShell?
- How to run a PowerShell script
- What are .a and .so files?
- PowerShell and the -contains operator
- Change directory in PowerShell
- How to handle command-line arguments in PowerShell
- Splitting a string into separate variables
- How do I grep recursively?
- How to split string by string in Powershell
- How to split string by string in Powershell
- How to export data to CSV in PowerShell?
- How can I check if a directory exists in a Bash shell script?
- Downloading a file with PowerShell
- Terminating a script in PowerShell
- OS X: equivalent of Linux’s wget
- How to run an EXE file in PowerShell with parameters with spaces and quotes
- Connect: Socket operation on non-socket
- How to run an EXE file in PowerShell with parameters with spaces and quotes
- Connect: Socket operation on non-socket
- How do I pass multiple parameters into a function in PowerShell?
- sudo: apt-get: command not found
- Terminating a script in PowerShell
- What is the difference between read and pread in unix?
- Prompt for user input in PowerShell
- OS X: equivalent of Linux’s wget
- How to upgrade PowerShell version from 2.0 to 3.0
- How do I use grep to search the current directory for all files having the a string “hello” yet display only .h and .cc files?
- How do I concatenate strings and variables in PowerShell?
- SSH using python script
- How can I exclude directories from grep -R?
- How can I exclude directories from grep -R?
- Array.Add vs +=
- PowerShell and the -contains operator
- Argument list too long error for rm, cp, mv commands
- How can I pass an argument to a PowerShell script?