Sunday, May 5, 2024
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 60327  / 2 Years ago, sat, february 26, 2022, 1:30:58

I want to move/copy large size of files in my own system, and I want to use wget command with its -c switch to having a resumable transferring. The copy(cp) or move(mv) commands doesn't provide this option for me.



Is it possible to use wget to copy these files from one directory to another directory in my own system?


More From » command-line

 Answers
5

Yes, but you need a web server set up to serve the files you need to copy.



try something like this. On a terminal, start a simple web server:



cd /etc/
python -m SimpleHTTPServer


then open another terminal and do:



wget http://localhost:8000/passwd 


the passwd file will be downloaded to your current directory. You're in effect copying it from /etc/ to your home directory.



I'm not sure why you want to do this but yes, in principle, as you can see, it is possible.


[#22988] Sunday, February 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ameatoes

Total Points: 321
Total Questions: 106
Total Answers: 112

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
ameatoes questions
Tue, Aug 16, 22, 22:50, 2 Years ago
Fri, May 14, 21, 03:36, 3 Years ago
Sat, Oct 8, 22, 01:00, 2 Years ago
Fri, Feb 17, 23, 14:44, 1 Year ago
;