不過
目前好像也只能用來交作業@@
主要功能為記錄所有的操作動作
使用方法
script 檔名.script
ex : script test.script
會出現如圖
要結束紀錄時按下Ctrl+D
可以用 cat 指令看紀錄了些什麼
時間都有精確紀錄
真的很適合交作業XDD
實際檔案內容如下:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Thu Mar 24 19:07:53 2016 | |
]0;~/pro/test | |
[32muser@user-PC [33m~/pro/test[0m | |
$ mkdir testtest | |
]0;~/pro/test | |
[32muser@user-PC [33m~/pro/test[0m | |
$ cd testtest/ | |
]0;~/pro/test/testtest | |
[32muser@user-PC [33m~/pro/test/testtest[0m | |
$ cd .. | |
]0;~/pro/test | |
[32muser@user-PC [33m~/pro/test[0m | |
$ ./fibovector.exe [K[K[K[K[K | |
1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181 6765 ]0;~/pro/test | |
[32muser@user-PC [33m~/pro/test[0m | |
$ exit | |
Script done on Thu Mar 24 19:10:53 2016 |