學術及資源的交流園地 ^_^

pv [ console 下的 progress bar ]

最後更新: 2016-08-04

介紹

 

用慣了 M$ 的框框, 每次 copy 檔案時都有 progress bar 出現,

好讓人知幾時可以完工, 那難道 Linux Console 下沒有嗎 ?

有! 它就是 pv 了, 全名 Pipe Viewer

 

停用 XP 的自動播放

 

 

 

etch 升級上 lenny

debian 的更新是比其他發行本來得慢, 是次更新已經等了很久了 ~

因此有許多用 debian 的人都是用 testing 版本的 ~

所以每次升級都有人由  stable --- upgrade ---> stable

又有人由 testing --- upgrade ---> testing

所謂各人都有各人要走的路 !! 各有各我 upgrade

Remark:
我升級是因為 OpenVZ kernel 已經在 debian 內了 ^ ^

===============================================================

事前功夫:

 

升級前, 如果可以的話當然要做 full backup 啦 ~

不能的話最少也要知道自己系統安裝了什麼,

以便出事時可以重建系統 = ,= |||

dpkg -l  ~/curr-pkgs.txt
# 記錄了裝過什麼

tar -zcf ~/etc.bak.tar.gz /etc
# 備份系統的設定

另外以免節外生枝, 那要注意 /var 的可用空間,

因為升級包會下載在  /var/cache/apt/archives  內

apt-get clean
# 清除不用的包

script ( terminal 記錄工具 )

script

它是可出將 terminal 輸出的文字寫入到檔案內

# script -t 2>~/upgrade-lenny.time -a ~/upgrade-lenny.script

-a            Append the output to file
-t             Output timeing data to standard error

Output timeing data:

<time elapsed since the previous output> <characters were output this time>

 

重播 upgrade-lenny.script 的過程
# scriptreplay ~/upgrade-lenny.time ~/upgrade-lenny.script

 

Remark:

script 及 scriptreplay 是在 bsdutils 包內的

RSS feed