On 08:37 Thu 25 Aug 2005, schlank wrote: > Hi all: > 记得用su有一个从命令行直接用的简单办法. > 不用每次su然后输入密码,然后才能执行命令. 直接用sudo岂不更好? 如何使用? 看这里: http://www.debian-administration.org/articles/33 > 好像是su -c??? -c 只是说明后面是shell命令。 > 用su -c ls就可以执行. > 但是用su -c ls -all就说无效选项. 试试: su -c 'ls -a' regards bxuef -- dhammapada says: Peaceful of body, peaceful of speech and with his mind thoroughly stilled, the bhikkhu who has rid himself of attachment to the world - is called "at peace". 378