V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
recall704
V2EX  ›  问与答

问个 linux 终端的问题

  •  
  •   recall704 · 2015-07-23 16:41:41 +08:00 · 1847 次点击
    这是一个创建于 3204 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我在 ubuntu 的终端内输入 ps -ef

    recall    2813  2803  0 13:16 ?        00:00:00 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote
    recall    2814  2813  0 13:16 ?        00:00:00 /opt/google/chrome/chrome --type=zygote
    recall    2820  2814  0 13:16 ?        00:00:00 /opt/google/chrome/chrome-sandbox /opt/google/chrome/nacl_helper
    recall    2821  2820  0 13:16 ?        00:00:00 /opt/google/chrome/nacl_helper
    recall    2823  2814  0 13:16 ?        00:00:00 /opt/google/chrome/chrome --type=zygote
    recall    2846  2803  3 13:16 ?        00:07:48 /opt/google/chrome/chrome --type=gpu-process --channel=2803.0.612499369 --supports-dual-gpus=false --gpu-drive
    recall    2850  2846  0 13:16 ?        00:00:00 /opt/google/chrome/chrome --type=gpu-broker                                                                   
    recall    2870  2823  0 13:16 ?        00:00:15 /opt/google/chrome/chrome --type=renderer --enable-deferred-image-decoding --lang=zh-CN --force-fieldtrials=Pr
    recall    2874  2823  0 13:16 ?        00:00:25 /opt/google/chrome/chrome --type=renderer --enable-deferred-image-decoding --lang=zh-CN --force-fieldtrials=Pr
    

    显示的内容不会换行,比如最后一行
    我的终端有多宽,它就显示多少内容,
    --force-fieldtrials=Pr 后面的内容就不显示了,也没有换行?
    这需要设置什么么?

    3 条回复    2015-07-29 14:54:07 +08:00
    ryd994
        1
    ryd994  
       2015-07-23 17:51:04 +08:00 via Android   ❤️ 1
    ps | cat
    ps | less
    lifanxi
        2
    lifanxi  
       2015-07-23 22:49:06 +08:00
    COLUMNS=5000 ps -ef
    ps -ef -cols 5000
    recall704
        3
    recall704  
    OP
       2015-07-29 14:54:07 +08:00
    @ryd994 感谢, less 好使
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   847 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 19:57 · PVG 03:57 · LAX 12:57 · JFK 15:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.