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 -yInstall Dufs.
pkg install dufs -yCheck the installed version.
dufs --versionDufs 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.
dufsShare the Internal Storage folder.
dufs ~/storage/sharedShare the Downloads folder.
dufs ~/storage/downloadsUse a custom port.
dufs -p 9090Allow file uploads.
dufs --allow-upload ~/storage/sharedAllow uploads, file deletion, and file creation.
dufs --allow-upload --allow-delete --allow-search ~/storage/sharedSet a username and password.
dufs --auth admin:password ~/storage/sharedDisplay the help menu.
dufs --helpChoose 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:5000To 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.100Then open:
http://192.168.1.100:5000The 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.

