首页 > 代码库 > 在Linux下执行w 时,显示70 column window is too narrow

在Linux下执行w 时,显示70 column window is too narrow

今天在Linux下执行 w这个命令时,出现70 column window is too narrow,不知道是什么问题,后来在网上查了一下,看一个解决方案,在w后面用管道的方式进行输入,然后在执行 w就不会报错了

[root@mylab ~]# w

70 column window is too narrow

[root@mylab ~]# w|cat

 20:39:38 up  5:28,  5 users,  load average: 0.00, 0.00, 0.00

USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT

root     tty1     -                20:06   33:27   0.14s  0.14s -bash

root     pts/0    192.168.255.1    15:32    4:59   3.71s  0.76s vim ckuser.sh

root     pts/1    192.168.255.1    19:06   26:17   0.37s  0.17s -bash

root     pts/2    192.168.255.1    17:37    0.00s  0.40s  0.02s w

root     pts/3    192.168.255.1    20:16    4:55   0.27s  0.27s -bash

[root@mylab ~]# w

 20:41:08 up  5:30,  5 users,  load average: 0.00, 0.00, 0.00

USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT

root     tty1     -                20:06    6.00s  0.17s  0.17s -bash

root     pts/0    192.168.255.1    15:32    6:29   3.71s  0.76s vim ckuser.sh

root     pts/1    192.168.255.1    19:06   27:47   0.37s  0.17s -bash

root     pts/2    192.168.255.1    17:37    0.00s  0.42s  0.02s w

root     pts/3    192.168.255.1    20:16    6:25   0.27s  0.27s -bash


本文出自 “红姐” 博客,请务必保留此出处http://zhengh.blog.51cto.com/2623944/1530555

在Linux下执行w 时,显示70 column window is too narrow