⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ncftpls.1

📁 实现ftp协议客户端的源代码
💻 1
字号:
.TH ncftpls 1 "NcFTP Software" ncftpls.SH NAMEncftpls - Internet file transfer program for scripts.SH "SYNOPSIS".PP.B ncftpls.RI [ "options" ].I "ftp://url.style/host/path/name/".\"-------.SH "OPTIONS".\"-------.SSCommand line flags:.TP 8\-1Most basic format, one item per line..TP 8\-lLong list format..TP 8.RI "-x -" "XX"Additional.I lsflags to pass on to the server..TP 8.RI "-u " "XX"Use username.I XXinstead of anonymous..TP 8.RI "-p " "XX"Use password.I XXwith the username..TP 8.RI "-P " "XX"Use port number.I XXinstead of the default FTP service port (21)..TP 8.RI "-d " "XX"Use the file.I XXfor debug logging..TP 8.RI "-t " "XX"Timeout after.I XXseconds..TP 8-FUse passive (PASV) data connections..TP 8.RI "-r " "XX"Redial a maximum of .I XXtimes until connected to the remote FTP server..\"-------.SH "DESCRIPTION".\"-------.PPThepurpose of.I ncftplsis to do remote directory listings usingthe File Transfer Protocol without entering an interactive shell.This lets you write shell scripts or other unattendedprocesses that can do FTP..PPThe default behavior is to print the directory listing in columnizedformat (i.e. ls\ \-CF), but that is not very useful for scripting.This example uses the.B \-1flag, to print one file per line:.RS 4.br.sp$ ncftpls -1 ftp://ftp.ncftp.com/pub/ncftp/.RE.PPYou can also do a remote "ls\ \-l", by using "ncftpls\ \-l".If you want to try other flags, you have to use them with the.B \-xflag.For example, if you wanted to do a remote "ls\ \-lrt", you coulddo this:.RS 4.br.sp$ ncftpls -x "-lrt" ftp://ftp.ncftp.com/pub/ncftp/.RE.PPBy default the program tries to open the remote hostand login anonymously, but you can specify a usernameand password information like you can with.I ncftpgetor.IR ncftpput ".".\"-------.SH "DIAGNOSTICS".\"-------.PP.I ncftplsreturns the following exit values:.TP 80Success..TP 81Could not connect to remote host..TP 82Could not connect to remote host - timed out..TP 83Transfer failed..TP 84Transfer failed - timed out..TP 85Directory change failed..TP 86Directory change failed - timed out..TP 87Malformed URL..TP 88Usage error..TP 89Error in login configuration file..TP 810Library initialization failed..TP 811Session initialization failed..\"-------.SH "AUTHOR".\"-------.PPMike Gleason, NcFTP Software (http://www.ncftp.com)..\"-------.SH "SEE ALSO".\"-------.PP.IR ncftpput (1),.IR ncftpget(1),.IR ncftp (1),.IR ftp (1),.IR rcp (1),.IR tftp (1)..PP.IR "LibNcFTP" " (http://www.ncftp.com/libncftp/)."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -