ftp

BSD ftp Cheatsheet #

ftp is a command-line tool used to transfer files between systems using the File Transfer Protocol (FTP) on BSD systems.

Basic Commands #

Command/OptionExampleDescription
ftp hostftp ftp.example.comConnect to an FTP server
open hostopen ftp.example.comConnect to an FTP server
useruser username passwordLog in with username and password
lslsList files in the current directory
cdcd /path/to/dirChange remote directory
getget file.txtDownload a file from the server
putput file.txtUpload a file to the server
mgetmget *.txtDownload multiple files
mputmput *.txtUpload multiple files
deletedelete file.txtDelete a file on the server
mkdirmkdir newdirCreate a new directory on the server
rmdirrmdir olddirRemove a directory on the server
byebyeClose the connection and exit

Options #

Command/OptionExampleDescription
-nftp -nDisable auto-login to the server
-vftp -vEnable verbose mode for debugging

Examples #

Command/OptionExampleDescription
ftpftp ftp.example.comConnect to ftp.example.com
lslsList files in the current directory on the FTP server
put file.txtput file.txtUpload file.txt to the current remote directory

This cheatsheet covers essential ftp commands and options for BSD systems.

ftp

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.