Where Does lftp Store Config Files?
lftp rc lookup order with bookmarks, logs and history files.
Last updated
lftp reads system config then a cascade of user rc files. Classic dot names win over XDG fallbacks in practice. Bookmarks, transfer logs and history share a data folder.
The home var redirects the whole user side. A missing classic folder is what activates XDG at all. Match the live layout before scripting.
Where lftp stores this, by platform
~/.lftprc
System plus cascading user rc files with classic names first. Bookmarks, logs and history in the data folder. XDG only when classic absent. Home var redirects all.
~/.lftprc
Same cascade and data folder with POSIX paths under Homebrew installs.
Frequently asked questions
How do I back up lftp?
Copy the rc files plus the data folder with no session running. Bookmarks, logs and history travel in the folder. Restoring means putting everything back before launch.
XDG or classic paths?
XDG paths apply only when the classic folder and home var are absent. Most installs resolve the classic dot folder first. Check that dir before assuming XDG.
Notice an outdated path? Let us know.