logo
  • 教程列表
  • SO官方文档
  • Bash 历史替换
    • 快速参考
    • 用 sudo 重复上一个命令
    • 按模式搜索命令历史记录
    • 使用 N 切换到新创建的目录
    • 运用
    • 用替换重复上一个命令
  1. StackOverflow 文档
  2. Bash 教程
  3. Bash 历史替换
  4. 用 sudo 重复上一个命令

用 sudo 重复上一个命令

Created: November-22, 2018

$ apt-get install r-base
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
$ sudo !!
sudo apt-get install r-base
[sudo] password for <user>: 
  • 按模式搜索命令历史记录
  • 快速参考

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明