105.03.24 終端機下 script 指令介紹使用

恩交作業用到覺得不錯玩
不過
目前好像也只能用來交作業@@

主要功能為記錄所有的操作動作

使用方法
script 檔名.script
ex : script test.script
會出現如圖














要結束紀錄時按下Ctrl+D













可以用 cat 指令看紀錄了些什麼


















時間都有精確紀錄
真的很適合交作業XDD

實際檔案內容如下:
Script started on Thu Mar 24 19:07:53 2016
]0;~/pro/test
user@user-PC ~/pro/test
$ mkdir testtest
]0;~/pro/test
user@user-PC ~/pro/test
$ cd testtest/
]0;~/pro/test/testtest
user@user-PC ~/pro/test/testtest
$ cd ..
]0;~/pro/test
user@user-PC ~/pro/test
$ ./fibovector.exe 
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 ]0;~/pro/test
user@user-PC ~/pro/test
$ exit
Script done on Thu Mar 24 19:10:53 2016
view raw test.script hosted with ❤ by GitHub



^ Top