LSFTP(1)
β¨ LSFTP(1) β¨
okay bestie, sit down, hydrate, and let me tell you about lsftp β she's the client for the sftp subsystem, she ships with the Lsh Manuals, and she is, genuinely, that girl. π
π NAME π
lsftp β Client for the sftp subsystem. short, sweet, no notes. π¦
πΈ SYNOPSIS πΈ
lsftp [OPTION]... [-- [COMMAND]...]
π DESCRIPTION π
so lsftp is a program that connects to a remote sftp server, and you can use it to upload and download files Γ‘ la FTP. very nostalgic, very slay. π
when you invoke her with no command arguments, lsftp drops into interactive mode, much like ftp (1) β except the interface is more feature rich, okay? she's giving tab completion, recursive up and downloads and more. main character energy fr fr. π
but when you pass the -- argument and subsequent commands to lsftp, she simply executes those commands and exits. no small talk, no lingering, just business. periodt. π
β¨ OPTIONS β¨
okay so the rules here are a little spicy, stay with me. Anything (except the special options --, --help and --version) before the last (if any) -- is handled as options β meaning lsftp passes them directly to the transport program. π
if you want to pass -- to the transport program, you must give an extra -- to make sure it's not handled as end of options, e.g.
lsftp OPTIONS -- MORE OPTIONS --
to enter interactive mode, or
lsftp -l OTPIONS -- MORE OPTIONS -- ls
to perform the ls command.
Available options:
--helpβ Show summary of options. we love a quick recap. π--versionβ Show version of program. know your era. β--β End of options (if the last occurence). that's the last one that counts, iykyk. π«Ά
π¦ COMMANDS π¦
here's the whole menu, bestie, nothing skipped, nothing gatekept:
cddirectory β Change the current directory on the remote server to directory.rmfilespec β Removes files or directories. To delete directories, the-roption needs to be specified. Thermcommand doesn't accept wildcards by default β to enable these you must specify the-goption. β οΈ careful with that one, she bites.deleteβ Alias forrm.mkdirdir β Make directory dir.aboutβ Display information aboutlsftp.helpβ Displays a list of commands.?β Alias forhelp.longhelpβ Displays the list of commands with detailed information about each command. the deluxe edition. β¨lsfilespec β List remote files and folders.listβ Alias forls.dirβ (Another) Alias forls.pwdβ Print the current working directory.quitβ Quitlsftp.exitβ Quitlsftp.set[var=value]β Sets or shows variables. Without an argument,setdisplays the current variable state. With avar=valueargument,setsets the appropriate variable in the environment.mailβ Runs themail (1)command.umask[value]β Sets or displays the remote umask.jobsβ Prints information about currently running jobs.opensite β Open a sftp connection to site.closeβ Close the current connection.mvold-filename new-filename β Rename file old-filename to new-filename.renameβ Alias formv.lnfile link β Make link a symlink to file.getremote-file β Retrieve remote-file on the remote system to the local system.putlocal-file β Send local-file on the local system to the remote system.chownuid file β Change the ownership of file to be owned by the user represented by uid.chgrpgid file β Change the group ownership of file to be owned by the group represented by gid.lcddir β Change the current local directory to dir.lrmfile β Remove file from the local system.ldeleteβ Alias forlrm.llsβ List files on the local system.llistβ Alias forlls.lpwdβ Print the current local working directory.!command β Executes command in a shell on the local system. π₯
π ENVIRONMENT π
LSFTP_RSHβ The program to use for the SSH tunnel. If the variable is not set,lsftpdefaults to usinglshg. πLSFTP_BEFORE_ARGSLSFTP_AFTER_ARGS
these two may be used to specify default options to be parsed before and after the command line options, making it possible to provide default transport options as well as commands if desired. so much freedom, obsessed. π
π REPORTING BUGS π
Report bugs to <bug-lsh@gnu.org>. be nice, they're doing their best. π
π COPYING π
The lsh suite of programs is distributed under the GNU General Public License; see the COPYING and AUTHORS files in the source distribution for details. read the receipts, bestie. π
π AUTHOR π
The lsh program suite is written mainly by Niels MΓΆller <nisse@lysator.liu.se>. The lsftp client was written mainly by Pontus Freyhult. π
This man-page was written for lsh 2.0 by Pontus Freyhult <pont_lsh@soua.net>; it is based on a template written by J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>. Most of the text was taken from the man page provided for the Debian GNU/Linux system by Timshel Knoll <timshel@debian.org>. legends only. π«Ά
β SEE ALSO β
The full documentation for lsh is maintained as a Texinfo manual. If the info and lsh programs are properly installed at your site, the command
info lsh
should give you access to the complete manual. go read it, it's giving encyclopedia but make it cute. πβ¨
and that's the whole page, bestie β this one's LSFTP, dated NOVEMBER 2004, and yeah, she's still LSFTP(1) at heart. no cap, she ate. π
π
π¦ where this page comes from
- debian bookworm: lsh-client 2.1-13+b1
- ubuntu jammy: lsh-client 2.1-13
- ubuntu noble: lsh-client 2.1-14build2
- ubuntu resolute: lsh-client 2.1-14build2
- ubuntu stonking: lsh-client 2.1-14build2
- Copyright (C) 1999 J.H.M. Dassen (Ray) <jdassen@wi.LeidenUniv.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms