I am using Ubuntu in Win10, but I can not find the trash folder, even when I use the command

mv ~/.Trash/foo ~/
mv: cannot stat '/home/man/.Trash/foo': No such file or directory

My question is that how can I open trash folder in Ubuntu/Win10?


WSL provides a Linux-compatible kernel interface developed by Microsoft (containing no Linux kernel code), which can then run a GNU user space on top of it. Such a user space might contain a Bash shell and command language, with native GNU/Linux command-line tools (sed, awk, etc.), programming language interpreters (Ruby, Python, etc.).

Trash is located in ~/.local/share/Trash at least in Ubuntu. ~/.local – or more precisely, ~/.local/share – is where XDG-compliant programs store user data (e.g., fonts, mail messages) according to the XDG Base Directory specification.

Since Ubuntu as a WSL isn't what you expect from Ubuntu OS. WSL only provides you bash(or terminal) and no GUI. So there is no point of having a .local folder.

Also, whenever file is deleted from file manager like Nautilus, Thunar, they are actually moved into ~/.local/share/Trash. Files are usually deleted using rm from Terminal and doesn't moves that to Trash folder.

So there is no trash folder in WSL.

| improve this answer | |
  • It is a falsehood that graphical user interfaces do not exist in the WSFL. askubuntu.com/questions/808474 It is a falsehood that .local is tied to graphical user interfaces. – JdeBP Oct 25 '18 at 10:57
  • At least as of WSL under Ubuntu 20.04 the trash is in the usual location ~/.local/share/Trash. – wardw May 3 at 12:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.