摘要: 設定 [Ctrl] + [s] 快捷鍵為存檔Step1. 編輯 vim ~/.bashrc加入stty stop undef2. 編輯 vim ~/.vimrc加入以下noremap :updatevnoremap :updateinoremap :update3. 完成,重新執行 vim就可以使用 [Ctrl] + [s] 存檔 = :w如果想更徹底換成Windows 常用組合鍵,可參考這篇,這篇和這篇(gvim)參考網址:1.http://brownydev.blogspot.tw/2014/01/vim-map-ctrls-to-save-file.html2.http://... 阅读全文
posted @ 2014-03-24 22:45 a-jay 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 查指令的用途man = info (安裝中文manpage,參考這篇)whatis 環境變數cat ~/.bashrc/etc/profile.d/*.shalias 顯示目前系統有的aliasalias ll='ls -alF'unaliasset 顯示目前系統的環境變數export PATH="xxx" 改環境變數 $PATH="xxx"查看目錄ls or Dir-a:列出全部檔案包括隱藏檔-l:列出詳細的檔案資訊-R:遞回列出所有子目錄和檔案-r:以反方向順序顯示-X 以副檔名排序顯示-S 以檔案大到小排序顯示-t以時間大到小排序顯 阅读全文
posted @ 2014-03-23 23:55 a-jay 阅读(197) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install xrdp遠端桌面連線Port: 3389可與Windows遠端桌面相互連線不用時記得停止Servicesudo service xrdp stop參考網址:http://pangomi.blogspot.tw/2012/11/xrdp-win7-ubuntu-1204lts.html 阅读全文
posted @ 2014-03-23 02:37 a-jay 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Step1. sudo apt-get install gnome-shell2. sudo reboot3. 重開機後,選擇GNOME Classic參考網址:http://www.arthurtoday.com/2011/10/ubuntu-1110-ubuntu-classic-gnome.html 阅读全文
posted @ 2014-03-23 02:06 a-jay 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. 抓網頁內容,預設 HTTP GET Methodcurl http://xxx2. 使用 HTTP POSTMethodcurl -d "id=xxx&book=ooo" http://xxx3.抓網頁,輸出檔案curl -o FileName.html http://xxx4. 下載網站檔案(注意:是大寫的英文O)curl -O http://xxx/FileName.zip5. 下載 FTP 檔案curl -u UserName:Passwd ftp://ip:port/path/filecurl ftp://UserName:Passwd@ip:port 阅读全文
posted @ 2014-03-22 22:42 a-jay 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1. tar (純打包,無壓縮)解包: tar cvf xxx.tar FileName打包: tar xvf xxx.tar2. tar.gz (tgz 和 tar.tgz參數相同)壓縮:tar zcvf xxx.tar.gz FileName解縮:tar zxvf xxx.tar.gz3. tar.bz2壓縮: tar jcvf xxx.tar.bz2 FileName解縮: tar jxvf xxx.tar.bz24. gz壓縮: gzip FileName解縮: gunzip FileName.gz (gzip -d FileName.gz)5. bz2壓縮: bzip2 -z Fil 阅读全文
posted @ 2014-03-22 21:55 a-jay 阅读(145) 评论(0) 推荐(0) 编辑
摘要: tmux簡介:一個很好用的多工視窗程式,可以使你在終端機下同時做好幾件事情。Step:1.安裝 sudo apt-get install tmux2.第一次執行 tmux 就可以了*以下任何操作之前,先按 [Ctrl] + [b] 組合鍵,再配合一個按鍵c 建立新視窗r 重新讀取.tmux.conf, 重新命名目前視窗. 修改目前視窗的編號p 切換到前一個視窗n 切換到後一個視窗數字 切換指定"數字"的視窗l 兩個視窗互相切換& 關閉目前的視窗= exit =[Ctrl] + [d]s 切換另一個session$ 重新命名目前的sessiond 暫時退出tmux? 阅读全文
posted @ 2014-03-20 19:31 a-jay 阅读(758) 评论(0) 推荐(0) 编辑
摘要: 簡介:Scrapy 是一個Python 網路蜘蛛的框架,可以簡單用 Python 的程式碼寫網路蜘蛛,很方便的抓網頁上的資料。Step1.執行lsb_release -cs 指令2.編輯 sudo vim/etc/apt/sources.list加入deb http://archive.scrapy.org/ubuntu precise main3.先安裝 sudo apt-get install curl4.執行curl -s http://archive.scrapy.org/ubuntu/archive.key | sudo apt-key add -5.升級sudo apt-get u 阅读全文
posted @ 2014-03-20 12:45 a-jay 阅读(223) 评论(0) 推荐(0) 编辑
摘要: SSH server連端連線的好幫手Step1.一開始當然要先安裝軟體囉~sudo apt-get install openssh-server2.安裝完後需要一些基本的設定sudo vim /etc/ssh/sshd_config2-1.改登入權限找到PermitRootLogin yes改成PermitRootLogin no #不允許Root登入2-2.改Port接著改預設Port,只要不要與其他Service衝突到就OK,可以下sudo less /etc/services指令看看系統有哪些Port被使用# What ports, IPs and protocols we listen 阅读全文
posted @ 2013-06-12 16:27 a-jay 阅读(188) 评论(0) 推荐(0) 编辑