1.選項
2.錄製usage:
script [options]
[file]
make a typescript of a terminal session.
options:
-c, --command run command rather than interactive shell
-e, --return return
exit code of the child process
-f, --flush run flush after each write
--force use output file even when it is a link
-q, --quiet be quiet
-t, --timing[
=] output timing data to stderr (or to file)
-v, --version output version information and exit
-h, --help display this help and exit
$ script -t 2> timing.log -a output.session
錄製完成後鍵入exit
退出錄製。
3.回放
$ scriptreplay timing.log output.session
4.共享命令列
1)先建立管道pipe檔案
2)演示側輸入$ mkfifo scriptfifo
$ ll
總用量 0
prw-r--r-- 1 frank frank 0 2月 15 12:19 scriptfifo
$ script -f scriptfifo
3)**測輸入
運維經 第5章 python pip 加速
在使用pip install 的時候會很慢,而且你還是個急脾氣,咋整?pip install h 看一下,有沒有什麼解決方案?package index options i,index url base url of the python package index default this sho...
運維經 第9章 rust cargo 加速
因為本人主營業務是c 那麼就要更了解c 的敵人 rust 聽說她要取代c 但不得不說,rust的工具鏈還是非常值得稱讚的,後續會開幾期來講講rust工具鏈,今天還是談談加速。找到cargo的配置,cargo config base frank deepin cd cargo base frank d...
運維經 第64章 普通使用者使用docker
ll var run docker.sock srw rw 1 root docker 0 5月 31 22 25 var run docker.sock可以看到組使用者有對其有讀寫許可權。新增 docker 使用者組 groupadd docker 把需要執行的 docker 使用者新增進該組,這...