Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
My terminal IDE accessed root but cannot edit hosts file.
[email protected]:/system/etc #vim hosts
But vim just opens hosts file as readonly. Where do I missed here?
You've missed that the /system file system is mounted read-only.
mount -o remount,rw /system
# edit, save, then make /system read-only again:
mount -o remount,ro /system