• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Glow
V2EX  ›  程序员

这段shell该如何理解和使用?

  •  
  •   Glow ·
    Glowin · Mar 11, 2013 · 4466 views
    This topic created in 4984 days ago, the information mentioned may be changed or developed.
    3 replies  •  1970-01-01 08:00:00 +08:00
    thedevil5032
    thedevil5032
    Mar 12, 2013 via iPad
    1
    剪切,粘贴。
    例子说的很明白了,有时候忘记sudo,可以这样或者,sudo !!,或者当作Ctrrl-A用。
    Glow
    Glow
    OP
    Mar 12, 2013
    2
    @thedevil5032 明白了,ctrl+u 是复制当前命令行的意思,ctrl+y 是粘贴。谢谢解答。
    BOYPT
    BOYPT
    Mar 12, 2013
    3
    @Glow ctrl+u是删除整行命令,但是会存到缓冲区,ctrl+y粘帖。

    更多readline shortcut见这里 http://www.bigsmoke.us/readline/shortcuts
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:06 · PVG 20:06 · LAX 04:06 · JFK 07:06
    ♥ Do have faith in what you're doing.