Limit output of all Linux commands

前端 未结 5 1109
没有蜡笔的小新
没有蜡笔的小新 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:04

    this makes me think of bash-completion.

    As complete command in bash enables you to specify handler when a program is not found,

    what about write your own handler and clear $PATH, in order to execute every command with redirection to a filtering pipe?

    #Did not try it myself.

提交回复
热议问题