bash 使用技巧

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

  2.载入/etc/bash_completion

  xxd@locdev:~$ . /etc/bash_completion

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

Read More:

  • No related posts

1 Comment

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

    非常好的技巧。