lftp如何列出文件|linux常用命令是什么

|

A. 请教linux命令lftp的相关问题(有图)

lftp? 这个不是交互式登录的用户啊~~呵呵lftp主要是用于f服务文件共享,登录下载的

B. Linux中lftp命令

ncftp 工具的使用ftp 全名为 File Transfer Protocol(档案传输协定),File Transfer Protocol 主要的功用是在 TCP/IP 网路上传送档案,常见的 ftp 工具有 ,ftp gftp lftp ncftp mc proz wget 等。档案传输在系统管理及运用上十分常见,请务必学会其中一种,以下以 ncftp 示范。##########################################################################行前教育ncftp 的使用方法与 command line 下的 Bash 用法相近,以下是常用指令:cd 切换目录mkdir 建立目录rmdir 砍掉空目录del 砍掉档案get 取回档案put 将档案放上去##########################################################################使用 ncftp 登入需帐号密码的 ftp server 语法为 ncftp -u USERNAME IP-address or语法为 ncftp -u USERNAME Hostname##########################################################################[email protected]:~$ ncftp -u lloyd 127.0.0.1NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).Connecting to 127.0.0.1… alver.coventive.com FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.Logging in… Password requested by 127.0.0.1 for user "lloyd". Password required for lloyd.Password: ## 输入密码 ## Linux alver 2.4.18 #22 周六 8月 3 10:58:28 CST 2002 i686 unknown Most of the programs included with the Debian GNU/Linux system are freely redistributable; the exact distribution terms for each program are described in the indivial files in /usr/share/doc/*/right Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.User lloyd logged in.Logged in to 127.0.0.1. ncftp /home/lloyd > cd DOC/ # 切换目录到 DOCncftp /home/lloyd/DOC > ls # 列出该目录下的档案与目录123/ LLOYD/ tech-report.ps VCD5_SGML/ minigateway/ user_manual.pdf XRoadTerm/i18n/ radius/ user_manual.ps XRoadTerm.tar.gzncftp /home/lloyd/DOC > help # 线上求助Commands may be abbreviated. 'help showall' shows hidden and unsupported commands. 'help <command>' gives a brief description of <command>.ascii cat help lpage open quote site bgget cd jobs lpwd page rename type bgput chmod lcd lrename pdir rhelp umask bgstart close lchmod lrm pls rm version binary debug lls lrmdir put rmdir bookmark dir lmkdir ls pwd set bookmarks get lookup mkdir quit show ncftp /home/lloyd/DOC > get XRoadTerm.tar.gz # 以 get 取回 XRoadTerm.tar.gz 档案XRoadTerm.tar.gz: 20.50 kB 563.41 kB/s ncftp /home/lloyd/DOC > quit # 离开You have not saved a bookmark for this site.Would you like to save a bookmark to: ftp://lloyd:[email protected]/DOC/Save? (yes/no) no # 要储存帐号密码当成 bookmark 使用吗? # 建议回答 no Not saved. (If you don't want to be asked this, "set confirm-close no")[email protected]:~$ ls -l XRoadTerm.tar.gz # 回到 shell 下,查看档案是否抓回来了 -rw-r–r– 1 lloyd lloyd 20993 6月 24 14:19 XRoadTerm.tar.gz[email protected]:~$ ##########################################################################使用 ncftp 登入提供 anonymous 的 ftp server (公众使用无须帐号密码的 ftp server )语法为 ncftp P-address or语法为 ncftp Hostname以下以中山 ftp server 为例:##########################################################################[email protected]:~$ ncftp ftp.nsysu.e.tw # 除了这里不同外其余用法相同NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).Connecting to 140.117.11.7… ==================================================================== 欢迎光临档案伺服器. Welcome to National Sun Yat-Sen University FTP Server (ftp.nsysu.e.tw). 右列网址提供本站档案搜寻引擎 File Search Engine on the URL 目前 FTP 部份有 289 人正在线上,最高限制 5000 人. There are currently 289 users out of 5000 possible.====================================================================Only anonymous FTP is allowed here. Please login as 'ftp'.Logging in… ======================================================================== !!!! Important Function !!!! (重要功能介绍) o 'cd key*word' or 'cd prefix*' or 'cd *suffix' provided (case-insentive). (例:cd freebsd 可以打成 cd fr 或 cd *sd 或 cd f*e*d 都通用,大小写都行) ======================================================================== 请多多利用 <A HREF=""></A> 可以使用方便的档案搜寻引擎喔!!!!!!!!!!!!!!!!! ======================================================================== ADM.Email: [email protected]Anonymous user (202.145.53.89) logged inUnknown command Logged in to ftp.nsysu.e.tw. ncftp /pub > cd Windowsncftp /pub/Windows > ls Collection/ [email protected] [email protected] WindowsNT/Demo/ MsDownload/ Simtelnet/ Winsock-l/ncftp /pub/Windows > cd Collection/ncftp /pub/Windows/Collection > lsCDR-Soft/ Image/ MultiMedia/ Sound/Driver/ LIB/ Network/ WWW/ncftp /pub/Windows/Collection > quitYou have not saved a bookmark for this site.Would you like to save a bookmark to: ftp://ftp.nsysu.e.tw/Windows/Collection/Save? (yes/no) noNot saved. (If you don't want to be asked this, "set confirm-close no")[email protected]:~$ 请参考,希望能帮到你。

C. 关于 liunx shell脚本 lftp工具

语句是在SSH工具中实现的,FTP工具稚嫩上传或者下载文件。

D. 请问lftp可以断点续传吗,用什么参数

/etc/lftp.conf添加这一行set xfer:clobber on就可以了(只读文件,需要root权限修改)还有一小点问题,当你去续传时,有时会发现403 forbidden,那基本上是因为服务器防止盗链导致的,每一次的下载链接都经过加密,所以你断开下载之后,上一次的下载链接已经不能用了。所以一般需要同意其协议或者要登录才能下载的文件一般都不能断点续传了,这个时候还是一次性下载完吧,不然功亏一篑了

E. linux常用命令是什么

压缩与备份: bzip2/bunzip2 .bz2文件的压缩/解压缩程序cpio 备份文件mp 备份文件系统gzip/gunzip .gz文件的压缩/解压缩程序gzexe 压缩可执行文件restore 还原由倾倒(Dump)操作所备份下来的文件或整个文件系统(一个分区)tar 将若干文件存档或读取存档文件unarj 解压缩.arj文件zip/unzip 压缩/解压缩 zip文件zipinfo 列出zip压缩文件的详细信息磁盘操作: cd/pwd 切换目录/显示当前工作目录df 显示磁盘的相关信息 显示目录或文件的大小e2fsck 检查ext2/ext3文件系统的正确性fdisk 对硬盘进行分区 fsck 检查文件系统并尝试修复错误losetup 设置循环设备ls 列出目录内容mkdir 创建目录mformat 对MS-DOS文件系统的磁盘进行格式化mkbootdisk 建立目前系统的启动盘mke2fs 建立ext2文件系统mkisofs 制作iso光盘映像文件mount/umount 加载文件系统/卸载文件系统quota 显示磁盘已使用的空间与限制sync 将内存缓冲区内的数据写入磁盘tree 以树状图列出目录的内容系统操作: alias 设置指令的别名chkconfig 检查,设置系统的各种服务clock 调整 RTC 时间date 显示或设置系统时间与日期dmesg 显示开机信息eval 重新运算求出参数的内容exit 退出目前的shellexport 设置或显示环境变量finger 查找并显示用户信息free 显示内存状态hostid 显示主机标识hostname 显示主机名id 显示用户标识kill 删除执行中的程序或工作last 列出目前与过去登入系统的用户相关信息logout 退出系统lsmod 显示已载入系统的模块modprobe 自动处理可载入模块passwd 设置用户密码ps process status 报告程序状况reboot 重启计算机rhwo 查看系统用户rlogin 远程登入rpm 管理Linux各项套件的程序shutdown 关机 su switch user 变更用户身份top 显示,管理执行中的程序uname 显示系统信息useradd/userdel 添加用户 / 删除用户userinfo 图形界面的修改工具usermod 修改用户属性,包括用户的shell类型,用户组等,甚至还能改登录名w 显示目前注册的用户及用户正运行的命令whereis 确定一个命令的二进制执行码,源码及帮助所在的位置who 列出正在使用系统的用户whois 查找并显示用户信息网络通信: arp 网地址的显示及控制ftp 文件传输lftp 文件传输mail 发送/接收电子邮件mesg 允许或拒绝其他用户向自己所用的终端发送信息mutt E-mail管理程序ncftp 文件传输netstat 显示网络连接、路由表和网络接口信息pine 收发电子邮件,浏览新闻组ping 向网络上的主机发送 icmp echo request 包ssh 安全模式下的远程登录telnet 远程登录talk 与另一用户对话traceroute 显示到达某一主机所经由的路径及所使用的时间wget 从网络上自动下载文件write 向其他用户的终端写信息

F. LFTP是什么意思

ncftp 工具的使用ftp 全名为 File Transfer Protocol(档案传输协定),File Transfer Protocol 主要的功用是在 TCP/IP 网路上传送档案,常见的 ftp 工具有 ,ftp gftp lftp ncftp mc proz wget 等。档案传输在系统管理及运用上十分常见,请务必学会其中一种,以下以 ncftp 示范。 ##########################################################################行前教育ncftp 的使用方法与 command line 下的 Bash 用法相近,以下是常用指令:cd 切换目录mkdir 建立目录rmdir 砍掉空目录del 砍掉档案get 取回档案put 将档案放上去##########################################################################使用 ncftp 登入需帐号密码的 ftp server 语法为 ncftp -u USERNAME IP-address or语法为 ncftp -u USERNAME Hostname##########################################################################[email protected]:~$ ncftp -u lloyd 127.0.0.1NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).Connecting to 127.0.0.1… alver.coventive.com FTP server (Version 6.4/OpenBSD/Linux-ftpd-0.17) ready.Logging in… Password requested by 127.0.0.1 for user "lloyd". Password required for lloyd. Password: ## 输入密码 ## Linux alver 2.4.18 #22 周六 8月 3 10:58:28 CST 2002 i686 unknown Most of the programs included with the Debian GNU/Linux system are freely redistributable; the exact distribution terms for each program are described in the indivial files in /usr/share/doc/*/right Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.User lloyd logged in.Logged in to 127.0.0.1. ncftp /home/lloyd > cd DOC/ # 切换目录到 DOCncftp /home/lloyd/DOC > ls # 列出该目录下的档案与目录123/ LLOYD/ tech-report.ps VCD5_SGML/ minigateway/ user_manual.pdf XRoadTerm/i18n/ radius/ user_manual.ps XRoadTerm.tar.gzncftp /home/lloyd/DOC > help # 线上求助Commands may be abbreviated. 'help showall' shows hidden and unsupported commands. 'help <command>' gives a brief description of <command>. ascii cat help lpage open quote site bgget cd jobs lpwd page rename type bgput chmod lcd lrename pdir rhelp umask bgstart close lchmod lrm pls rm version binary debug lls lrmdir put rmdir bookmark dir lmkdir ls pwd set bookmarks get lookup mkdir quit show ncftp /home/lloyd/DOC > get XRoadTerm.tar.gz # 以 get 取回 XRoadTerm.tar.gz 档案XRoadTerm.tar.gz: 20.50 kB 563.41 kB/s ncftp /home/lloyd/DOC > quit # 离开You have not saved a bookmark for this site. Would you like to save a bookmark to: ftp://lloyd:[email protected]/DOC/ Save? (yes/no) no # 要储存帐号密码当成 bookmark 使用吗? # 建议回答 no Not saved. (If you don't want to be asked this, "set confirm-close no")[email protected]:~$ ls -l XRoadTerm.tar.gz # 回到 shell 下,查看档案是否抓回来了 -rw-r–r– 1 lloyd lloyd 20993 6月 24 14:19 XRoadTerm.tar.gz[email protected]:~$ ##########################################################################使用 ncftp 登入提供 anonymous 的 ftp server (公众使用无须帐号密码的 ftp server )语法为 ncftp P-address or语法为 ncftp Hostname以下以中山 ftp server 为例:##########################################################################[email protected]:~$ ncftp ftp.nsysu.e.tw # 除了这里不同外其余用法相同NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason ([email protected]).Connecting to 140.117.11.7… ==================================================================== 欢迎光临档案伺服器. Welcome to National Sun Yat-Sen University FTP Server (ftp.nsysu.e.tw). 右列网址提供本站档案搜寻引擎 File Search Engine on the URL 目前 FTP 部份有 289 人正在线上,最高限制 5000 人. There are currently 289 users out of 5000 possible.====================================================================Only anonymous FTP is allowed here. Please login as 'ftp'.Logging in… ======================================================================== !!!! Important Function !!!! (重要功能介绍) o 'cd key*word' or 'cd prefix*' or 'cd *suffix' provided (case-insentive). (例:cd freebsd 可以打成 cd fr 或 cd *sd 或 cd f*e*d 都通用,大小写都行) ======================================================================== 请多多利用 <A HREF=""></A> 可以使用方便的档案搜寻引擎喔!!!!!!!!!!!!!!!!! ======================================================================== ADM.Email: [email protected] Anonymous user (202.145.53.89) logged inUnknown command Logged in to ftp.nsysu.e.tw. ncftp /pub > cd Windowsncftp /pub/Windows > ls Collection/ [email protected] [email protected] WindowsNT/Demo/ MsDownload/ Simtelnet/ Winsock-l/ncftp /pub/Windows > cd Collection/ncftp /pub/Windows/Collection > lsCDR-Soft/ Image/ MultiMedia/ Sound/Driver/ LIB/ Network/ WWW/ncftp /pub/Windows/Collection > quitYou have not saved a bookmark for this site. Would you like to save a bookmark to: ftp://ftp.nsysu.e.tw/Windows/Collection/ Save? (yes/no) noNot saved. (If you don't want to be asked this, "set confirm-close no")[email protected]:~$

G. 增量备份 如何使用lftp进行增量网站备份 lftp命令实例介绍

LFTP简单命令lftp ftpsite如果是需要密码的话,可以使用以下命令连接。lftp -u username,password ftpsitemirror命令为了同步本地的一个文件夹到远程文件夹,lftp增加了mirror命令。不用设置其它的选项,你只需要指定本地目录和远程目录即可。用法:mirror -R 本地目录 远程目录mirror命令提供了几个实用的选项来控制同步进程。例如使用–delete选项,mirror命令会删除远程备份服务器中存在的文件而本地服务器不存在的文件,当使用–only-newer选项时lftp只上传新的文件。另一个选项是–exclude,它允许你指定不需要同步的文件夹。如果你想监视同步的进程,可以使用–verbose选项。增量备份同步命令每次同步时都要先执行lftp,再执行mirror命令是一件很烦人的事,幸运的事,lftp软件支持把两条命令合成一条,你只需要添加-e选项就可以告诉lftp执行连接服务器后接着运行指定命令。如下:lftp -u username,password -e "mirror -R –delete –only-newer –verbose 本地目录 远程目录" ftpsite你也可以把命令存在一个文件里面,只需要添加-f选项。lftp -f /home/user/ftpscript.txtLFTP定时运行lftp at 00:00 -u username,password -e "mirror -R –delete –only-newer –verbose 本地目录 远程目录" ftpsite &注意&符号,它表示让命令在后台运行而不需要一直开着终端。

H. linux中用lftp连接上后用ls查看总显示连接延时

cp/etc/lftp.conf~/.config/lftp

这样就可以正常使用了。

我用root用户使用lftp一切正常,用普通用户时出现你说的情况,一通折腾后发现~/.config目录下有个lftp目录,但是里面没有lftp的配置文件,于是把/etc下的lftp.conf拷贝到~/.config/lftp下,然后用普通用户使用lftp,就一切正常了。

I. linux lftp mirror命令的问题

如果是存在相同文件名的文件.他会判断文件的日期.会覆盖为最新的文件.如果没有修改过,就不会覆盖.这个是做镜像用的.就是保持ftp上的文件和你本地的文件是完全一样的.


赞 (0)