搜尋此網誌

2012年6月13日 星期三

VIM 縮排設定

編輯 .vimrc

set tabstop=4
set shiftwidth=4
set expandtab

設定縮排(tab)寬度為4個空白

2012年5月20日 星期日

tree -a

好用的tree -a 指令

list contents of directories in a tree-like format.

 -a     All  files  are  printed.  By default tree does not print hidden files
              (those beginning with a dot `.').  In no event  does  tree  print  the
              file  system  constructs  `.'  (current  directory) and `..' (previous
              directory).

2012年5月16日 星期三

連線ssh不用密碼

參考網址

ssh-keygen -t rsa

scp /home/parks/.ssh/id_rsa.pub parks@192.168.1.195:~/.ssh/


ssh parks@192.168.1.195

cat .ssh/id_rsa.pub >> .ssh/authorized_keys

chmod 600 ~/.ssh/authorized_keys

這樣就可以直接連線不用密碼了

用cat指令新建檔案



用 cat 建立文件並且輸入內容,
使用指令:

cat > userdoc  

就會建立建立文件userdoc

然後輸入你的文件內容, 
結束按ctrl + d 終止輸入,

文件就建立好了!

2012年4月5日 星期四

div 內防止文字溢出

使用CSS:

word-wrap: break-word;
word-break: normal;

2012年3月25日 星期日

Libreoffice 自動校正選項

使用LibreOffice時有些自動完成選項很惱人,
像是自動把開頭字母換成大寫, 還有雙引號,單引號等等,

處理方法,就是到 工具 --> 自動校正選項 裏面把不要的自動完成或取代功能關掉。

2011年11月29日 星期二

Linux移除VmWare Player

來源

sudo vmware-installer -u vmware-player