Get ftp folder with wget under linux system

 

wget -help can view the parameters that wget can add.

wget -nH -m --ftp-user=* --ftp-password=* ftp://10.27.0.2/test/

 

Change the user and password of ftp after *

--ftp-user= (enter ftp username)

--ftp-password=(enter ftp password)

 

If the execution is unsuccessful, there may be no wget command

Find and install the wget toolkit:

①Check whether wget is installed: rpm -qa |grep wget

②If it is not installed, find the rpm installation package of wget: ls |grep wget

③Install the wget toolkit: rpm -ivh wget-*.rpm

④Execute wget to see if there is this command



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326753724&siteId=291194637