At first,the file icon was lost in my Ubuntu 20.04.Later i run the sudo root
,but I still have some trouble in clicking the icon on the desktop to open the files. And now i run the sudo nautilus
,i see the Home is /root,and when i open terminal in these file,the user is root,i don't know what happened.How can i change the Home to /home/username?and how can i reserve it to be username's terminal by default?
Asked
Active
Viewed 753 times
0

Nismilesucc
- 1
- 1
1 Answers
0
As you run nautilus
with sudo
, you are running it as the user root
. This user has it's home directory at /root
.
Try to run nautilus
without root, i.e. as a normal user (by simply typing nautilus
), and your "Home" will be at /home/username
.
Your "terminal user" will be your normal user account.
Please see the sudo man page

Mime
- 1,142
- 1
- 9
- 20
-
But in my i couldn't open it just use `nautilus`,what happened with my username's nautilus? – Nismilesucc Jun 15 '22 at 06:56
-
There is no other response in the terminal,also i could't click the file icon to open files on desktop... – Nismilesucc Jun 15 '22 at 06:57
-
1. What happened exactly (any output) if you tried to open `nautilus` from your terminal without `sudo`. 2. What is meant by open files on desktop? You mean e.g. to open a `.txt`-file in a text editor by clicking it inside `nautilus`? – Mime Jun 15 '22 at 06:59
-
1. no any response, i just wait... 2.there used to bulid some files in dektop,and there are some icons i can double click to open them before – Nismilesucc Jun 15 '22 at 07:08
-
OK,when the `nautilus` running after around twenty minutes... Thank you very much for your reminder. – Nismilesucc Jun 15 '22 at 07:18