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:
Copy the current line in VS Code March 12, 2026 macOS
xbar-my-prs Info about your GitHub PRs in the macOS menu bar January 29, 2026 macOS
How to find which git SHA it was when you merged in the default branch February 26, 2026 Linux
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
The correct way to index data into Elasticsearch with (Python) elasticsearch-dsl May 14, 2021 Python, MDN, Elasticsearch