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:

  • cd directory β€” Change the current directory on the remote server to directory.
  • rm filespec β€” Removes files or directories. To delete directories, the -r option needs to be specified. The rm command doesn't accept wildcards by default β€” to enable these you must specify the -g option. ⚠️ careful with that one, she bites.
  • delete β€” Alias for rm.
  • mkdir dir β€” Make directory dir.
  • about β€” Display information about lsftp.
  • help β€” Displays a list of commands.
  • ? β€” Alias for help.
  • longhelp β€” Displays the list of commands with detailed information about each command. the deluxe edition. ✨
  • ls filespec β€” List remote files and folders.
  • list β€” Alias for ls.
  • dir β€” (Another) Alias for ls.
  • pwd β€” Print the current working directory.
  • quit β€” Quit lsftp.
  • exit β€” Quit lsftp.
  • set [var=value] β€” Sets or shows variables. Without an argument, set displays the current variable state. With a var=value argument, set sets the appropriate variable in the environment.
  • mail β€” Runs the mail (1) command.
  • umask [value] β€” Sets or displays the remote umask.
  • jobs β€” Prints information about currently running jobs.
  • open site β€” Open a sftp connection to site.
  • close β€” Close the current connection.
  • mv old-filename new-filename β€” Rename file old-filename to new-filename.
  • rename β€” Alias for mv.
  • ln file link β€” Make link a symlink to file.
  • get remote-file β€” Retrieve remote-file on the remote system to the local system.
  • put local-file β€” Send local-file on the local system to the remote system.
  • chown uid file β€” Change the ownership of file to be owned by the user represented by uid.
  • chgrp gid file β€” Change the group ownership of file to be owned by the group represented by gid.
  • lcd dir β€” Change the current local directory to dir.
  • lrm file β€” Remove file from the local system.
  • ldelete β€” Alias for lrm.
  • lls β€” List files on the local system.
  • llist β€” Alias for lls.
  • 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, lsftp defaults to using lshg. πŸš‡
  • LSFTP_BEFORE_ARGS
  • LSFTP_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