1 / 60

Unix 操作簡介

Unix 操作簡介. * 蘇慧群、 # 章顥瀚、陳家宏 * r9906004@mail.dyu.edu.tw # r9906024@mail.dyu.edu.tw 實驗室 ︰H704 指導教授 ︰ 張顧耀. Shell. What is Shell? shell 是一個命令解析器 ( command interpreter ) 在核心及使用者之間提供一個操作介面,來作為它們之間的一個溝通管道 當使用者在作業系統中執行指令時,並不是直接與核心做溝通,而是必須透過 shell 這個操作介面來處理. What shell do I use?.

ryder
Download Presentation

Unix 操作簡介

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Unix 操作簡介 *蘇慧群、#章顥瀚、陳家宏 * r9906004@mail.dyu.edu.tw # r9906024@mail.dyu.edu.tw 實驗室︰H704 指導教授︰張顧耀

  2. Shell • What is Shell? • shell 是一個命令解析器 ( command interpreter ) • 在核心及使用者之間提供一個操作介面,來作為它們之間的一個溝通管道 • 當使用者在作業系統中執行指令時,並不是直接與核心做溝通,而是必須透過shell 這個操作介面來處理

  3. What shell do I use? • Csh(CShell) • 它是由BSD UNIX所開發的,它加強了許多sh的功能,提供了命令列紀錄與工作控制,它的語法受到C程式語言的影響相當深遠 • Ksh(KornShell) • 由sh所建立的,並且加入了許多C shell的功能,使得它的功能強大、有效率而且易於使用。另一個shell稱為pdksh是ksh的免費版本 • Bash(Bourne Again Shell) • GNU計畫的一部分,它遵循標準的UNIX系統shell,並且將Kornshell與Cshell的功能加進來

  4. What shell do I use? • Psh(Posixshell) • 它是由POSIX組織(Portable Operating System Interface for Computer Environment) 所設計,依照UNIX系統語言標準P1003.2開發出來的shell。它延伸了許多ksh的功能 • Tcsh • 它是由C shell所延伸出來,加強了一些能力,它是在Linux系統當中可以使用的。 • Zsh • 是由Kornshell所改編而來,但是因為加入了許多C shell的功能,因此並不是完全的與Kornshell相容。

  5. What shell do I use? • 目前所使用的Shell是哪一種 • echo $shell Ps. echo $變數名稱,`$` 為變數符號,變數名稱常見的有以下幾種 • SHELL 使用哪一種shell • PATH 程式搜尋路徑 • TERM 終端機的型態 • Shell的提示號 • #:代表root的提示號 • $ : 代表一般使用者登入之後的提示號 (UNIX System V) Ps. 其他常用的外部程式則可能使用%作為提示號

  6. How to start? (XP) • Step 1. 開始→執行→輸入 telnet aries.dyu.edu.tw

  7. How to start? (XP) • Step 2. 輸入學校E-mail的帳號密碼

  8. How to start? (win7) • Step 1. 開始→附屬應用程式→執行 →輸入 telnet aries.dyu.edu.tw

  9. How to start? (win7) • Step 2. 輸入學校E-mail的帳號密碼

  10. What shell do I use?

  11. What shell do I use?

  12. What shell do I use?

  13. 基本指令 • Display processes • ps • 顯示process 的狀態(process status) PID 欄:即ProcessID,一個正在執行的程式在系統中的唯一編號 TTY欄:該process 的擁有者 TIME欄:該程式所花費的執行時間 CMD欄:該使用者所執行的程式名稱 • kill • 停止處理程序,通常先用ps命令查得Process ID,再殺之 kill -9 立即停止一個process kill -9 -1 殺掉系統內所有屬於自己的process

  14. 基本指令

  15. 基本指令

  16. 基本指令

  17. 基本指令

  18. 基本指令 • List files • ls • 列出目錄內檔案名稱(如DOS 的dir/w) • ls –l • 除了列出檔名外,並列出檔案屬性及擁有者、檔案大小及建立時間等資訊 • ls –a • 列出所有檔案,包括隱藏檔

  19. 基本指令 • Copy files • cp <原始檔> <複製檔> • Delete files • rm • 刪除檔案,若加上-i會徵求確認後刪除 • rm –r <目錄名> • 刪除該目錄及該目錄之下的所有檔案 • rm –rf • 同上,但不會先徵求確認

  20. 基本指令

  21. 基本指令

  22. 基本指令

  23. 基本指令

  24. 基本指令

  25. 基本指令 • File/director information • drwxrwxrwx • d:資料夾 • r:讀取 • w:寫入 • x:執行 • d<檔案所有者><檔案所屬群組><系統其他使用者> • mkdir • 建立子目錄 • rmdir • 刪除子目錄

  26. 基本指令

  27. 基本指令

  28. 基本指令

  29. 基本指令

  30. 基本指令 • pwd • 查詢目前所在之目錄名稱 • cd • 更換目前工作目錄位置

  31. 基本指令

  32. 基本指令

  33. 基本指令

  34. 基本指令

  35. 基本指令

  36. 基本指令 • cc • C Compiler

  37. 基本指令

  38. 基本指令

  39. 基本指令

  40. 基本指令

  41. FTP • What is FTP? • FTP 為 File Transfer Protocol 之縮寫,翻成中文為「檔案傳輸協定」,顧名思義是一種能讓電腦與電腦透過網路互相傳遞檔案的通信協定

  42. FTP • Structure • FTP檔案傳輸採用 Client / Server 架構,是由「FTP 伺服器」和「FTP客戶程式」通力完成 Internet Client Server

  43. FTP-How to start? (XP) • Step 1. 開始→執行→輸入 ftp aries.dyu.edu.tw

  44. FTP-How to start? (XP) • Step 2. 輸入學校E-mail的帳號密碼

  45. FTP-How to start? (win7) • Step 1. 開始→附屬應用程式→執行 →輸入 ftp aries.dyu.edu.tw

  46. FTP-How to start? (win7) • Step 2. 輸入學校E-mail的帳號密碼

  47. FTP-基本指令 • pwd • 查詢server目前所在之目錄名稱 • cd • 更換server目前工作目錄位置 • lcd • 更換本機的目前工作目錄位置

  48. FTP-基本指令

  49. FTP-基本指令

  50. FTP-基本指令

More Related