cadaver-Unix命令行WebDAV客户端。 cadaver支持文件的上载、下载、屏幕显示、命名空间操作(移动和复制)、集合的创建和删除以及锁定操作。 这些操作类似于标准BSD ftp(1) 1客户端和Samba项目的smbclient(1) 1。 熟悉这些工具的用户应该熟悉cadaver。 cadaver支持自动登录到需要使用. netrc文件进行身份验证的服务器。 与ftp类似,请参见下面的. netrc文件部分。
原文:
同步
cadaver [-Trp [-rfile ] [-phost [ : port ] ] [-v ] [-h ] http://hostname [ : port ]/path options
-t,--tolerantallowcd/openintonon-webdavenabledcollection; useiftheserverorproxyserverhaswebdavcomplianceproblems.--r, --rcfile=fileusethisrcfileratherthanthedefaultof~~/. CAD ault-proxy=host [ : port ] connectusingtheproxyhost ' host - versiondisplayversiion-helpdisplaythishelpmessageandexit.the.net rcfile
the file~~.netrcmaybeusedtoautomaticallylogintoaserverrequiringauthentication.the following tokens (separatedbyspaces, tabs or newlines ) maybe used : machinehostidentifyaremotemachinehostwhichiscomparedwithehostnamegivenonthecommandlineorasanargumenttotheop en ensuptotheendoffileorthenextmachineordefaulttokenareassociatedwithisentry。
defaultthisisequivalenttothemachinetokenbutmatchesanyhostname.onlyonedefaulttokenmaybeusedanditmustbeafterallmachinetokens。
loginusernamespecifiestheusernametousewhenloggingintotheremotemachine。
passwordstringpasswdstringspecifiesthepasswordtousewhenloggingintotheremotemachine .意译:
选项:
-t,--tolerant允许cd/ope进入未启用WebDAV的集合; 如果服务器或代理服务器存在WebDAV合规性问题,请使用。 -r,--rcfile=file使用此rcfile代理主机“host”和可选代理主机(而不是默认的/.cadaverrc-p,--proxy=host[:port] ) -V,- -版本是关于信息--h,--help显示帮助信息. netrc文件
~/.netrc文件可用于自动登录到需要验证的服务器。机器主机可以使用以下由空格、制表符和换行符分隔的标记来标识要与命令行中指定的主机名进行比较或用作打开命令参数的远程机器主机: 到文件末尾或下一台计算机或默认令牌的后续令牌与此条目相关联。 默认设置与机器令牌相同,但与主机名匹配。 默认令牌只能使用一个,并且必须在所有机器令牌之后。 登录用户名
指定登录远程计算机时使用的用户名和密码。 指定登录远程计算机时使用的密码。