17
第第第第第第第第 Originated from Maya, revised by Yun-Nung Chen 1

第一次用工作站就上手

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

Page 1: 第一次用工作站就上手

第一次用工作站就上手Originated from Maya, revised by Yun-Nung Chen

1

Page 2: 第一次用工作站就上手

Reference

http://linux.vbird.org/ 鳥哥的 Linux 私房菜

http://www.csie.ntu.edu.tw/~ piaip/pietty/ pietty 作者網頁

http://cygwin.com/ cygwin 首頁

2

Page 3: 第一次用工作站就上手

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

Page 4: 第一次用工作站就上手

Pietty / Putty

4

Page 5: 第一次用工作站就上手

File Transfer

5

Page 6: 第一次用工作站就上手

VBird

6

Page 7: 第一次用工作站就上手

linux tips

Tab is your good friend 自動完成

cd brings you home 回到登入目錄處

./ means current directory.// means up directory 表示現在的目錄和上層的目錄

7

Page 8: 第一次用工作站就上手

Basic Commands

Online menus: man info --help

File management cp 複製 mkdir 建新資料夾 mv 搬移 (剪下 ) 或是 更名 rm 刪除檔案 (-r 可刪除目錄 ) rmdir 刪除目錄 ls 列出目前資料夾下所有檔案

8

Page 9: 第一次用工作站就上手

Running Jobs

Process management: ps 顯示 process 狀態 top 類似 ps 但提供動態的資訊更新 kill 刪掉正在執行的 process Ctrl + c 中斷目前的命令 背景執行 : ctrl + z , bg , &

按下 Ctrl + z 會暫停目前的命令 bg [jobspec] 會將暫停的命令放到背景執行 輸入命令時在最後端補 & 符號,會直接在背景執行 fg 把背景執行的命令拉回前景

9

Page 10: 第一次用工作站就上手

Vi / Vim

Vi 是 linux 下常用的編輯器 剛開檔時是一般模式

在任何模式下狂按 esc 可回到一般模式 按 v 可選取範圍,選完後按 y 是複製, c 是剪下, p 是貼上

u 是復原 按:可輸入命令

: q 不存檔離開 : q! 強制不存檔離開 : wq 存檔離開 : w 存檔

按 i 進入插字模式

如果按到 ctrl-s ,按 ctrl-q 它就死而復生

10

Page 11: 第一次用工作站就上手

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

Page 12: 第一次用工作站就上手

Shell Script

Save your command in a file

sh XXXX.xx

12

Page 13: 第一次用工作站就上手

Screen

See http://speech.ee.ntu.edu.tw/courses/DSP2009spring/hw1/screen.txt

13

Page 14: 第一次用工作站就上手

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

Page 15: 第一次用工作站就上手

Cygwin

http://cygwin.com/ 安裝 cygwin 下載 setup.exe Default settings are fine ftp 站台請選擇 ftp.ntu.edu.tw

15

Page 16: 第一次用工作站就上手

Cygwin

選擇你要的套件 :

16

Page 17: 第一次用工作站就上手

Cygwin

這次選的套件

已安裝的套件

要安裝新套件時請重新執行 setup.exe

17