Freebsd在Putty中不显示命令输出

我刚刚安装了FreeBSD的最新稳定版本到电脑,我有以下问题:

如果在Putty中,我发出一个像ps uxa这样的输出很长的命令,就会被裁剪 ps uxaps uxa|more没有帮助。 即使我做ps uxa > file.txt ,文件中的行被裁剪为80个字符!

有一些图像如何:http: //yfrog.com/0rfilecroppx

干净的安装后,这一切发生,一切都设置为默认。 默认的shell是csh,把它改成bash没有帮助。 这在Linux中从来没有发生过。

我的单身 – 一个

 FreeBSD freebsd.localdomain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 [email protected]:/usr/obj/usr/src/sys/GENERIC i386 

如何解决这个问题? 我已经看过env vars,.profile,.cshrc,/etc/login.conf。

尝试使用-w选项:

从MAN页面:

  -w Use 132 columns to display information, instead of the default which is your window size. If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size. When output is not to a terminal, an unlimited number of columns are always used. 

这是putty的特性/ bug,而不是FreeBSD。 腻子总是告诉其他操作系统它的宽度和高度是多less。 您可以通过执行一个截断ps命令来轻松显示,然后扩大腻子屏幕。 你可以看到这些行被截断。 现在再给ps命令:你会看到更多的列。

从本质上讲,你所要求的油灰做的就是在窗户的宽度上(给出的数字大于实际显示的数字), 并且智能地包裹较长的线条。 对于psls -l等等,这样可以很好地工作,并且对于vi或其他全屏编辑器来说,这样做是不幸的。 这样的撒谎也会导致信息的显示,因为包装会被误解。 这可能是一种腻子模式,但我找不到它。