Get the App
SLTechnology News&Howtos  ›  Development  › 

How does shell execute the previous command under the root account

Shulou Source: shulou.com Published: 2022-06-01 04:02:30 10月02日 Update

This article is about how shell executes the previous command under the root account. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Execute the previous command under the root account.

$sudo!

Among them: *! Refers to the last parameter of the previous command *! $the last parameter of the previous command *! * all parameters of the previous command *!: 3 the third parameter of the previous command

For example:

$ls / tmp/somedir ls: cannot access / tmp/somedir: No such file or directory$mkdir! $madir / tmp/somedir Thank you for reading! This is the end of this article on "how to execute the last order under shell's root account". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Commands previous accounts parameters content more articles good practical articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Information MariaDB Huawei OPPO Reno