LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

  • No related posts

bash 使用技巧

  1.编辑/etc/bash.bashrc,启用下面3行:
  
  if [ -f /etc/bash_completion ]; then
   . /etc/bash_completion
  fi
  

  2.载入/etc/bash_completion

  xxd@locdev:~$ . /etc/bash_completion

  你会发现在 shell 中按 Tab 键的不同的,如试一试:sudo apt-g[Tab],发现了什么?它已经帮你自动补完了。

署名 • 注明出处 • 非商业性使用

1 Comment

  1. 1 daqing Commented @ 2006-09-10 1:51 pmReply to this comment

    非常好的技巧。