1 / 33

How to Login

How to Login. Digital UNIX (mis4k.mis.yuntech.edu.tw) (ttyp2) login: gmi901 Password:Last login: Wed Aug 30 00:14:19 from localhost Digital UNIX V4.0D (Rev. 878); Tue Mar 2 11:35:26 CST 1999 ====================================== 國立雲林科技大學資訊管理技術系 MIS4K DEC 工作站

Télécharger la présentation

How to Login

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. How to Login Digital UNIX (mis4k.mis.yuntech.edu.tw) (ttyp2) login: gmi901 Password:Last login: Wed Aug 30 00:14:19 from localhost Digital UNIX V4.0D (Rev. 878); Tue Mar 2 11:35:26 CST 1999 ====================================== 國立雲林科技大學資訊管理技術系 MIS4K DEC工作站 ====================================== mis4k:/mis/GMI/90/gmi901>

  2. 作業系統的發行版本 • kernel 的版本 • 執行的機種 • 主機名稱

  3. Change Your Password mis4k:/mis/GMI/gmi901> passwd Changing password for gmi901. Old password: New password: Retype new password: mis4k:/mis/GMI/gmi901>

  4. 虛擬主控台(終端機) • 虛擬主控台 tty0 ~tty5表示,以Alt+F1~F6在主控台中切換 • Alt + F7切換到X視窗的虛擬終端機畫面 • 由X視窗切換到文字模式的虛擬主控台 ,則按Ctrl + Alt + F1~ F6

  5. 登出 • logout • Ctrl + D • exit

  6. 關機 • shutdown • shutdown –h now

  7. Linux系統入門(一)

  8. Shell Interaction with the user and the OS Shell User types command The OS executes

  9. Linux系統入門(二) • 核心程式(KERNEL)- • 1.程序管理:啟動程序,排程序程管,分配資源(如理記憶體) • 2.裝置管理:監督主要記憶體及周邊裝之間的資料傳輸作業 • 3.檔案管理

  10. Linux系統入門(三) • SHELL- • 命令與KERNEL之間橋樑 • 命令翻譯器(COMMANDS INTERPRETER) • 分為Bourne-Shell(sh)、C-Shell(csh)、korn-Shell(ksh)

  11. Linux系統入門(四) • 命令Commands- • 依功能可分成五類: • 1.文字處理-ed、vi • 2.資訊管理-提供管理檔案及目錄的工具 • 3.電子通訊-電子郵件 • 4.軟體發展環境-利用不同電腦語言發展軟體 • 5.其他公用程式-繪圖、計算等

  12. 常用的工具程式

  13. 指令線上說明 man • 線上手冊 • man cat

  14. 顯示目錄內容 • ls • ls - color • ls –al • ls –F • ls -ld • ls –a /etc/ske1

  15. 查看文字檔案內容 • cat • more • pg • head • tail • less

  16. cat • 顯示檔案內容 • cat filename • 連接數個檔案 • cat chat1 chat2 > book • cat chat[12345] > book • cat chat 3 chapt1 > newchapters • cat chat[31] > newchapters

  17. cat • 創造空檔案 cat /dev/null > empty • 編輯檔案 • 以(ctrl -d )結束 • cat > msforbob Victor from IBM called. New machine will arrive on Tuesday. ^d

  18. more • 在螢幕上每次顯示一頁 • more filename • [space]   顯示下一頁 • [return]   顯示下一行 • /word    向前尋找word • ?word   向後尋找word • q   離開

  19. pg • 在螢幕上每次顯示一頁 • q   離開

  20. head • 印出檔案的頭部份 • head -n 顯示檔案的頭n行 • head -5 hammy

  21. tail • 印出檔案的尾部份 • default 10 • tail -n 印出檔案最後n行 • tail +n 跳到第n行然後將剩下的部份印出 • tail -r 以相反順序印出

  22. less • 可回顧前面的內容 • 使用PageUp, PageDown • Q 離開 • H 控制建說明

  23. Date • sun4330% date 1996年 11月 07日: Thu 19:27:06 CST • sun4330% date '+%a %d:%m:19%y' Thu 07:11:1996 • sun4330% date '+It is now exactly %H:%M:%S.' It is now exactly 19:31:18.

  24. Who- 列出正在使用系統的所有使用者 • sun4330% who umi3432 ttyp0 Nov 7 19:30 (140.125.250.60) umi4202 ttyp1 Nov 7 17:35 (140.125.200.208) umi4256 ttyp2 Nov 7 17:26 (140.125.202.8) umi3437 ttyp3 Nov 7 18:32 (140.125.201.131) umi4211 ttyp4 Nov 7 16:15 (140.125.201.242) umi4244 ttyp5 Nov 7 19:07 (140.125.201.186) gmi413 ttyp6 Nov 7 17:30 (140.125.202.69) umi4226 ttyp7 Nov 7 19:19 (140.125.201.188) tungsh ttyp8 Nov 7 18:12 (huan.mis.yuntech)

  25. w - who is logged inand what are they doing sun4330% w 7:34pm up 1 day, 2:47, 18 users, load average: 1.71, 1.59, 1.50 User tty login@ idle JCPU PCPU what umi3432 ttyp0 7:30pm rlogin sungx3 umi4202 ttyp1 5:35pm 1:57 1 1 cpine umi4256 ttyp2 5:26pm 16 30 1 -csh umi3437 ttyp3 6:32pm 44 rlogin sungx3 umi4211 ttyp4 4:15pm 2:45 3 scheme umi4244 ttyp5 7:07pm 7 - csh

  26. whoami sun4330% whoami melanie

  27. who am i sun4330% who am i sun4330!melanie ttypf Nov 7 19:30 (140.125.83.140)

  28. which • 找尋指令的所在位置 • 根據.cshrc檔案 • alias • path • 可執行的檔案

  29. stty and tty • tty印出端機正在使用的通訊埠或虛擬終端機埠 • sun4330% tty /dev/ttyp5

  30. stty設定終端機選項 • 讓你控制系統對待你的終端機的方式 • 在.login中設定 • /mis/faculty/melanie % stty #2 disc;speed 9600 baud; -parity hupcl erase = ^? brkint -inpck -istrip icrnl -ixany ixoff onlcr echo echoe echok • 設定消去(erase)清除(kill)字元 stty erase \^h kill \^u

  31. echo • 重覆參數 • 察看shell的參數設定echo $PATH • 檔案名稱 *  ?[ • 忽略參數間多餘的空白

  32. echo • sun4330% echo A B C A B C • sun4330% echo 'A B C' A B C • sun4330% /usr/5bin/echo 'A\nB\n\tC' A B C (DEC: /usr/bin/echo ‘A\nB\n\tC’)

  33. wc-word count • 計算行數 • wc -l hammy • 計算字數 • wc -w hammy • 計算字元數 • wc -c hammy

More Related