DOS下的FTP命令中返回上个目录的命令是什么?

在DOS模式下使用FTP,谁知道返回上个目录的命令是什么哇!
2024-11-14 01:14:32
推荐回答(4个)
回答1:

1楼回答得那么复杂喔...提问的人要是菜鸟怎么看得明白啊!
首先登陆FTP服务器,例如进入"web"文件夹的命令:
ftp>cd web
其中cd web就是进入web文件夹的命令.
如果要从"web"文件夹返回到上一个"root"目录的命令:
ftp>cd..
其中cd..就是返回上一目录
试试看吧...

回答2:

**********我测试的结果******
C:\>ftp 58.56.2.158
Connected to 58.56.2.158.
220 Microsoft FTP Service
User (58.56.2.158:(none)): weiwei
331 Password required for weiwei.
Password:
230 User weiwei logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
db
log
web
226 Transfer complete.
ftp: 14 bytes received in 0.00Seconds 14000.00Kbytes/sec.
ftp> cd web
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
admin
admin.php
attachment
blog.php
cate.php
cert
ck.php
comment.php
data
global.php
group.php
image
index.php
ipdata
job.php
lang
licence.txt
list.php
login.php
logo.gif
mod
notice.php
register.php
robots.txt
rss.php
search.php
template
upload.php
user
user_index.php
226 Transfer complete.
ftp: 299 bytes received in 0.06Seconds 4.75Kbytes/sec.
ftp> cd .. (返回上级目录)
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
db
log
web
226 Transfer complete.
ftp: 14 bytes received in 0.00Seconds 14000.00Kbytes/sec.
ftp>quit
221

C:\>

**********************

使用cd ..

回答3:

"cd.."不是每次都管用,至少我这里都没用。有时你可以用“cd”命令,回车一下,然后输入目录路径就可以了,比如你上一目录是“abc”,那么你输入“/abc”再回车就可以了。

回答4:

在dos下返回上一级目录都是用cd..