以未安裝的命令 trafshow 為例,輸出為: The program 'trafshow' is currently not installed. You can install it by typing: sudo apt-get install netdiag Make sure you have the 'universe' component enabled bash: trafshow:找不到命令
如果不行的話,請去掉 /etc/bash.bashrc 中以下語句的註釋: # if the command-not-found package is installed, use it if [ -x /usr/bin/command-not-found ]; then function command_not_found_handle { /usr/bin/command-not-found $1 return $? } fi