Question:
how can I create a home directory in Linux?
vijay K
2007-05-17 03:19:08 UTC
I have deleted some directories using rm -rf dir.name. But then when I wanted to open a new terminal it was not opening. I rebooted the system. Afterwards when I tried to login it's giving some error like ur home directory is /home/dir.name but it doesn't appear to exist. so how can I get rid of this problem.

Thanks,
Four answers:
anonymous
2007-05-17 03:22:19 UTC
shell: mkdir dir.name

gui: Navigate to /home. right-click -> new folder. Type the new name.
felecia
2016-05-20 22:23:50 UTC
False
Anirban
2007-05-17 04:25:32 UTC
Create a new directory and set in your .profile or .bash_profile the $HOME to point to your new directory.
chanchal_panda
2007-05-18 19:05:20 UTC
login . after that

issue following command # mkdir -p /home/username



Repalce user name with ur username.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...