help/man ファイルの特定のフラグに移動

help/man ファイルの特定のフラグに移動

-T特定のフラグがコマンドに対して何を意味するのか疑問に思うとしますls。 ...を使用してそのアイテムに直接移動する方法はありますかman ls

またはこれは少し異なる質問です。そうではないので、同様のコマンドでジャンプしてフラグに直接移動する一般的manに許容される方法はありますか?git help log-S

たぶんこれも同じ答えですか? ! ?

ベストアンサー1

manパイプを接続しless、フラグを使用して-pこれを行うことができます。

  -ppattern or --pattern=pattern
          The -p option on the command line is equivalent to specifying
          +/pattern; that is, it tells less to start at the first
          occurrence of pattern in the file.

例:

man ls | less -p -T
man git-log | less -p -S

内部に着陸するので、less通常のナビゲーションキーももちろん動作します。

おすすめ記事