![]() ![]() While you can use the mirror option -m directly, it will be a good idea add: By downloading an entire website I mean the entire public facing website structure. You can mirror an entire website with wget. Suppose you are browsing an FTP server and you need to download an entire directory, you can use the recursive option wget -r Download an entire website using wget wget -O filename URL Download a folder using wget You can use the -O (uppercase O) option to provide the output filename while downloading. It will be a good idea to provide custom name to downloaded file. You’ll notice that a webpage is almost always saved as index.html with wget. To download multiple files, you’ll have to save their URLs in a text file and provide that text file as input to wget like this: wget -i download_files.txt Download files with a different name using wget It will download the file with its original name in the directory you are in. You just need to provide the URL of the file or webpage. On Ubuntu and Debian based distribution, you can use the apt package manager command: sudo apt install wget Download a file or webpage using wget ![]() It is also available in the repository of most distributions and you can easily install it using your distribution’s package manager. Most Linux distributions come with wget preinstalled. Let’s see how to use wget to download file from terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |