Solve the lftp Chinese garbled problem-Linux Enterprise Application-Linux server application information. The following is a detailed description. Gb encoding is still widely used in Windows. Most ftp servers use gb encoding for file name transfer for compatibility purposes. In linux systems where utf8 is locale, lftp cannot correctly identify gb encoding, so it is garbled. Therefore, you only need to infor
Vim ~ /. Lftp/RC
Set ftp: charset "GBK"
Set file: charset "UTF-8"
Alias CN "set ftp: charset GBK; set file: charset UTF-8"
Alias utf8 "set ftp: charset UTF-8; set file: charset UTF-8"
"By default, files in simplified Chinese encoding are supported. The two aliases are switched back and forth between the Chinese and utf8 settings.
Use bookmarks
Start lftp first, and then enter bookmark
Lftp is a powerful download tool that supports protocol access to files: FTP, SFTP,FTPS, HTTP, https, hftp, fish. (where FTPs and HTTPS need to include the OpenSSL library at compile time). Llftp interface very want a shell: has the command complement, the history record, allows the multiple backstage task execution and so on the function, uses very conveniently. It also has features such as bookmarks, queues, mirroring, breakpoint continuation, and m
"Problem phenomenon": After installing the LFTP through RPM, the execution lftp huangmr:huangmr@192.168.107.132 cannot connect (lftp huangmr@192.168.107.132:~> ls
' ls ' at 0 [delaying before reconnect:175] or has been in the connecting ... ), via SFTP huangmr@192.168.107.132 but can be connected. "Problem reason": 192.168.107.132 FTP Service exception (should no
Preparations: lftp must be installed in VPS in advance. lftp is powerful. CentOS directly executes: yuminstalllftp and Debian execute: apt-getinstalllftp. You need to create the/home/backup/directory on VPS and the backup directory on FTP. If there are not many VPS databases, you can use Godaddy free space (10 GB space, 300
Preparations:
Lftp needs to be installe
In linux, when I first discovered LFTP, the advanced LFTP mirror application noticed its powerful mirror function. Because it can pass in parameters to the mirror command to control the synchronization behavior: reverse can be uploaded to FTP, or-R delete can be used: If no file exists in the remote directory, delete the file. Only-newer: only download new text. When I just found
from the lftp source code. I also read the source code to see the differences between the two functions.
Code: select all
/* * replace string mem by string s, len is the length of string s * NOTE: use memmove while mem s has overlaps and use * memcpy while they have no overlaps */char *xstrset(char *mem,const char *s,size_t len){ if(!s) { xfree(mem); return mem=0; }#ifdef MEM_DEBUG printf("xstrset \"%.*s\"\n",len,s);#endif if(s==mem)
LFTP commandThe LFTP command is an excellent file client program that supports a variety of file transfer protocols, such as FTP, SETP, HTTP, and FTPs.LFTP Support tab Auto-completion, do not remember the command to double-click the TAB key, you can see the possible options.GrammarLFTP (option) (parameter)Options-F: Specifies the script file to be executed by the lftp
The lab bought a new File Server for backup. A student's hard disk in the lab broke down a few days ago, so I also set up the automatic backup function.First of all, we need to see what type of File Server is. In fact, if File Server is built on Ubuntu Linux (with ssh), it can be directly implemented using rsync.However, if the File Server is a common FTP, LFTP is a good choice. There are some examples of LFTP
Tags: ref RAM validation conf lftp Click Username Col fileLFTP Connect FTP In the script can beLftp-c "open Username:[email protected]:p ort; ls/friso/20180822/click/mobile/success | Wc-l "Lftp Usename:[email protected]:p ort-e "ls/friso/20180823; ByeLftp Connect sftp and specify private keyLftp-e ' Set sftp:auto-confirm yes;set sftp:connect-program ssh-a-x-i @ Host;mirror-er files:' If password does not fi
1.LFTP Login:Lftp Ftp://user:[email protected]:p ORTLftp User:[email protected]:p ORTLftp site-p port-u User,passwordLftp Site:port-u User,password2. Modify the bookmark file to avoid logging in with a clear text password:~/.lftp/bookmarksThe format is as follows:VI BookmarksAlias ftp://username: password @ server: 21Lftp aliases3. Common commands:LsDisplays a list of remote files (!ls displays a list of lo
Vim ~/.LFTP/RC
Set Ftp:charset "GBK"
Set File:charset "UTF-8"
Alias cn "Set Ftp:charset GBK; Set File:charset UTF-8 "
Alias UTF8 "set Ftp:charset UTF-8; Set File:charset UTF-8 "
"Default support file names for Simplified Chinese encoding; two aliases switch back and forth between Chinese and UTF8 settings.
How to use bookmarks
Start lftp First, enter bookmark edit after startup
VI is
A repeated instruction is a set of instructions for operating the data buffer. The data buffer is usually a byte array, which can be a single word or double word. (Intel 'calls these commands string commands) The most common data buffer operation commands are movsx, CMPs, stosx, and scasx. X can be B or W, and D represents byte, word, and dual-word, respectively
administrator-M: Specifies that the group member and-a use almost-R: Remove password-r: Restrict user login group, only members in group can join the group with NEWGRPGpasswdgroupname : If the system has a Peter account, the account itself is not a member of the GroupName group, use NEWGRP need to enter a passwordLet the user temporarily join the group, and then the file group created by Peter will be groupname. So this way you can temporarily let Peter build the textUse other groups instead of
compressed file-k keep compressed fileBunzip2 compressed file-k keep compressed file(4) tar czvf xxx.tar.gz * Create CompressionExtract tar xzvf xxx.tar.gz(5) rpm installation software:Rpm-ivh lftp-4.xxxxxx.rpm installation packageRpm-e lftp uninstall the rpm package (only the package name is used without the version number)Run rpm-ql samba to view the path of the packages released after the samba package
string: s/test/test2/g Global replacement/can also be replaced by %
/Search for strings
Common commands for network communication
Arp: network address display and Control
Ftp: File Transfer
Lftp: File Transfer
Mail: Send/receive emails
Mesg: Allows or denies other users from sending messages to their terminals.
MuttE-mail Management Program
Ncftp: File Transfer
Netstat: displays network connection. Route t
1. Getting Help information: ManMan ls: Get help with ls commandMan services: View the Help information for profile services, directly add the file name, no absolute path requiredHelp: 1 indicates help for the command, 5 indicates help for the configuration fileMans 1 passwd2. View the command description: Whatis3. Production See profile information: Apropos profile Name3. Get help with Shell built-in commands:Help umask: View the umask command's helpful information4. Options for viewing
Statements in assembly language programs can be composed of commands, pseudo commands, and macro commands.
Command: Each Command corresponds to a CPU operation.
A pseudo-command is also called a pseudo-operation. It is an operation processed by the assembler during the compilation of the source program, they can complete functions such as processor selection, def
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.