1.在開始\執行 鍵入 "ftp"
2.ftp> open 140.112.8.72(也可以是別的地方)
3.接下來看到:
ftp> open 140.112.8.72
Connected to 140.112.8.72.
220 ccsun72 FTP server (SunOS 5.6) ready.
User (140.112.8.72:(none)): b8705024
331 Password required for b8705024.
Password:
230 User b8705024 logged in.
ftp>
4.試試看有什麼功能!
ftp> dir
200 PORT command successful.
150 ASCII data connection for /bin/ls (203.95.216.143,1030) (0 bytes).
total 10
drwxr-xr-x 2 b8705024 7705 1024 Oct 25 19:32 .
drwxr-xr-x 151 root 7705 3072 Oct 11 09:56 ..
-rw------- 1 b8705024 7705 56 Oct 25 18:49 .history
226 ASCII Transfer complete.
ftp: 189 bytes received in 0.00Seconds 189000.00Kbytes/sec.
鍵入"dir"
如果實在是太長的話
就按鍵盤上的"pause"!!
切換目錄也是"cd"!!
到上一層"cd .."
^^要有空格喔!
在Unix裡面的路徑是/dir/dir/ "/"是backslash
還有分大小寫,要注意喔
5.什麼意思啊??
drwxr-xr-x 2 b8705024 7705 1024 Oct 25 19:32 .
drwxr-xr-x 151 root 7705 3072 Oct 11 09:56 ..
-rw------- 1 b8705024 7705 56 Oct 25 18:49 .history
在DOS 在UNIX
dir ls
md mkdir
cd cd
copy cp
del rm
type cat(不是貓!)
drwxr-xr-x 2 b8705024 7705 1024 Oct 25 19:32 .
d→目錄 擁有者 檔案大小 時間 檔名
r→可讀
w→可寫
x→可執行
檔名打一點"."是這一層的意思
兩點".."是上一層的意思
drwxr-xr-x
沒事那麼長一串
d不管他,是目錄的意思
rwx是你自己的權限
r-x群組權限
--
※ 發信站: 批踢踢實業坊(ptt.twbbs.org)
◆ From: ms2.cc.ntu.edu.tw
> -------------------------------------------------------------------------- <
作者: vooduforever (衝啊!) 看板: NTUIM-9
標題: 還沒完呢!
時間: Mon Oct 25 22:47:21 1999
因為剛才死cathy跑到我家作亂,害我文章波了一半
我都不曉得自己寫到那了!
講講ftp 好了
檔案傳輸設在binary模式
在ftp> binary就好了
會出現:
200 Type Set to I.
這樣子就對了,可以傳所有的檔案,不會有亂碼出現
get 檔案名 本機路徑
eg.
ftp> get winzip95.exe c:\download\
這樣子就行了
上傳:也是啦
put 本機路徑
這樣子就丟上去囉
試試看:
ftp> open 203.64.26.1
Connected to 203.64.26.1.
220 camel.ck.tp.edu.tw FTP server (Version wu-2.5.0(1) Sun Oct 17 19:31:17
999) ready.
User (203.64.26.1:(none)): ckac
331 Password required for ckac.
Password:
230 User ckac logged in.
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 27
-rw-r--r-- 1 ckac club 20480 May 18 1998 000(2).gif
drwx------ 2 ckac club 512 Aug 24 11:12 Mail
-rw------- 1 ckac club 244 Feb 11 1998 ff
drwx------ 2 ckac club 512 Jul 28 01:28 mail
drwxr-xr-x 10 ckac club 1536 Jul 13 17:48 public_html
-rw-r--r-- 1 ckac club 1634 Jul 13 17:32 simple.htm
226 Transfer complete.
ftp: 339 bytes received in 0.00Seconds 339000.00Kbytes/sec.
ftp> get simple.htm
200 PORT command successful.
150 Opening ASCII mode data connection for simple.htm (1634 bytes).
226 Transfer complete.
ftp: 1679 bytes received in 0.93Seconds 1.81Kbytes/sec.
咦?抓到哪去了?
原來在c:\windows\ 裡面
因為我在c:\windows裡啟動ftp的
其他以此類推囉
注意:
本機路徑x磁碟機要這樣寫
X : \dir \dir2
通通要空格啦!!
其他的以後在說啦﹍﹍﹍﹍
我要去洗澡了