ターミナルでディレクトリ内容をリスト表示させると「月日」の判別がつきにくかったので、ロケール変数LC_TIMEを英語表記するようにしています。
日本語表記で ‘ls -l’ とすると
drwxr-xr-x 4 root wheel 136B 5 31 02:28 System
となりますが、英語表記にすると
drwxr-xr-x 4 root wheel 136B May 31 02:28 System
となり、一目瞭然ですね。
では、ロケール変数を変更するにはどうすればいいか。ホームディレクトリ直下に .bash_profile を作成して以下のコマンドを書き保存します。
export LC_TIME=en_US.UTF-8
よくわからないなぁって人はコマンドラインから以下のコマンドを実行してください。
echo "export LC_TIME=en_US.UTF-8" >> ~/.bash_profile
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">
Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser.
LC_TIME – 日時を英語表記で。
ターミナルでディレクトリ内容をリスト表示させると「月日」の判別がつきにくかったので、ロケール変数LC_TIMEを英語表記するようにしています。
日本語表記で ‘ls -l’ とすると
となりますが、英語表記にすると
となり、一目瞭然ですね。
では、ロケール変数を変更するにはどうすればいいか。ホームディレクトリ直下に .bash_profile を作成して以下のコマンドを書き保存します。
よくわからないなぁって人はコマンドラインから以下のコマンドを実行してください。
こちらも合わせてどうぞ