Score:0

how to open a folder in terminal in nautilus (with root privilege) ubuntu 22.04

cr flag

Under the nautilus without root privilege, we can press Ctrl+F10 or right click to bring the popup manual to open a specific folder in terminal.

However, it is troublesome to get sudo in the terminal every time to access the files in the folder. So, I just open the nautilus with root privilege but I find the 'open in terminal' option just disappears in the pop up manual by right click on the folder.

I can get the 'open in terminal' option by Ctrl+F10 but no response after clicking this option. Can someone help to get the fix?

Score:0
cn flag

You do not want to do this. You want to be careful running your file manager as root, and only do this for these specific tasks that require root access. You certainly are not needing root permissions for your daily work on the computer, so the fact that root permissions are not immediately available in the graphical user interface can be seen as a sound implementation.

If your main concern is that you find it tedious to type sudo each time, then you can open a prompt with root permissions with the command

sudo -i

This gives you a shell prompt as root user (your ~ becomes /root). Again, exit this prompt (exit or hit Ctrl+d) this prompt as soon as you do not need the root permissions anymore.

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.