-[[UNIX & Linux コマンド・シェルスクリプト リファレンス:http://www.geocities.jp/geo_sunisland/index.html]]

* Tips [#s493523b]
-[[削除できないファイルやディレクトリができてしまったら:http://www.atmarkit.co.jp/flinux/rensai/linuxtips/131undelfiledel.html]]
-[[ファイルハッシュ値の計算:http://www.atmarkit.co.jp/fsecurity/rensai/securitytips/022hash.html]]
-[[cut コマンドを使用したフィルタリング:http://www.geocities.jp/geo_sunisland/filter_etc.html]]

-historyに実行時刻を表示(bashのみ)
--以下のようにシェル変数 HISTTIMEFORMAT をセット
 $ HISTTIMEFORMAT='%Y-%m-%d %T '(または HISTTIMEFORMAT="%F %T ")
 $ history
 1074  2011-02-10 11:28:44 ls
 1075  2011-02-10 11:28:53 ls
 1076  2011-02-10 11:28:54 ls
   :

--上記はログアウトすると戻ってしまう
--ユーザ毎に適用するなら .bashrc に「HISTTIMEFORMAT='%Y-%m-%d %T ';」を記載
--全ユーザに適用するなら /etc/profile に記載

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS