mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
693 B
Plaintext
22 lines
693 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# command
|
|
|
|
> Command forces the shell to execute the program and ignore any functions, builtins and aliases with the same name.
|
|
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-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}}`
|