Close an ftp connection to a remote system by using the bye command.
ftp> bye 221 Goodbye. earth%
A good-bye message appears, followed by your usual shell prompt.