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#
ls -aldo this insideandreas dir– George Udosen Mar 04 '17 at 18:34ls -al andreasand don't remove the one you have posted already – George Udosen Mar 04 '17 at 18:35ls -al admins, Don't move anything again till I tell you – George Udosen Mar 04 '17 at 19:03/home/adminsdir docp . -R ../– George Udosen Mar 04 '17 at 19:18cp . -R ../andreas– George Udosen Mar 04 '17 at 19:20cp . -R ../andreas– George Udosen Mar 04 '17 at 19:23/home? – George Udosen Mar 04 '17 at 19:27sudo cp -r /etc/skel /home/andreas– George Udosen Mar 04 '17 at 19:43sudo cp -r /etc/skel /home/andreaswas attending to my kids – George Udosen Mar 04 '17 at 19:59