Score:0

Can't edit .profile from recovery

in flag

I'm trying to use cat from recovery menu. What happens it will open, but it stays in the terminal prompt. It will load the file, but I can't edit it. How can I get it to be editable? I need to remove one thing in it.

Terrance avatar
id flag
If you're in recovery mode you need to make sure that you remount the drive as read / write or you won't be able to modify any files since it boots to read only mode. `sudo mount -o remount,rw /`
Score:7
cn flag

Editing a file involves using an editor, not cat, which just prints the content. In Ubuntu, the standard editor for the terminal is nano. In the recovery prompt, first cd to the directory where the file resides that you want to change. Then open the file for editing with the command nano name_of_your_file. Press Ctrl+S to save, Ctrl+X to exit the editor.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.