2018-10-31 01:29:48 +01:00
|
|
|
# command
|
|
|
|
|
|
|
|
> Command forces the shell to execute the program and ignore any functions, builtins and aliases with the same name.
|
2021-04-12 08:54:04 +02:00
|
|
|
> More information: <https://manned.org/command>.
|
2018-10-31 01:29:48 +01:00
|
|
|
|
2021-01-31 14:05:18 -03:00
|
|
|
- Execute the `ls` program literally, even if an `ls` alias exists:
|
2018-10-31 01:29:48 +01:00
|
|
|
|
|
|
|
`command {{ls}}`
|
2020-10-24 14:12:39 +02:00
|
|
|
|
2025-06-14 16:02:15 +00:00
|
|
|
- Find and execute a command using a default `$PATH` (`/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc`) that guarantees to find all standard utilities:
|
|
|
|
|
|
|
|
`command -p {{command_name}}`
|
|
|
|
|
2020-10-24 14:12:39 +02:00
|
|
|
- Display the path to the executable or the alias definition of a specific command:
|
|
|
|
|
|
|
|
`command -v {{command_name}}`
|