How does shell execute the previous command under the root account
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!