今天在Linux下执行 w这个命令时,出现70 column window is too narrow,不知道是什么问题,后来在网上查了一下,看一个解决方案,在w后面用管道的方式进行输入,然后在执行 w就不会报错了
[[email protected] ~]# w
70 column window is too narrow
[[email protected] ~]# w|cat
20:39:38 up 5:28, 5 users, load average: 0.00, 0.00, 0.00
USER TTY FROM [email protected] 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
[[email protected] ~]# w
20:41:08 up 5:30, 5 users, load average: 0.00, 0.00, 0.00
USER TTY FROM [email protected] 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