[SOLVED] Can't access my user home directory from terminal (Debian)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't access my user home directory from terminal (Debian)
Hi.I'm trying to access my home/username/desktop folder from terminal but there Is no directory listed under home#. I was trying to move a .html file from the desktop to var/www and came across this Issue.
Sorry.I mean there's nothing In the home directory. ls or ls-a gives nothing.
If I type cd It gives me /home/<username> :No such file or directory.
What exactly are you doing? I can only assume you are logged in as a specific user (say user X) and started a terminal. After starting the terminal you should be standing in the home directory of user X.
Can you post the output of the following commands:
Sorry typed ls -a $HOME Incorrectly also.I'm logged in via the GUI on a virtual machine.
both ls -a $HOME and ls -ld $HOME give:
ls: cannot access /home/nikolas: No such file or directory
Its starting to look like you do not have a home directory for nikolas any more, which would explain the output show in your previous post (#6). Some way, somehow the home directory for this user was removed or moved to a different location/name.
Hi.I'm trying to access my home/username/desktop folder from terminal but there Is no directory listed under home#. I was trying to move a .html file from the desktop to var/www and came across this Issue.
what command did you issue to move .html to /var/www. did you check whats in /var/www ?
Did you move file as nikolas user or root user. Cause, as nikolas user, you can goto /var/www, but you cannot move file from desktop to /var/www. However, if you move file as root user, then ~/Desktop folder you mentioned is of user root, not of user nikolas.
Anyway, try locate to find out if the /home/nikolas has wandered somewhere else
Thanks! I managed to move /nikolas into var/www like the noob that I am.Sorry yes I did mean /Desktop.I'm not sure what I did though.What error did I make In the mv command to cause It to move the home/nikolas folder into var/www?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.