https://github.com/juliocesarscheidt/which-like-linux
https://github.com/juliocesarscheidt/which-like-linux
azure linux powershell shell shell-script
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juliocesarscheidt/which-like-linux
- Owner: juliocesarscheidt
- Created: 2022-09-25T19:28:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T22:11:16.000Z (over 3 years ago)
- Last Synced: 2025-03-18T02:44:16.096Z (over 1 year ago)
- Topics: azure, linux, powershell, shell, shell-script
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simulating the "which" gnu/linux command
## Install
```bash
curl --silent --url https://raw.githubusercontent.com/juliocesarscheidt/which-like-linux/main/which_like.sh --output /tmp/which_like
chmod +x /tmp/which_like
mv /tmp/which_like /usr/local/bin/
```
## Usage
```bash
# the which command usage
which htop
# /usr/bin/htop
which nonexistingcommand
echo $?
# 1
# the which_like command usage
which_like htop
# /usr/bin/htop
which_like nonexistingcommand
echo $?
# 1
```