Name
command
Synopsis
command [-pvV]name
[arg
...]
Without -v or -V, execute name with given arguments. This command bypasses any aliases or functions that may be defined for name. When used with a special built-in, it prevents the built-in from exiting the script if it fails.
Options
- -p
Use a predefined, default search path, not the current value of PATH.
- -v
Print a description of how the shell interprets name.
- -V
Print a more verbose description of how the shell interprets name.
Example
Create an alias for rm that gets the system’s version, and runs it with the -i option:
$ alias 'rm=command -p rm -i'
Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.