0

Whenever I open the terminal I'm Ubuntu 18.04

To run a command as administrator (user "root"), use "sudo <command>".  
See "man sudo_root" for details. 

After that, I can't get into any of my data in all folder such as download, document. Then I restart, sign in but it come back to sign in again.

Is all started when I want to install android studio by using this line, something like sudo mv ~ /Download/android-studio usr/local/.

Right now, I had just press Cntrl + Alt + F3, log in, and found this,

No directory, logging in with HOME=/
To run a command as administrator (user "root"), use "sudo <command>". 
See "man sudo_root" for details. 
syafiq@asus-n45sf:/$ 
muru
  • 207,228

1 Answers1

1

You installed 18.04 on your hard drive, right? So, go back to the live system (on USB?), use the live system to start your system, sudo su in and now mount the hard drive partition with your home directory (recommended to /mnt). The message says, your home directory has not been found, so the system has been forced to use / as your home directory as fallback. The reason is most likely the mv command you mention. Since you've put the space between the ~ and the rest, you moved your users home directory (or more likely the content of it) to the folder /Download/android-studio usr/local/. Using root in your live system, go to this folder, take a look at the content and try to recover your users home directory. You might want to make sure, you don't miss any hidden dot-files. You need to move the moved files back to where they came from. Once done correctly, you should be able to reboot, start with your installed system, login as user and sudo. Starting with the live system and mounting to /mnt, don't forget to go to /mnt/home, not /home.

Neobie
  • 151