Guest User

Untitled

a guest
Jan 23rd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. curl ftp://ftp.com/mp3/* --user login:password -o /myfolder/*
  2.  
  3. curl ftp://ftp.com/mp3/mymusic.zip --user login:password -o mymusic.zip
  4.  
  5. scp -r login@myserverip:/remote/directory/path/ mylocaldirectory
  6.  
  7. mkdir ~/Desktop/image-dump-myserver
  8. ftp ftp://myuser@myserver.com
  9. # enter password
  10.  
  11. # You're now in the ftp console (where the world is still okay)
  12.  
  13. # Set the local folder
  14. lcd ~/Desktop/image-dump-myserver
  15.  
  16. # cd into the desired folder (`ls`, `pwd` etc. all work here)
  17. cd /httpdocs/images
  18.  
  19. # Toggle the interactive mode
  20. prompt
  21.  
  22. # Download the desired files (all the images in my case)
  23. mget *.jpg
  24.  
  25. local: image1433509292_1582.jpg remote: image1433509292_1582.jpg
  26. 229 Entering Extended Passive Mode (|||50001|)
  27. 150 Opening BINARY mode data connection for image1433509292_1582.jpg (63626 bytes)
  28. 100% |***********************************| 63626 1.51 MiB/s 00:00 ETA
  29. 226 Transfer complete
  30. 63626 bytes received in 00:00 (0.98 MiB/s)
  31.  
  32. local: image1427279963_0841.jpg remote: image1427279963_0841.jpg
  33. 229 Entering Extended Passive Mode (|||50053|)
  34. 150 Opening BINARY mode data connection for image1427279963_0841.jpg (67194 bytes)
  35. 100% |***********************************| 67194 1.64 MiB/s 00:00 ETA
  36. 226 Transfer complete
  37. 67194 bytes received in 00:00 (1.04 MiB/s)
  38.  
  39. local: image1439798493_1783.jpg remote: image1439798493_1783.jpg
  40. 229 Entering Extended Passive Mode (|||50357|)
  41. 150 Opening BINARY mode data connection for image1439798493_1783.jpg (48876 bytes)
  42. 100% |***********************************| 48876 1.80 MiB/s 00:00 ETA
  43. 226 Transfer complete
  44. 48876 bytes received in 00:00 (996.81 KiB/s)
  45. ....
  46.  
  47. ftp
  48.  
  49. ftp>
  50.  
  51. ftp> open xx.xxx.xxx.xx
  52.  
  53. Name:(your ftp server): your_username
  54.  
  55. Password: your_password
  56.  
  57. ftp> get filename
Add Comment
Please, Sign In to add comment