0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【編集中】Linuxコマンド

Posted at

コマンドモードにおける操作

キー 内容 備考
0 行頭へ移動
b 前の単語の先頭文字へ移動
e 今の単語の最終文字へ移動
w 次の単語の先頭文字へ移動
$ 行末へ移動

vi

テキストファイルを編集する(エディタ)
vi オプション ファイル名

オプション 内容 備考
+ ファイル末尾にカーソルを当てて表示
+数字 検索結果をカーソルを当てて表示
+/パターン 検索結果をカーソルを当てて表示

コマンドモード(閲覧時)の操作コマンド

オプション 内容 備考
g ファイル先頭に移動
G ファイル末尾に移動
? 上方向に検索
/ 下方向に検索
n 下方向に次の検索
N 上方向に次の検索
q 終了

less

テキストファイルを閲覧する
less オプション ファイル名

オプション 内容 備考
-N 行番号付きで表示
-p 検索結果を先頭に表示 -p ERROR

コマンドモード(閲覧時)の操作コマンド

オプション 内容 備考
g ファイル先頭に移動
G ファイル末尾に移動
? 上方向に検索
/ 下方向に検索
n 下方向に次の検索
N 上方向に次の検索
q 終了
0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?