How Do I Save a Bashrc File in Linux?
Contents

How do I save and exit a Bashrc file?

Save a File and Quit Vim / Vi

To save the file and exit the editor simultaneously, press Esc to switch to normal mode, type :wq and hit Enter .

How do I save and edit a .bashrc file?

To Save and quit press Shift + Z + Z , :wq , or in command mode. If you are opening the file in read only mode you will have to hit :q! .

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest