1.look
用來(lái)查英文單詞不錯(cuò)- -
look succesful
2.pv
echo "Tecmint [dot] com is the world's best website for qualitative Linux article" | pv -qL 20
放電影一樣把字幕輸出
3.factor
factor 1024
"The factor command is actually a command of mathematical origin. This command outputs all the factors of a given number."
4.logsave
logsave -a out.log echo "hello world"
logsave is a very nice tool that captures the output of a program and sends it too a log-file. It’s more or less the same what “tee” does, only it will add a begin time stamp and a end time stamp:
5.strace
strace -p 1725 -o output.txt
strace -c ls /home
6.nc
發(fā)送一個(gè)文件很簡(jiǎn)單,但是如果我們想要發(fā)送多個(gè)文件,或者整個(gè)目錄,一樣很簡(jiǎn)單,只需要使用壓縮工具tar,壓縮后發(fā)送壓縮包。
如果你想要通過(guò)網(wǎng)絡(luò)傳輸一個(gè)目錄從A到B。
Server
$tar -cvf – dir_name | nc -l 1567
Client
$nc -n 172.31.100.7 1567 | tar -xvf -
這里在A服務(wù)器上,我們創(chuàng)建一個(gè)tar歸檔包并且通過(guò)-在控制臺(tái)重定向它,然后使用管道,重定向給netcat,netcat可以通過(guò)網(wǎng)絡(luò)發(fā)送它。
在客戶端我們下載該壓縮包通過(guò)netcat 管道然后打開(kāi)文件。
如果想要節(jié)省帶寬傳輸壓縮包,我們可以使用bzip2或者其他工具壓縮。
Server
$tar -cvf – dir_name| bzip2 -z | nc -l 1567
通過(guò)bzip2壓縮
Client
$nc -n 172.31.100.7 1567 | bzip2 -d |tar -xvf -
使用bzip2解壓