我刚刚将最新的稳定版FreeBSD安装到电脑上,我遇到以下问题:
如果,在Putty中,我发出一个像ps uxa这样的命令,它给出了很长的输出行,就会被裁剪掉. ps uxa |更多没有帮助.即使我做ps uxa> file.txt,文件中的行被裁剪为80个字符!
有一些图片显示它的样子:
http://yfrog.com/0rfilecroppx
这在干净安装后立即发生,一切都设置为默认值.默认shell是csh,将其更改为bash没有帮助.这在Linux中从未发生过.
我的uname -a
FreeBSD freebsd.localdomain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/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.