1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-04 19:35:23 +02:00
tldr/pages/common/command.md
Pranaov S 8bc9dce9b1
pages/common/*: correct urls, see also improvements, unbashify pages, examples addition (#16841)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-14 19:02:15 +03:00

16 lines
562 B
Markdown

# 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>.
- Execute the `ls` program literally, even if an `ls` alias exists:
`command {{ls}}`
- 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}}`
- Display the path to the executable or the alias definition of a specific command:
`command -v {{command_name}}`