ユーザ用ツール

サイト用ツール


centos:command_history

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
centos:command_history [2014/02/27 06:13] – centos:コマンド履歴の増減 renamed to centos:command_history clownclowncentos:command_history [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 1: 行 1:
-====== Contents  ======+====== コマンド履歴(history) ======
  
-====== コマンド履歴の増減  ======+===== コマンド履歴の増減  =====
  
-===== 現在の設定を確認(環境変数)  =====+==== 現在の設定を確認(環境変数) ====
  
 <code> <code>
行 12: 行 12:
 </code> </code>
  
-===== 設定変更  =====+==== 設定変更  ====
  
 <code> <code>
行 35: 行 35:
  
  
-====== コマンド履歴の削除  ======+===== コマンド履歴の編集 =====
  
-===== historyの特定の履歴を削除  =====+==== historyの特定の履歴を削除 ====
  
 <code> <code>
行 43: 行 43:
 </code> </code>
  
-===== history特定履歴削除  =====+==== 現在historyバッファ保存 ====
  
-history-cオプションで全て履歴消去。+<code> 
 +history -
 +</code> 
 + 
 +==== bash_historyを直接編集 ==== 
 + 
 +<code> 
 +# vi .bash_history 
 +</code> 
 + 
 +==== 現在のhistoryバッファ削除 ====
  
 <code> <code>
 # history -c # history -c
 +</code>
 +
 +==== bash_historyを読み込む ====
 +
 +<code>
 +# history -r
 </code> </code>
  
centos/command_history.1393481632.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)