This is borderline embarrassing but by blogging about it, at least there's hope that I will not forget this.

If you have an executable, you can type which to find out its full path. For example:


$ which fdfind
/usr/bin/fdfind

then you can do something with that. But if the executable is an alias? E.g. I have set up alias fd='fdfind' and suppose I don't remember that. I have this executable, gbranch, but you can't use which on it:


$ which fd

It outputs nothing and you get an exit code of 1.

Lo and behold, it's so basic, run the alias command on it:


$ alias fd
alias fd='fdfind'

Comments

Your email will never ever be published.

Previous:
From @monaco-editor/react to prism-react-editor September 25, 2025 Web development, React, JavaScript
Next:
In Python, you have to specify the type and not rely on inference October 10, 2025 Python, TypeScript
Related by category:
gg2 - a new CLI for helping me manage git branches August 6, 2025 macOS
How to count the number of non-blank lines with Bash September 3, 2025 Bash, Linux, macOS
gg shell completion August 13, 2025 Linux, macOS
Set up iTerm to delete whole words on Option-Backspace May 13, 2025 macOS
Related by keyword:
gg shell completion August 13, 2025 Linux, JavaScript, Bun, macOS
set -ex - The most useful bash trick of the year August 31, 2014 Linux
How to intercept and react to non-zero exits in bash February 23, 2023 Bash, GitHub
Run something forever in bash until you want to stop it February 13, 2018 Linux