command
Quick Reference
Command Name:
command
Category:
shell builtins
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
Syntax
command [-pVv] command [arg ...]
Options
Option | Description |
---|---|
-p |
Use a default value for PATH that is guaranteed to find all standard utilities |
-v |
Print a description of the command (the path to the command) |
-V |
Print a more verbose description of the command |
Examples
How to Use These Examples
The examples below show common ways to use the command
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
# Run a command bypassing any aliases or functions with the same name command ls
Advanced Examples:
# Use in scripts to ensure running the actual command, not an alias command grep "pattern" file.txt