Upload
kenneth-smith
View
22
Download
0
Embed Size (px)
DESCRIPTION
第一次用工作站就上手. Originated from Maya, revised by Yun-Nung Chen. Reference. http://linux.vbird.org/ 鳥哥的 Linux 私房菜 http://www.csie.ntu.edu.tw/~piaip/pietty/ pietty 作者網頁 http://cygwin.com/ cygwin 首頁. How to Start. First, you should have an login account (of course!) - PowerPoint PPT Presentation
Citation preview
第一次用工作站就上手Originated from Maya, revised by Yun-Nung Chen
1
Reference
http://linux.vbird.org/ 鳥哥的 Linux 私房菜
http://www.csie.ntu.edu.tw/~ piaip/pietty/ pietty 作者網頁
http://cygwin.com/ cygwin 首頁
2
How to Start
First, you should have an login account (of course!)
For those in EE, ccws2.ee.ntu.edu.twIf you don’t know your password, please ask 系計中https://cc.ee.ntu.edu.tw/
For those in CSIE, linux4.csie.ntu.edu.tw If you don’t know your password, please ask 217http://wslab.csie.ntu.edu.tw/
3
Pietty / Putty
4
File Transfer
5
VBird
6
linux tips
Tab is your good friend 自動完成
cd brings you home 回到登入目錄處
./ means current directory.// means up directory 表示現在的目錄和上層的目錄
7
Basic Commands
Online menus: man info --help
File management cp 複製 mkdir 建新資料夾 mv 搬移 (剪下 ) 或是 更名 rm 刪除檔案 (-r 可刪除目錄 ) rmdir 刪除目錄 ls 列出目前資料夾下所有檔案
8
Running Jobs
Process management: ps 顯示 process 狀態 top 類似 ps 但提供動態的資訊更新 kill 刪掉正在執行的 process Ctrl + c 中斷目前的命令 背景執行 : ctrl + z , bg , &
按下 Ctrl + z 會暫停目前的命令 bg [jobspec] 會將暫停的命令放到背景執行 輸入命令時在最後端補 & 符號,會直接在背景執行 fg 把背景執行的命令拉回前景
9
Vi / Vim
Vi 是 linux 下常用的編輯器 剛開檔時是一般模式
在任何模式下狂按 esc 可回到一般模式 按 v 可選取範圍,選完後按 y 是複製, c 是剪下, p 是貼上
u 是復原 按:可輸入命令
: q 不存檔離開 : q! 強制不存檔離開 : wq 存檔離開 : w 存檔
按 i 進入插字模式
如果按到 ctrl-s ,按 ctrl-q 它就死而復生
10
Make
http://tetralet.luna.com.tw/index.php?op=ViewArticle&articleId=185
http://zh.wikipedia.org/w/index.php?title=Make&variant=zh-tw
11
Shell Script
Save your command in a file
sh XXXX.xx
12
Screen
See http://speech.ee.ntu.edu.tw/courses/DSP2009spring/hw1/screen.txt
13
Encoding
big5 or utf8 http://zh.wikipedia.org/w/index.php?title=%E5%A4%A7%E4%BA%94%E7%A2%BC&variant=zh-tw http://zh.wikipedia.org/w/index.php?title=UTF-8&variant=zh-tw
iconv
14
Cygwin
http://cygwin.com/ 安裝 cygwin 下載 setup.exe Default settings are fine ftp 站台請選擇 ftp.ntu.edu.tw
15
Cygwin
選擇你要的套件 :
16
Cygwin
這次選的套件
已安裝的套件
要安裝新套件時請重新執行 setup.exe
17