Linuxの基本コマンド(3)

7、コンテンツ検索@
[root @ localhost〜] #grep [option] "コンテンツの検索"
ファイル名
オプション:
-i:大文字と小文字を区別しない
-n:出力行番号
-v:検索を除外
-color =自動検索されたキーワードカラーで表示

八、。通報@
ここに画像の説明を挿入
[root @ localhost〜] #cd / tmp /
[root @ localhost tmp] #rm -rf *
[root @ localhost tmp] #touch abc
[root @ localhost tmp] #touch abcd
[root @ localhost tmp ]
#touch 012 [root @ localhost tmp] #touch 0abc
[root @ localhost tmp] #ls ?abc
[root @ localhost tmp] #ls [0-9] *
[root @ localhost tmp] #ls [^ 0-9 ] *

9.キーボード入力の
受信@キーボード入力の受信
[root @ localhost〜]#読み取り[オプション] [変数名]
オプション
:-p「プロンプト情報」:読み取り入力を待機している間、プロンプト情報を出力します
-t秒:読み取りコマンドは常にユーザー入力を待機する場合は、このオプションを使用して待機時間を指定します
-n文字数:読み取りコマンドは指定された文字数のみを受け入れ、実行します
-s:機密情報の入力に適した入力データを非表示にします

10.sourceコマンド@
[root @ localhost〜]#ソース構成ファイル
または
[root @ localhost〜]#。構成ファイル

11.cutコマンド@
[root @ localhost〜] #cut [option]ファイル名
オプション:
-f列番号:抽出する列
-d区切り文字:指定された区切り文字に従って列を分割します

おすすめ

転載: blog.csdn.net/qq_34134299/article/details/109117724