什么是须藤棒棒? [英] What is sudo bang bang?

查看:185
本文介绍了什么是须藤棒棒?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了从这个漫画,我见过一些人写的须藤!!

Besides from this comic, I have seen some people write sudo !!.

什么是须藤棒棒?

推荐答案

棒棒( !! )命令的快捷方式的重复previous命令你在终端上输入。当你忘了,你需要管理员权限做出了一定的作用这个命令非常有用,并让您具有超级用户权限重复只需键入

The bang bang (!!) command is a shortcut to repeat the previous command you entered in your terminal. This command is very useful when you forget that you need admin rights to make a certain action, and lets you repeat it with super-user rights just by typing

sudo !!

而不是键入向上箭头,滚动到行的开头,加入须藤并按下回车键(想象一下,通过这些的 loooong 的<滚动code> apt-get的命令)。因此,许多秒获得!的耶!

instead of typing arrow-up, scrolling to the beginning of the line, adding sudo and hitting enter (imagine scrolling through those loooong apt-get commands). So many seconds gained! Yay!

有许多其他邦的命令,如!X !? X !!:p !! * 。这博客帖子其列出并解释了他们是。

There are many other bang-commands such as !x, !?x, !!:p and !!*. This blog post lists them and explains what they are for.

这篇关于什么是须藤棒棒?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆