こんにちは! 株式会社ビヨンド四国オフィスのペルシャ猫、いのうえです。 かっこよく言えばMSPの私が日々障害対応していくなかでよく使うコマンド「history」 コマンドの実行履歴一覧を表示するためのコマンド。 「実行したコマンドを振り返りたいなあ~」って時に使えます。 historyコマンド ■コマンド実行履歴一覧を表示する。 [root@test-aws-harukainoue ~]# history 5 ls -l 6 cd dir1 7 ls -l 8 touch haruka{1..10} ・ ・ ・ 995 netstat 996 netstat -l 997 netstat -t 998 netstat -p 999 netstat -nltp 1000 history ■直近に実行したコマンド5個を表示する [root@test-aws-harukainoue ~]# hi