I am new to Linux. I want to remove the home directory of the user andreas which was the administrator account into a directory called admins. I ran the command
mv /home/andreas /admins
I logged out and tried to log in and it does not let me log in. When I entered the password it leaves me at the login screen. How can I fix it?
root@ubuntu:/home# ls -al
total 28
drwxr-xr-x 7 root root 4096 Mar 4 10:19 .
drwxr-xr-x 24 root root 4096 Mar 4 10:10 ..
drwxr-xr-x 3 root root 4096 Mar 4 10:10 andreas
drwxr-xr-x 2 root root 4096 Mar 4 08:58 employees
drwxr-xr-x 19 kostas kostas 4096 Mar 4 10:23 kostas
drwxrwxrwx 2 nicolas nicolas 4096 Feb 19 08:54 nicolas
drwxr-xr-x 2 root root 4096 Mar 4 08:56 users
root@ubuntu:/home/andreas# ls -al
total 12
drwxr-xr-x 3 root root 4096 Mar 4 10:10 .
drwxr-xr-x 7 root root 4096 Mar 4 10:19 ..
drwxr-xr-x 22 andreas andreas 4096 Mar 4 08:55 admins
root@ubuntu:/home/andreas#
root@ubuntu:/home# ls
admins andreas employees kostas nicolas users
root@ubuntu:/home/admins# ls
Desktop examples.desktop personal_info.txt sensitive_info.txt
Documents mario Pictures Templates
Downloads Music Public Videos
root@ubuntu:/home/admins#