command (built-in Bash command)

Content

 

Data

License: GNU GPLv3 +
Version number: GNU Bash 5
Developer / owner: Free Software Foundation Inc.

Short description:

The manual page and help for the built-in Bash command. The command command runs other commands with their arguments, or displays information about the command, eliminating searching for a shell function with the same name. Runs only the built-in commands or the commands in the PATH.

 

 

Man page output

man bash
[...]
       command [-pVv] command [arg ...]
              Run  command  with args suppressing the normal shell function lookup.  Only builtin
              commands or commands found in the PATH are executed.  If the -p  option  is  given,
              the  search for command is performed using a default value for PATH that is guaran-
              teed to find all of the standard utilities.  If either the -V or -v option is  sup-
              plied, a description of command is printed.  The -v option causes a single word in-
              dicating the command or filename used to invoke command to be displayed; the -V op-
              tion  produces a more verbose description.  If the -V or -v option is supplied, the
              exit status is 0 if command was found, and 1 if not.  If neither option is supplied
              and  an  error occurred or command cannot be found, the exit status is 127.  Other-
              wise, the exit status of the command builtin is the exit status of command.
[...]

 

 

Help output

command --help
command: command [-pVv] parancs [arg ...]
    Parancs végrehajtása vagy információk megjelenítése róla.

    Végrehajtja a PARANCS parancsot ARGUMENTUMOK argumentumokkal a
    függvényfeloldás végrehajtása nélkül; vagy információt jelenít meg a
    parancsról. Használható programok futtatására, ha azonos nevű függvény
    létezik.

    Kapcsolók:
      -p       alapértelmezett érték használata PATH helyett, amely
               garantáltan megtalál minden szabványos eszközt
      -v       egy leírást ad a PARANCS parancsról a „type” beépített
               parancshoz hasonló módon
      -V       részletesebb leírást ad minden PARANCSRÓL

    Kilépési kód:
    A PARANCS kilépési kódjával tér vissza, vagy hibát jelez, ha nem
    található a PARANCS.

 

Related Content