Get the App
SLTechnology News&Howtos  ›  Servers  › 

Use the command command of linux to invoke and execute the specified command

Shulou Source: shulou.com Published: 2022-06-02 12:44:46 09月10日 Update

Do not know how to use linux's command command to invoke and execute the specified command? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.

The command command invokes the specified instruction and executes it without querying the shell function. The command command can only execute commands within shell.

When the same function as the linux command is defined in the system, use the command command to ignore the shell function and execute the corresponding linux command.

Syntax format: command [parameters] [command]

Common parameters:

Reference example

Ignore the fdisk function and call the command:

[root@linuxcool ~] # command fdisk-l

Use the command command to invoke the execute echo command:

[root@linuxcool ~] # command echo LinuxcoolLinuxcool

Use the correct path search command:

[root@linuxcool] # command-p fdisk Thank you for reading this article carefully. I hope it is helpful for everyone to share the command command using linux to call and execute the specified command. At the same time, I also hope that you can support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you!

Tags: Commands functions parameters articles questions learning same content at the same time examples commonly used instructions methods formats systems tape industry grammar information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Shulou Information Apple MariaDB