(i have later realised that this coulda been done w symlinks but o well)
mvf (Move File) is a fast, shell-agnostic command-line utility for the Windows Subsystem for Linux (WSL) that simplifies moving files and directories between the Windows and WSL filesystems. It automatically handles the complex path translations, so you don't have to manually type out paths like /mnt/c/Users/YourUser/....
- Shell-agnostic: Works with any shell (bash, zsh, fish, etc.)
- Auto-directory creation: Creates nested destination directories automatically
- Bidirectional: Transfer files both ways (Windows ↔ WSL)
# Install
git clone https://github.com/mdanishharoon/mvf
cd mvf
make install
# Use from anywhere
mvf to-wsl "Downloads/file.txt" "Documents/"
mvf to-win "Documents/project" "Desktop/Backup/"-
Move a file from Windows Downloads to WSL
To move a file named
report.docxfrom your Windows Downloads folder to your current directory in WSL:# Usage: mvf to-wsl <windows_relative_path> <wsl_destination> mvf to-wsl Downloads/report.docx .
-
Move a file from WSL to Windows Documents
To move
archive.zipfrom your WSL home directory (~) to your Windows Documents folder:# Usage: mvf to-win <wsl_path> <windows_relative_path> mvf to-win archive.zip Documents/ -
Move a folder from WSL to the Windows Desktop
To move a directory named
project-filesfrom WSL's home folder to a new folder calledbackupon your Windows Desktop:# This will create C:\Users\YourUser\Desktop\backup\project-files mvf to-win project-files Desktop/backup/
- Installation Guide - Detailed installation instructions
- Technical Documentation - Code structure and implementation details
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
See LICENSE file for details.