Downloading files from the server
You will often run into a situation where you need to view the contents of a file or download a file from your server. Webmin's Upload and Download module makes these tasks very easy.
In this recipe, we'll inspect your system's hostname database file to check if you defined any local hostname entries that override domain names resolved by DNS. This file is stored in /etc/hosts
on most systems.
How to do it...
Follow these steps to download a file from the server:
Navigate to Others | Upload and Download.
Select the Download from server tab.
Click the ellipsis (…) button in the File to download line.
Select the file
hosts
located in the/etc
directory in the file browser.Answer Yes to the question Show in browser if possible?.
Click Download.
The hosts
file will be displayed in your browser. If you would prefer to download your file to disk, simply answer No in step 5.
How it works...
Webmin accesses the file you select from your system disk. If the file contains text...