CD2020-40723115

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • python382更新
  • project
    • assignment 1
    • assignment 2
  • tool
    • 每周直播內容
    • COVID-19
    • VirtualBox
    • Linux
      • 磁碟與硬體管理
      • 系統管理員
      • 壓縮指令
      • 一些網路功能
      • 其他有的沒的
      • ftp 指令
      • 相關程式設定指令
      • X-Window 內的設定指令
      • 本章問題討論:
  • 小組倉儲
其他有的沒的 << Previous Next >> 相關程式設定指令

ftp 指令

ftp
FTP 這個功能不用再多談了吧?這是用來捉取網路上免費檔案的一套軟體。例如我們要連上交大的 FTP 站捉東西,可以如下:
 
[root@tsai /root]#  ftp linux.cis.nctu.edu.tw
Connected to linux.cis.nctu.edu.tw.
220 ProFTPD 1.2.0rc3 Server (Linux.CIS FTP server) [linux.cis.nctu.edu.tw]
Name (linux.cis.nctu.edu.tw:vbird): anonymous <==輸入 anonymous 匿名登入
331 Anonymous login ok, send your complete email address as your password.
Password:         <==輸入 name@server.xxx.xxx 型態的 mail-address 密碼
230 Anonymous access granted, restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir   <==檢查網站上的目錄
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
-rw-rw-rw-   1 linux    adm      39491400 Aug  3 21:00 00ls-lR
-rw-rw-rw-   1 linux    adm       3091546 Aug  3 21:01 00ls-lR.gz
-rw-r--r--   1 linux    wheel         232 Mar 15 22:00 00mirror.today
drwxr-xr-x   5 linux    wheel        4096 Oct 29  2000 java
drwxr-xr-x  14 linux    wheel        4096 Aug  2 19:31 kernel
drwxr-xr-x   4 linux    wheel        4096 Sep 28  2000 mirrors
226-Transfer complete.
226 Quotas off
ftp> cd kernel/v2.4 <==進入 kernel 底下的 v2.4 目錄
250 CWD command successful.
ftp> get linux-2.4.0.tar.bz2.sign <==捉下 linux-2.4.0.tar.bz.2.sign 這個檔
local: linux-2.4.0.tar.bz2.sign remote: linux-2.4.0.tar.bz2.sign
200 PORT command successful.
150 Opening BINARY mode data connection for linux-2.4.0.tar.bz2.sign (248 bytes)
.
226 Transfer complete.
248 bytes received in 0.014 secs (17 Kbytes/sec)
ncftp
在使用 FTP 功能的時候,因為只能一次捉一個檔案,所以要捉一群檔案的時候就會有困擾。這時我們可以使用更容易登入匿名 FTP 站的 ncftp 來執行 FTP 功能!
 
[root@tsai /root]# ncftp linux.cis.nctu.edu.tw
ncftp / > mget  -R  kernel  <==將 kernel 這個目錄的東西全捉下來!
加上了 mget -R 目錄 這個指令後,就可以將目錄下的東西完全捉下來!好用吧!
gftp
這是在 X-Windows 使用的圖形介面 FTP 咚咚!這個咚咚的使用方法就跟 CutFTP 很相似!


其他有的沒的 << Previous Next >> 相關程式設定指令

Copyright © All rights reserved | This template is made with by Colorlib