eg: [root@ntd1711 test01]# ls /etc/passwd /tmp/test01/passwd [root@ntd1711 test01]# cp /etc/passwd /tmp/test01/ [root@ntd1711 test01]# ls /etc/passwd /tmp/test01/passwd [root@ntd1711 test01]# vim /tmp/test01/passwd 在末行模式输入 /root :s/root/feige u :s/root/feige/g u :1,10s/root/feige/g u :%s/root/feige/g u :q! 显示和关闭行号 :set nu|nonu