Limit output of all Linux commands

前端 未结 5 1151
没有蜡笔的小新
没有蜡笔的小新 2021-01-18 19:23

I\'m looking for a way to limit the amount of output produced by all command line programs in Linux, and preferably tell me when it is limited.

I\'m working over a s

5条回答
  •  梦谈多话
    2021-01-18 20:06

    Assuming you're working over a network connection, like ssh, into a remote server then try piping the output of the command to less. That way you can manage and navigate the output from the program on the server better. Use 'j' and 'k' to move up and down per line and 'ctrl-u' and 'ctrl-d' to move 1/2 a page up and down. When you do this only the relevant text (i.e. what fits on the screen) will be transmitted over the network.

提交回复
热议问题