0

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?

1

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.

  • okay, very nice, thanks a lot for your help! – ABCDEMMM Oct 24 '18 at 15:07
  • 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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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