1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-03 22:55:25 +02:00
tldr/pages/common/command.md

17 lines
562 B
Markdown
Raw Normal View History

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.
> More information: <https://manned.org/command>.
2018-10-31 01:29:48 +01: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
- 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}}`