Dufs Tool: Web-Based File Server for Android

Dufs is a simple web-based file server that allows you to share and access files through a web browser. It provides a simple and modern interface for browsing folders, downloading files, uploading new files, and managing directories. You can install and use Dufs in Termux to create a file server on your Android device using simple commands.

Hereโ€™s what you can do with Dufs in Termux:

  • Share files through a web browser.
  • Browse files and folders.
  • Upload and download files.
  • Preview images and videos.
  • Search files and folders.
  • Access files from other devices on the same network.

Install Dufs in Termux

Below are the simple commands to install Dufs in Termux. Copy and run each command one by one to install the file server tool.

Update Termux packages.

pkg update && pkg upgrade -y

Install Dufs.

pkg install dufs -y

Check the installed version.

dufs --version

Dufs is now installed and ready to use.

Usage Commands

Once Dufs is installed, you can use simple commands to create a web-based file server, share directories, and access files from your browser. Below are some commonly used Dufs commands.

Share the current directory.

dufs

Share the Internal Storage folder.

dufs ~/storage/shared

Share the Downloads folder.

dufs ~/storage/downloads

Use a custom port.

dufs -p 9090

Allow file uploads.

dufs --allow-upload ~/storage/shared

Allow uploads, file deletion, and file creation.

dufs --allow-upload --allow-delete --allow-search ~/storage/shared

Set a username and password.

dufs --auth admin:password ~/storage/shared

Display the help menu.

dufs --help

Choose the command you want and Dufs will start a web-based file server that you can access directly from your browser.

Access the File Server

After starting Dufs, open the following address in your browser:

http://127.0.0.1:5000

To access it from another device connected to the same Wi-Fi network, first find your local IP address.

For example, If you Local ip is:

192.168.1.100

Then open:

http://192.168.1.100:5000

The Dufs web interface will open, where you can browse folders, upload files (if enabled), download files, search files, and manage your shared directory from any web browser.

End Note

Dufs provides a simple way to share and manage files from your Android device using the Termux terminal application. Once the server is running, you can access your files through a web browser, making it easy to upload, download, and organize files from the same device or other devices on your network.

SHARE THIS POST: