Memo

メモ > サーバ > 各論: コマンド > コマンド実行の言語を指定する

■コマンド実行の言語を指定する
OSの設定が日本語でも、コマンドの前に「LC_ALL=C」を付加すれば英語で実行結果を取得できる 実行結果をもとに何らかの処理を行う場合、日本語混じりでない方が都合がいいことがある
$ ll 合計 16 drwxr-xr-x 2 apache apache 4096 11月 11 2020 images -rw-r--r-- 1 apache apache 6 11月 11 2020 test1.txt -rw-r--r-- 1 apache apache 17 11月 26 2020 test2.txt -rw-r--r-- 1 apache apache 35 11月 26 2020 test3.txt $ LC_ALL=C ll total 16 drwxr-xr-x 2 apache apache 4096 Nov 11 2020 images -rw-r--r-- 1 apache apache 6 Nov 11 2020 test1.txt -rw-r--r-- 1 apache apache 17 Nov 26 2020 test2.txt -rw-r--r-- 1 apache apache 35 Nov 26 2020 test3.txt

Advertisement