Sample Header Ad - 728x90

My Ubuntu Linux home directory is /home/ls. Why is it "ls" and not my user name?

7 votes
2 answers
1238 views
I have installed Ubuntu Linux under WSL on my Windows 11 PC. I established a username during the installation, perdiem. When everything was up and running, I cd'ed to ~, and the directory I ended up in was /home/ls. I'm not sure why this is; I would have thought it would be my username. It is also odd that it is actually a Linux command—sort of confusing. This isn't a problem, but does anyone know why ls is established as the home directory rather than my username? --- Output of id:
uid=1000(ls) gid=1000(ls) groups=1000(ls),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),100(users),107(netdev)
Output of grep /home/ls /etc/passwd:
ls:x:1000:1000:,,,:/home/ls:/bin/bash
Asked by Anne Eve (73 rep)
Apr 20, 2025, 03:03 AM
Last activity: Apr 21, 2025, 04:44 PM