Skip to content

Instantly share code, notes, and snippets.

@vhbui02
Created May 2, 2023 04:37
Show Gist options
  • Save vhbui02/8aad27822a396ab110d6d25366b6b845 to your computer and use it in GitHub Desktop.
Save vhbui02/8aad27822a396ab110d6d25366b6b845 to your computer and use it in GitHub Desktop.
[command command] Little weird :))) but it's true #linux

command [OPTION] <command-name>

Options

-a or --all: prints all COMMAND found in PATH (including program, function and builtit), in the order which they're found.

-q or --query: return true if COMMAND existed, return false otherwise.

-v or -s or --search: prints the path to the program, not the function or builtit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment