Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

bash | viモード | テキスト補完

パンくず

入門bash
テキスト補完

概要

テキスト補完

内容

コマンド 説明
\ テキスト補完を行う
* 複数の補完を行う
= 補完対象の一覧を標準出力する

サンプルコード

カレントディレクトリの状態

$ls
0.txt  00.txt

cat 0まで入力後、制御モードに変更して\を押下

$cat 00.txt

cat 0まで入力後、制御モードに変更して*を押下

$cat 0.txt 00.txt

cat 0まで入力後、制御モードに変更して=を押下

$cat 0
0.txt   00.txt