ubuntu8.10 没有 补全 命令 功能????

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

ubuntu8.10 没有 补全 命令 功能????

#1

帖子 niuyuan1102 » 2008-12-15 16:08

8.04还有的,怎么要 8.10 就没了阿?

有的命令记不住 按tab就好了,但8.10 的貌似不可以阿?

什么情况?高后解答。

:em20 :em20 :em20 :em20
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#2

帖子 niuyuan1102 » 2008-12-15 16:10

比如说 8.04下 拨号 sudo pon d 然后 按tab 就直接补全命令成 sudo pon dsl-provider了

8.10下久不可以了,必须 把所有的命令都打上,晕。

:em20 :em20
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: ubuntu8.10 没有 补全 命令 功能????

#3

帖子 allarem » 2008-12-15 16:28

???我怎么一切正常,看看xorg.conf的设置正常不?
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26

Re: ubuntu8.10 没有 补全 命令 功能????

#4

帖子 windwiny » 2008-12-15 16:35

用 bash 的执行 source /etc/bash_completion


要不就用最强的 Zsh
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: ubuntu8.10 没有 补全 命令 功能????

#5

帖子 想入非非 » 2008-12-15 17:18

我的怎么一直都是可以的。。。 :em06
Ubuntu User
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#6

帖子 niuyuan1102 » 2008-12-15 17:20

allarem, 没明白阿,我事菜鸟阿,清说清楚一点阿,谢谢阿。
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#7

帖子 niuyuan1102 » 2008-12-15 17:21

想入非非 写了:我的怎么一直都是可以的。。。 :em06
我安装 过 两次 8.10 事用不同的盘装的,一个事自己刻的,一个事申请的,都不行,怎么设置阿?高手说的详细一点阿,谢谢了阿
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#8

帖子 niuyuan1102 » 2008-12-15 17:22

allarem 写了:???我怎么一切正常,看看xorg.conf的设置正常不?
在哪里看xorg.conf 设置阿,谢谢。不懂阿
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: ubuntu8.10 没有 补全 命令 功能????

#9

帖子 想入非非 » 2008-12-17 11:57

niuyuan1102 写了:
allarem 写了:???我怎么一切正常,看看xorg.conf的设置正常不?
在哪里看xorg.conf 设置阿,谢谢。不懂阿

代码: 全选

sudo gedit /etc/X11/xorg.conf
不过似乎没有关系,我安装完之后默认就是正常的? :em06
Ubuntu User
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#10

帖子 niuyuan1102 » 2008-12-17 12:29

想入非非 写了:
niuyuan1102 写了:
allarem 写了:???我怎么一切正常,看看xorg.conf的设置正常不?
在哪里看xorg.conf 设置阿,谢谢。不懂阿

代码: 全选

sudo gedit /etc/X11/xorg.conf
不过似乎没有关系,我安装完之后默认就是正常的? :em06

这是 显示的内容:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection



正常吗??请指教阿,谢谢
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
头像
ws_105
帖子: 313
注册时间: 2008-10-24 8:02

Re: ubuntu8.10 没有 补全 命令 功能????

#11

帖子 ws_105 » 2008-12-17 12:32

sudo (root用户)的命令补全根据安全准则默认是不打开的,这个是root 用户的,有两种方法可以修改:
1. /etc/bashrc
把这个文件中的

代码: 全选

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
看到了,我的是已经取消了注释的,把它的注释取消就OK了,这会使整个系统的所有用户都可以拥有强大的不全功能
2. /root/.bashrc
如果没有这个文件的话,可以把/etc/bashrc或者自己主目录中的.bashrc文件拷贝一份过来,其他操作同上面,这个方法只影响root用户一个
Ubuntu 8.04 @ Intel Pentium D 925 + Intel 945G Chipset + DDR2 1.0G + SATA 160G
http://hi.baidu.com/ws_105
头像
niuyuan1102
帖子: 253
注册时间: 2008-03-05 14:39
来自: 南京 河海

Re: ubuntu8.10 没有 补全 命令 功能????

#12

帖子 niuyuan1102 » 2008-12-18 10:08

ws_105 写了:sudo (root用户)的命令补全根据安全准则默认是不打开的,这个是root 用户的,有两种方法可以修改:
1. /etc/bashrc
把这个文件中的

代码: 全选

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi
看到了,我的是已经取消了注释的,把它的注释取消就OK了,这会使整个系统的所有用户都可以拥有强大的不全功能
2. /root/.bashrc
如果没有这个文件的话,可以把/etc/bashrc或者自己主目录中的.bashrc文件拷贝一份过来,其他操作同上面,这个方法只影响root用户一个

谢谢阿,这么强大的补全功能干吗不默认开启阿,晕,

谢谢
AMD Athlon(速龙) II X4 640
技嘉 GA-MA770T-UD3P
威刚 DDR3 1333MHz 2G*2
MSI hawk GTX 460 1GB / AOC IF23
DELL oem Windows 7 旗舰版SP1 32位
Antec bp430plus / 开拓者p100普及版
麦博M200十周年纪念版
Dell sk8115 / Rapoo V1x
回复