LoginSignup
0

More than 3 years have passed since last update.

lessコマンド

Last updated at Posted at 2019-08-19

目次

はじめに

忘れがちなlessのコマンド(オプション)を残します。(2017.09)
普段lessを使用しないので内容が凄く薄い。。。

コマンド

-N 行番号表示 ※1
-S (長い行を)1行で表示 ※1
-M ファイル名&行数&位置の表示 ※1
g ファイルの先頭に移動
G ファイルの末尾に移動
h or H ヘルプを表示
q or Q 終了

※1 コマンドを2回実行すると元に戻ります。

&pattern grep の様にpatternが含まれる行だけ表示
Shift+F tail -f の様に自動更新
Ctrl+C tail -f を停止

その他コマンドは less --help 参照

オプション

+F tail -f の様に自動更新
-S (長い行を)1行で表示

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0