命令

 

輸出過濾linux

cat nohup.out |grep ">>" | grep -v 'I/O' |grep wecash >> wecash.okwindows

排序去重服務器

awk -F , '{print $2}' jd.ok |sort | uniqsession

比較列數ssh

cat 811 | awk -F "," "{if(NF!=12 ) print }"| wc -lsvn

svn 刪除全部的 .svn文件工具

find . -name .svn -type d -exec rm -fr {} \;字體

scp是有Security的文件copy,基於ssh登陸。操做起來比較方便,好比要把當前一個文件copy到遠程另一臺主機上,能夠以下命令。spa

scp /home/daisy/full.tar.gz root@172.19.2.75:/home/root命令行

而後會提示你輸入另外那臺172.19.2.75主機的root用戶的登陸密碼,接着就開始copy了。

若是想反過來操做,把文件從遠程主機copy到當前系統,也很簡單。

scp root@/full.tar.gz 172.19.2.75:/home/root/full.tar.gz home/daisy/full.tar.gz

 

Linux的控制檯顏色很好設置:Options ->Session Options -> Terminal -> Emulation 中Terminal選擇ANSI or linux or xterm,必須鉤上 ANSI Colour

---------------------------------------------------------
轉一部分東西:

SecureCRT設置彩色和顯示中文
設置Options->SessionOptions ->Emulation,而後把Terminal類型改爲xterm,並點中ANSI Color複選框。
字體設置:Options->SessionOptions->Appearance->font而後改爲你想要的字體就能夠了。
注意:
1:字符集選擇utf8,這樣能夠避免顯示漢字亂碼
2:選擇字體的時候,須要選擇ture type的字體(如新宋體),否則會出現漢字亂碼
3:scrollback buffer 調大(5000),這樣你就能夠看到之前顯示內容,這樣方便不少
4:terminal要選擇xtem,這樣你ssh到服務器上才能顯示顏色,並把ANSI Color打上勾
5:我選擇的顏色方案Windows或Traditional。

用SecureCRT(Linux)來上傳和下載數據
設置一下上傳和下載的默認目錄就行
options–>session options–>file transfer 下能夠設置上傳和下載的目錄
剩下的你只要在用SecureCRT登錄linux終端的時候:
發送文件到windows客戶端:sz file1 file2
zmodem接收能夠自行啓動.
從客戶端上傳文件到linux服務端:
只要服務端執行 : rz(rz -y)
而後在 SecureCRT 裏選文件發送,協議 zmodem
簡單吧,若是你之前一直使用ssh,而又沒有對外開放ftp服務,你就直接使用這種方式來傳輸你的文件

SecureCRT的幫助中copy的:
ZModem is a full-duplex file transfer protocol that supports fast data transfer rates and effective error detection. ZModem is very user friendly, allowing either the sending or receiving party to initiate a file transfer. ZModem supports multiple file ("batch") transfers, and allows the use of wildcards when specifying filenames. ZModem also supports resuming most prior ZModem file transfer attempts.
rz,sz是即是Linux/Unix同Windows進行ZModem文件傳輸的命令行工具

PS:Linux上rz/sz這兩個小工具安裝lrzsz-x.x.xx.rpm便可,Unix可用源碼自行 編譯,Solaris spac的能夠到sunfreeware下載執行碼

相關文章
相關標籤/搜索