The following guide explains how to use an FTP client on CentOS Stream Client.
Install lftp, a sophisticated command-line FTP client:
[root@dlp ~]# dnf -y install lftp
Login as a common user to access the FTP server:
[redhat@dlp ~]$ lftp -u cent www.emc.world
Password: # Enter login user password
lftp cent@www.emc.world:~>
Common FTP Commands:
lftp cent@www.emc.world:~> pwd
lftp cent@www.emc.world:~> !pwd
lftp cent@www.emc.world:~> ls
lftp cent@www.emc.world:~> !ls -l
lftp cent@www.emc.world:~> cd public_html
lftp cent@www.emc.world:~> put redhat.txt
lftp cent@www.emc.world:~> mput test.txt test2.txt
get/mget:lftp cent@www.emc.world:~> set xfer:clobber on
lftp cent@www.emc.world:~> get test.py
lftp cent@www.emc.world:~> mget test.txt test2.txt
lftp cent@www.emc.world:~> mkdir testdir
lftp cent@www.emc.world:~> rmdir testdir
lftp cent@www.emc.world:~> rm test2.txt
lftp cent@www.emc.world:~> mrm redhat.txt test.txt
!:lftp cent@www.emc.world:~> !cat /etc/passwd
lftp cent@www.emc.world:~> quit
This guide covers the installation and basic usage of lftp on CentOS, demonstrating various FTP operations. It's a flexible tool for managing files on an FTP server directly from the command line.