逆引きUNIXコマンド/historyの履歴を削除する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* historyの履歴を削除する [#t3f5bd7f]
historyコマンドを利用して過去に入力したコマンド一覧を確認...
このコマンド履歴を削除する方法を以下に記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#h8e8413e]
-[[以前実行したコマンドの履歴を確認したい・historyコマン...
-[[特定番号のhistoryを削除する方法>逆引きUNIXコマンド/特...
* historyの履歴を削除するオプション [#d46aa8d5]
以下のオプションによりhistoryの履歴を削除することができま...
history -c
manコマンドで確認してみたところ、以下のように記述されてい...
$ man history
<snip>
history [n]
history -c
history -d offset
history -anrw [filename]
history -p arg [arg ...]
history -s arg [arg ...]
With no options, display the command histo...
of n lists only the last n lines. If the s...
for strftime(3) to display the time st...
between the formatted time stamp and the hi...
if not, the value of HISTFILE is used. Opt...
-c Clear the history list by deleting a...
-d offset
Delete the history entry at position...
-a Append the ‘‘new’’ history lines (...
tory file.
-n Read the history lines not already r...
to the history file since the beginn...
他にもオプションがあるので試してみてはいかがでしょうか!?
#br
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
#br
終了行:
#navi(../)
* historyの履歴を削除する [#t3f5bd7f]
historyコマンドを利用して過去に入力したコマンド一覧を確認...
このコマンド履歴を削除する方法を以下に記します。
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#h8e8413e]
-[[以前実行したコマンドの履歴を確認したい・historyコマン...
-[[特定番号のhistoryを削除する方法>逆引きUNIXコマンド/特...
* historyの履歴を削除するオプション [#d46aa8d5]
以下のオプションによりhistoryの履歴を削除することができま...
history -c
manコマンドで確認してみたところ、以下のように記述されてい...
$ man history
<snip>
history [n]
history -c
history -d offset
history -anrw [filename]
history -p arg [arg ...]
history -s arg [arg ...]
With no options, display the command histo...
of n lists only the last n lines. If the s...
for strftime(3) to display the time st...
between the formatted time stamp and the hi...
if not, the value of HISTFILE is used. Opt...
-c Clear the history list by deleting a...
-d offset
Delete the history entry at position...
-a Append the ‘‘new’’ history lines (...
tory file.
-n Read the history lines not already r...
to the history file since the beginn...
他にもオプションがあるので試してみてはいかがでしょうか!?
#br
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
#br
ページ名: