Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2815

How to recover a .bashrc file deleted in WSL from explorer.exe?

$
0
0

I accidentally deleted my .bashrc file while managing files in WSL (Windows Subsystem for Linux) through Windows File Explorer. After the deletion, I took the following recovery steps:

  1. Checked the Recycle Bin: I looked for the .bashrc file there but didn’t find it, indicating it likely didn't go to the Recycle Bin when deleted from WSL.
  2. Looked for Backups: I checked my Windows File History for any backups of the .bashrc file but found none available.
  3. Recreated the File: Finally, I manually recreated the .bashrc file using a basic template, successfully restoring my terminal settings, although I lost my previous customizations.

Viewing all articles
Browse latest Browse all 2815


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>