I am a beginner Ubuntu user. I am booting Ubuntu from an USB flash drive and I need to edit the .bashrc file but every time I shut down or restart the computer the edits I made disappear. Is it possibile to make the edit permanently?

To be completely clear when I boot Ubuntu i choose the option "Try Ubuntu" and not "Install Ubuntu" since do not want to partition the mail hard disk.


"Try Ubuntu" is a live session that loads a "clean" copy of Ubuntu every time that you boot it.

Changes that you make are not permanent.

However you can install Ubuntu to the USB, which will retain your changes just like any other installation.

You can also use Rufus to create a bootable USB with persistence.

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.