5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

今まで実行したコマンドをスクリプト化する

Posted at

PCセットアップ等で打った手番をそのままべた書きでスクリプトにしたい。
historyコマンドで確認はよくやると思うんですが、そのままファイル出力できることに気付いたので覚書

history -a cmd.sh

cmd.shに実行手番が先頭行数なしで吐き出されます。
(今まで手動で切り貼りしてた)

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?